Skip to content

TypeError: 'int' object is not subscriptable #5

@ettom

Description

@ettom

Hey, I am having a problem getting your script to run. I'm running Python 3.4.0 and Open Hardware Monitor 0.7.1 Beta. OHM web server is running and accessible from the browser at localhost:8085.

>python ArduinoPCMonitor.py
Only 1 port found: COM8. Connecting to it...
Traceback (most recent call last):
  File "ArduinoPCMonitor.py", line 234, in <module>
    main()
  File "ArduinoPCMonitor.py", line 197, in main
    config["gpu_mem_size"]
  File "ArduinoPCMonitor.py", line 129, in get_hardware_info
    temp_value = core_temp['Value'][:-5]
TypeError: 'int' object is not subscriptable

Contents of config.json

{
  "ohw_ip": "localhost",
  "ohw_port": "8085",
  "cpu_name": "AMD FX-6350",
  "gpu_name": "AMD Radeon HD 7800 Series",
  "gpu_mem_size": 2048
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions