I recently built a new windows 10 system, and pretty much started new except for all my python files. I needed to first actually install Python, so I did (v. 3.9.1). I later installed, numpy in cmd (pip install numpy).I am currently using vscode, but I downloaded the pylint and python extension so I don't think this is the issue. I continued with my latest project, and when I went to run the code, I got an error message which looked like this:
** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
Traceback (most recent call last):
File "c:\Users\sava\Desktop\Python\NumGuess\lvl1.py", line 2, in <module>
import numpy
File "C:\Users\sava\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "C:\Users\sava\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\sava\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information:
I've never came across anything like it. I did some research but I still don't understand how to solve this issue. It probably has something to do with the installation, but I can display the code to maybe add some context:
import random
import numpy
from numlst import numlist_1
class guessnum1():
def get_number(self):
number = random.choice(numlist_1)
return number.upper()
number = random.choice(numlist_1)
print(input("guess your number, since this is the first level you need to choose a number between 1 and 10 "))
if input == number:
print("Congratulations! You got the number correct!")
else:
print("Oops, you got the number wrong you have: " + " tries " + " left")
print(str(guessnum1))
I know that my code isn't perfect, but this is my first project I am doing without any tutorials. If any of you have had this error, or know how to solve this please help me out. Thank you for reading this and happy holidays.
(edit 1: I am fairly sure it isn't the actual code that is the problem, and the numlist is from another file in my project, I didn't want to put in the other files because they are probably irrelevant to this issue, thanks)