Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Error when running on MacOS Bigsur 11.1 - Python 3.10.2(on pyenv) #40

Open
zoultrex opened this issue Feb 21, 2025 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@zoultrex
Copy link

Hi everyone, any idea what I can do to run this correctly?

Describe the bug
Running the main script did not finish executing

To Reproduce
just run the main.py script

Platform (please complete the following information):

  • OS: [e.g. macOS]
  • Version [e.g. Bigsur 11.1]
    PS: its a hackintosh

Additional context
See error below

Traceback (most recent call last):
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/util/ark_query.py", line 52, in quick_search
    ).json()
  File "/Users/grf/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/Users/grf/.pyenv/versions/3.10.2/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/Users/grf/.pyenv/versions/3.10.2/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/grf/.pyenv/versions/3.10.2/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/main.py", line 5, in <module>
    main()
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/main.py", line 137, in main
    raise e
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/main.py", line 105, in main
    flag_parser = FlagParser(logger, None, offline=offline)
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/cli/flags.py", line 35, in __init__
    self.dm = DeviceManager(logger, off_data=self.toggled_off, offline=offline)
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/managers/devicemanager.py", line 39, in __init__
    self.manager.dump()
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/dumps/macOS/mac.py", line 38, in dump
    self.cpu_info()
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/dumps/macOS/mac.py", line 227, in cpu_info
    self.cnm = CodenameManager(model, self.vendor)
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/util/codename_manager.py", line 18, in __init__
    self.codename_init()
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/util/codename_manager.py", line 24, in codename_init
    self.codename_intel()
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/util/codename_manager.py", line 39, in codename_intel
    found_term = ark_query.iark_search(search_term)
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/util/ark_query.py", line 120, in iark_search
    results = quick_search(search_term)
  File "/Users/grf/dev/hackintosh/hardware sniffer source code/OCSysInfo/src/util/ark_query.py", line 59, in quick_search
    isinstance(e, requests.exceptions.JSONDecodeError) and
AttributeError: module 'requests.exceptions' has no attribute 'JSONDecodeError'
grf@grfs-MacBook-Pro OCSysInfo % python3 --version
Python 3.10.2
grf@grfs-MacBook-Pro OCSysInfo % python --version
Python 3.10.2
@zoultrex zoultrex added the bug Something isn't working label Feb 21, 2025
@kernel-dev
Copy link
Collaborator

This appears to be an issue related to the Intel ARK website not returning a valid response when querying for more information about your CPU. Which CPU do you have?

@zoultrex
Copy link
Author

intel i7-8565u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants