ifm / ifm3d

Library and Utilities for working with ifm pmd-based 3D ToF Cameras
https://api.ifm3d.com
Apache License 2.0
106 stars 69 forks source link

Cannot import O3D from ifm3dpy #406

Closed cboostkmokhtar closed 10 months ago

cboostkmokhtar commented 12 months ago

Cannot import O3D from 'ifm3dpy' From the ifm3d documentation, it says I can use the Python API for my O3D camera (03d301). It did not work for me.

To Reproduce pip install ifm3dpy from ifm3dpy import O3R (no issues with import) from ifm3dpy import O3D (Issue see below)

Expected behavior No import errors

Output/Screenshots

ImportError Traceback (most recent call last) Cell In[4], line 1 ----> 1 from ifm3dpy import O3D

ImportError: cannot import name 'O3D' from 'ifm3dpy' (/home/kamal/.local/lib/python3.10/site-packages/ifm3dpy.cpython-310-x86_64-linux-gnu.so)

desengph commented 12 months ago

@cboostkmokhtar Please have a look at the migration guide for ifm3d version 1.2 and 1.3

The old locations are now deprecated and will be fully removed in the future. Users should update their code to use the new locations. A future version of ifm3dpy will remove the deprecated locations.

FYI:

We are working on a version which supports the O3D device fully. The current version 1.3.3 might not support all functions of the O3D devices.

cboostkmokhtar commented 12 months ago

@desengph I have checked the migration document; it is unclear which ifm3dpy version I should use to acquire data from my O3D camera (03d301).

desengph commented 12 months ago

@cboostkmokhtar Please see the compatibility matrix here

For an O3D device please use ifm3d version 0.20.x

cboostkmokhtar commented 12 months ago

@desengph That is fine. It is working, I have installed the .deb files in the docker container, and I can run the simple cpp example to acquire the depth and amplitude image.

What I am looking for initially in this issue is using ifm3dpy and not ifm3d. So that I can use the camera directly with my Python script.

lola-masson commented 11 months ago

For ifm3d 0.20.x, you need to build the python bindings from source. Follow the build instructions here: https://github.com/ifm/ifm3d/blob/v0.20.3/doc/python.md.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 10 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.