{"action":"created","issue":{"url":"https://api.github.com/repos/toinsson/pyrealsense/issues/82","repository_url":"https://api.github.com/repos/toinsson/pyrealsense","labels_url":"https://api.github.com/repos/toinsson/pyrealsense/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/toinsson/pyrealsense/issues/82/comments","events_url":"https://api.github.com/repos/toinsson/pyrealsense/issues/82/events","html_url":"https://github.com/toinsson/pyrealsense/issues/82","id":350631530,"node_id":"MDU6SXNzdWUzNTA2MzE1MzA=","number":82,"title":"ValueError: '<P' is not a valid PEP 3118 buffer format string","user":{"login":"OrganicIrradiation","id":5038581,"node_id":"MDQ6VXNlcjUwMzg1ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/5038581?v=4","gravatar_id":"","url":"https://api.github.com/users/OrganicIrradiation","html_url":"https://github.com/OrganicIrradiation","followers_url":"https://api.github.com/users/OrganicIrradiation/followers","following_url":"https://api.github.com/users/OrganicIrradiation/following{/other_user}","gists_url":"https://api.github.com/users/OrganicIrradiation/gists{/gist_id}","starred_url":"https://api.github.com/users/OrganicIrradiation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrganicIrradiation/subscriptions","organizations_url":"https://api.github.com/users/OrganicIrradiation/orgs","repos_url":"https://api.github.com/users/OrganicIrradiation/repos","events_url":"https://api.github.com/users/OrganicIrradiation/events{/privacy}","received_events_url":"https://api.github.com/users/OrganicIrradiation/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-14T23:24:04Z","updated_at":"2018-08-14T23:29:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"| Required Info  |   |\r\n|---|---|\r\n| Camera Model | R200 | \r\n| Firmware Version | 1.0.72.04 | \r\n| Operating System & Version | Mac OS X 10.13.6 (17G65) & Ubuntu 18.04.1 LTS (GNU/Linux 4.14.55-146 armv7l) |\r\n| librealsense version | legacy branch, compiled from github clone |\r\n| pyrealsense version | 2.2 |\r\n| python version | 3.7 |\r\n\r\nRunning the example code (on Mac OS X), I get the following error:\r\n```python\r\nINFO:pyrealsense.core:There are 1 connected RealSense devices.\r\nINFO:pyrealsense.core:Using device 0, an Intel RealSense R200\r\nINFO:pyrealsense.core:    Serial number: XXXXXXXXXX\r\nINFO:pyrealsense.core:    Firmware version: 1.0.72.04\r\nTraceback (most recent call last):\r\n  File \"test_pyrealsense.py\", line 17, in <module>\r\n    print(cam.color)\r\n  File \"/Users/user/.virtualenvs/test_pyrealsense/lib/python3.7/site-packages/pyrealsense/core.py\", line 518, in <lambda>\r\n    return lambda x: get_stream_data(s)\r\n  File \"/Users/user/.virtualenvs/test_pyrealsense/lib/python3.7/site-packages/pyrealsense/core.py\", line 512, in get_stream_data\r\n    data = lrs.rs_get_frame_data(self.dev, s.stream, ctypes.byref(e))\r\n  File \"_ctypes/callproc.c\", line 911, in GetResult\r\n  File \"/Users/user/.virtualenvs/test_pyrealsense/lib/python3.7/site-packages/numpy/ctypeslib.py\", line 183, in _check_retval_\r\n    return array(self)\r\nValueError: '<P' is not a valid PEP 3118 buffer format string\r\n```\r\n\r\nI get the same error with Linux."},"comment":{"url":"https://api.github.com/repos/toinsson/pyrealsense/issues/comments/413047906","html_url":"https://github.com/toinsson/pyrealsense/issues/82#issuecomment-413047906","issue_url":"https://api.github.com/repos/toinsson/pyrealsense/issues/82","id":413047906,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzA0NzkwNg==","user":{"login":"OrganicIrradiation","id":5038581,"node_id":"MDQ6VXNlcjUwMzg1ODE=","avatar_url":"https://avatars3.githubusercontent.com/u/5038581?v=4","gravatar_id":"","url":"https://api.github.com/users/OrganicIrradiation","html_url":"https://github.com/OrganicIrradiation","followers_url":"https://api.github.com/users/OrganicIrradiation/followers","following_url":"https://api.github.com/users/OrganicIrradiation/following{/other_user}","gists_url":"https://api.github.com/users/OrganicIrradiation/gists{/gist_id}","starred_url":"https://api.github.com/users/OrganicIrradiation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrganicIrradiation/subscriptions","organizations_url":"https://api.github.com/users/OrganicIrradiation/orgs","repos_url":"https://api.github.com/users/OrganicIrradiation/repos","events_url":"https://api.github.com/users/OrganicIrradiation/events{/privacy}","received_events_url":"https://api.github.com/users/OrganicIrradiation/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T23:29:07Z","updated_at":"2018-08-14T23:29:07Z","author_association":"CONTRIBUTOR","body":"I thought it might be with using version python 3.7, so I tested with 3.6 in Linux, and got the same error:\r\n\r\n```python\r\nINFO:pyrealsense.core:There are 1 connected RealSense devices.\r\nINFO:pyrealsense.core:Using device 0, an Intel RealSense R200\r\nINFO:pyrealsense.core:    Serial number: XXXXXXXXXX\r\nINFO:pyrealsense.core:    Firmware version: 1.0.72.04\r\nTraceback (most recent call last):\r\n  File \"test_pyrealsense.py\", line 17, in <module>\r\n    print(cam.color)\r\n  File \"/usr/local/lib/python3.6/dist-packages/pyrealsense-2.2-py3.6-linux-armv7l.egg/pyrealsense/core.py\", line 518, in <lambda>\r\n    return lambda x: get_stream_data(s)\r\n  File \"/usr/local/lib/python3.6/dist-packages/pyrealsense-2.2-py3.6-linux-armv7l.egg/pyrealsense/core.py\", line 512, in get_stream_data\r\n    data = lrs.rs_get_frame_data(self.dev, s.stream, ctypes.byref(e))\r\n  File \"_ctypes/callproc.c\", line 918, in GetResult\r\n  File \"/usr/local/lib/python3.6/dist-packages/numpy/ctypeslib.py\", line 183, in _check_retval_\r\n    return array(self)\r\nValueError: '<P' is not a valid PEP 3118 buffer format string\r\n```"}}
{"actor":{"display_login":"OrganicIrradiation"}}