OCSysInfo icon indicating copy to clipboard operation
OCSysInfo copied to clipboard

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

Open zoultrex opened this issue 1 year ago • 3 comments

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 avatar Feb 21 '25 15:02 zoultrex

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?

kernel-dev avatar Feb 23 '25 06:02 kernel-dev

intel i7-8565u

zoultrex avatar Feb 24 '25 14:02 zoultrex

Run OCSysInfo from the terminal and append the flag --offline, then send the results here.

kernel-dev avatar Feb 28 '25 07:02 kernel-dev

I am closing this issue due to the lack of feedback from OP, if anyone else runs into the same issue, please reopen this thread and don't open a new issue altogether.

kernel-dev avatar Jul 17 '25 21:07 kernel-dev