ouster-lidar / ouster_example

Ouster, Inc. sample code
Other
451 stars 434 forks source link

Update docs for python 3.11 wheels (Installation otherwise broken) #529

Closed schep87 closed 1 year ago

schep87 commented 1 year ago

I followed the install guide for Windows for the Ouster SDK in python. I need help resolving the issue below.

When I try to run any of the examples, I get the following errors: python -m ouster.sdk.examples.pcap "C:\git\ouster\pcap_to_csv\20230619_1302_OS-0-32-U3_122228000279.pcap" "C:\git\ouster\pcap_to_csv\20230619_1302_OS-0-32-U3_122228000279.json" pcap-to-csv --scan-num 5

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ouster\sdk\examples\pcap.py", line 18, in from ouster import client, pcap File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ouster\client__init__.py", line 9, in from ._client import SensorInfo ModuleNotFoundError: No module named 'ouster.client._client'

simple-viz --pcap "C:\git\ouster\pcap_to_csv\20230619_1302_OS-0-32-U3_122228000279.pcap" --meta "C:\git\ouster\pcap_to_csv\20230619_1302_OS-0-32-U3_122228000279.json"

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\user\AppData\Local\Programs\Python\Python311\Scripts\simple-viz.exe__main__.py", line 4, in File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ouster\sdk\simple_viz.py", line 9, in from ouster import client File "C:\Users\user\AppData\Local\Programs\Python\Python311\Lib\site-packages\ouster\client__init__.py", line 9, in from ._client import SensorInfo ModuleNotFoundError: No module named 'ouster.client._client'

Platform

kairenw commented 1 year ago

hi @schep87 are you sure your install worked? we don't currently have python 3.11 wheels? or you built it yourself?

schep87 commented 1 year ago

Hi @kairenw,

I followed the instructions and had to do several iterations of choosing the correct packages within Visual Studio Installer and vcpkg. I was then able to get it to install using pip install ouster-sdk

c:\git>python --version
Python 3.11.1

c:\git>pip list | grep ouster
ouster-sdk                   0.8.1

If Ouster-SDK is not supported by Python 3.11, then PLEASE FIX YOUR DOCUMENTATION. According to this page, 3.11 should be supported: https://static.ouster.dev/sdk-docs/installation.html

image

kairenw commented 1 year ago

Apologies. Should be updated now

schep87 commented 1 year ago

Thanks for updating that. I will close this now, as it is probably directly related to using Python version 3.11.