minhanghuang/CyberRT

No module named 'cyber.python'

plumewind opened this issue · 7 comments

hello, test the cyber_example_listener and cyber_example_listener is ok, and cyber_monitor is ok,
but get error by using the cyber_channel list :

➜  build git:(v8.0.0) source setup.zsh 
➜  build git:(v8.0.0) cyber_channel list
Traceback (most recent call last):
  File "/home/mini/researches/cyber_rt_8/CyberRT/build/bin/cyber_channel", line 23, in <module>
    from cyber.python.cyber_py3 import cyber_time
ModuleNotFoundError: No module named 'cyber.python'

What can I do? Thanks a lot.

/home/mini/researches/cyber_rt_8/CyberRT

hi @plumewind , Please check the Python version in CyberRT/build/lib. If it is python 3.8, please try running the following command: export PYTHONPATH=$PYTHONPATH:/home/mini/researches/cyber_rt_8/CyberRT/build/lib/python3.8/site-packages

It still error.

image

I was unable to reproduce the issue in my local environment. Could you please try it on a Docker Ubuntu18.04 container?

my local environment is ubuntu20.04, with ros noetic, should other command be setting?

image

According to the error message, it appears that the cyber/python directory was not found in the build/lib/python3.8/site-packages/ path. Please verify that your environment and the steps you followed are correct. Here is my local environment:
image

It is a unhappy thing.I want to cry for a while.

image

It is a unhappy thing.I want to cry for a while.

image

You can try it with a clean Docker environment.