{"action":"closed","issue":{"url":"https://api.github.com/repos/dhhagan/py-opc/issues/76","repository_url":"https://api.github.com/repos/dhhagan/py-opc","labels_url":"https://api.github.com/repos/dhhagan/py-opc/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/dhhagan/py-opc/issues/76/comments","events_url":"https://api.github.com/repos/dhhagan/py-opc/issues/76/events","html_url":"https://github.com/dhhagan/py-opc/issues/76","id":341479665,"node_id":"MDU6SXNzdWUzNDE0Nzk2NjU=","number":76,"title":"ERROR: opc: Could not parse the firmware version from","user":{"login":"mc13756","id":41290765,"node_id":"MDQ6VXNlcjQxMjkwNzY1","avatar_url":"https://avatars2.githubusercontent.com/u/41290765?v=4","gravatar_id":"","url":"https://api.github.com/users/mc13756","html_url":"https://github.com/mc13756","followers_url":"https://api.github.com/users/mc13756/followers","following_url":"https://api.github.com/users/mc13756/following{/other_user}","gists_url":"https://api.github.com/users/mc13756/gists{/gist_id}","starred_url":"https://api.github.com/users/mc13756/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc13756/subscriptions","organizations_url":"https://api.github.com/users/mc13756/orgs","repos_url":"https://api.github.com/users/mc13756/repos","events_url":"https://api.github.com/users/mc13756/events{/privacy}","received_events_url":"https://api.github.com/users/mc13756/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2018-07-16T11:20:28Z","updated_at":"2018-07-27T12:36:19Z","closed_at":"2018-07-27T12:36:19Z","author_association":"NONE","body":"I tried to run the code and I got the following errors:\r\n\r\nERROR:opc:Could not parse the fimrware version from ????????????????????????????????????????????????????????????\r\nTraceback (most recent call last):\r\n  File \"/home/pi/.local/lib/python3.5/site-packages/opc/__init__.py\", line 77, in __init__\r\n    self.firmware['version'] = int(re.findall(\"\\d{3}\", infostring)[-1])\r\nIndexError: list index out of range\r\n\r\n\r\nIndexError: list index out of range\r\nTraceback (most recent call last):\r\n  File \"/home/pi/Desktop/opc_test_3.py\", line 31, in <module>\r\n    alpha = OPCN2(spi)\r\n  File \"/home/pi/.local/lib/python3.5/site-packages/opc/__init__.py\", line 293, in __init__\r\n    super(OPCN2, self).__init__(spi_connection, model='N2', **kwargs)\r\n  File \"/home/pi/.local/lib/python3.5/site-packages/opc/__init__.py\", line 71, in __init__\r\n    raise FirmwareVersionError(msg)\r\nopc.exceptions.FirmwareVersionError: \r\n                            Your firmware version could not be automatically detected. This is usually caused by bad wiring or a poor power supply. If niether of these are likely candidates, please open an issue on the GitHub repository at https://github.com/dhhagan/py-opc/issues/new. Another option would be to\r\n                            increase the max_cnxn_retries variable if you feel the serial communication is being held up for some reason.\r\n Can you please help me solve this? I have no idea where these errors come from \r\n"}}
{"actor":{"display_login":"dhhagan"}}