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 'roboclaw' #156

Closed
JHPHELAN opened this issue Mar 24, 2022 · 1 comment
Closed

ModuleNotFoundError: No module named 'roboclaw' #156

JHPHELAN opened this issue Mar 24, 2022 · 1 comment

Comments

@JHPHELAN
Copy link

Following https://github.com/nasa-jpl/osr-rover-code/blob/foxy-devel/setup/rpi.md in section:
6 Testing serial comm with the Roboclaw motors controllers
Run the roboclawtest.py script with all of the motor addresses:

ubuntu@AUDACITY:~$ cd ~/osr_ws/src/osr-rover-code/scripts
-bash: cd: /home/ubuntu/osr_ws/src/osr-rover-code/scripts: No such file or directory
ubuntu@AUDACITY:~$ sudo find / -name roboclawtest.py
/home/ubuntu/osr_ws/osr-rover-code/scripts/roboclawtest.py
ubuntu@AUDACITY:~$ cd osr_ws/osr-rover-code/scripts/
ubuntu@AUDACITY:~/osr_ws/osr-rover-code/scripts$ python roboclawtest.py 128
Command 'python' not found, did you mean:
  command 'python3' from deb python3
  command 'python' from deb python-is-python
ubuntu@AUDACITY:~/osr_ws/osr-rover-code/scripts$ python3 roboclawtest.py 128
Traceback (most recent call last):
  File "roboclawtest.py", line 13, in <module>
    from roboclaw import Roboclaw
ModuleNotFoundError: No module named 'roboclaw'

Achllle added a commit that referenced this issue Mar 25, 2022
@Achllle
Copy link
Collaborator

Achllle commented Mar 25, 2022

As mentioned on Slack,

-bash: cd: /home/ubuntu/osr_ws/src/osr-rover-code/scripts: No such file or directory

means you made a mistake and you cloned the repository to the wrong folder.

This is also why the above issue with ModuleNotFoundError happens. We add that directory to the python path directly, and in your case it can't find it because it's wrong.

@Achllle Achllle closed this as completed Mar 25, 2022
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