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

ModuleNotFoundError: No module named 'wait_move_handle' #1

Closed
linhongbin opened this issue Jun 23, 2021 · 3 comments
Closed

ModuleNotFoundError: No module named 'wait_move_handle' #1

linhongbin opened this issue Jun 23, 2021 · 3 comments

Comments

@linhongbin
Copy link

Hi,

Currently I am testing python3 on ROS noetic, Ubuntu20.04.

I ran into a python error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ben/software/dvrk_ws/devel/lib/python3/dist-packages/crtk/__init__.py", line 34, in <module>
    exec(__fh.read())
  File "<string>", line 10, in <module>
ModuleNotFoundError: No module named 'wait_move_handle'

I found the solution to fix it in link.

So what I have fixed is replacing the lines in the file /home/ben/software/dvrk_ws/src/crtk/crtk_python_client/src/crtk/__init__.py:

# replace this line
# from wait_move_handle import wait_move_handle

# to this line
from .wait_move_handle import wait_move_handle
# replace this line
# from utils import utils

# to this line
ffrom .utils import utils

It runs perfectly after I modified the __init__.py and catkin build again.

@adeguet1
Copy link
Contributor

I must admit I'm not a Python expert and I have even less experience with Python 3. @linhongbin , do you happen to know if this is backward compatible with Python 2?

adeguet1 added a commit that referenced this issue Jun 23, 2021
@adeguet1
Copy link
Contributor

Thank you for your report and solution. I tested it with 18.04/kinetic/python2 and 20.04/noetic/python3 and the code seems portable. This has been pushed to the "devel" branch and I hope to release 1.0.1 soon.

@linhongbin
Copy link
Author

@adeguet1 Hi anton,

Sorry for the late reply. I think it should be backward compatible. Some reference I found is link and link.

By the way, as a dvrk python user I prefer to use Python3 since Python2 is no longer maintained. In addition, there are a lot of packages (such as pyqt5) not supporting Python2.

Cheers! 🚀

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