suhanna / System_info

MIT License
7 stars 6 forks source link

Error Importing the module #9

Open FORTFANOP opened 3 years ago

FORTFANOP commented 3 years ago

I was trying to use the system_info module from one of the examples given. However, I am running into this error:

from system_info import sysinfo File "C:\Users-----\anaconda3\envs\Python 36\lib\site-packages\system_info\sysinfo.py", line 230, in sysInfo = os_info.systemSpec() File "C:\Users-----\anaconda3\envs\Python 36\lib\site-packages\system_info\sysinfo.py", line 55, in systemSpec data["Processor"] = cinfo['brand'] KeyError: 'brand'

Please help

I am using Anaconda 3 with Python 3.6 and a Windows 10 computer

skrynklarn commented 2 years ago

For me it help with changing the row

data["Processor"] = cinfo['brand']

To

data["Processor"] = cinfo['brand_raw']

This was changed in a commit that says version 2.0.1 but it has not been "released"