Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble running tof_test.py and plot_tof_test.py in how_to_build_and_install.md #43

Open
eliaskrchnr opened this issue Jan 12, 2024 · 1 comment

Comments

@eliaskrchnr
Copy link

I did the installation, could start the lidar, and it seems like I get some data. When I tried to visualize the data with tof_test.py and plot_tof_test.py following the instructions, I got some errors. Since I don't know what I'm doing, I tried using python3 tof_test.py instead of the suggested python tof_test.py. Only the type of error changed, like it is seen in the picture.
I'm glad for help.

elias@elias-ThinkPad:~/YDLidar-SDK/python/examples$ python tof_test.py
Traceback (most recent call last):
  File "tof_test.py", line 2, in <module>
    import ydlidar
  File "/home/elias/YDLidar-SDK/python/examples/ydlidar.py", line 15, in <module>
    import _ydlidar
ImportError: dynamic module does not define init function (init_ydlidar)
elias@elias-ThinkPad:~/YDLidar-SDK/python/examples$ python3 tof_test.py
Traceback (most recent call last):
  File "tof_test.py", line 2, in <module>
    import ydlidar
  File "/home/elias/YDLidar-SDK/python/examples/ydlidar.py", line 15, in <module>
    import _ydlidar
ModuleNotFoundError: No module named '_ydlidar'
elias@elias-ThinkPad:~/YDLidar-SDK/python/examples$ python plot_tof_test.py
Traceback (most recent call last):
  File "plot_tof_test.py", line 2, in <module>
    import ydlidar
  File "/home/elias/YDLidar-SDK/python/examples/ydlidar.py", line 15, in <module>
    import _ydlidar
ImportError: dynamic module does not define init function (init_ydlidar)
elias@elias-ThinkPad:~/YDLidar-SDK/python/examples$ python3 plot_tof_test.py
Traceback (most recent call last):
  File "plot_tof_test.py", line 2, in <module>
    import ydlidar
  File "/home/elias/YDLidar-SDK/python/examples/ydlidar.py", line 15, in <module>
    import _ydlidar
ModuleNotFoundError: No module named '_ydlidar'

@JHPHELAN
Copy link

JHPHELAN commented Jan 29, 2024

Same problem here. Find indicates that ydlidar.py exists & is located where indicated. Directory added to PATH without improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants