r-cute / rcute-cozmars

Python SDK for Cozmars robot
33 stars 17 forks source link

getting ModuleNotFoundError: No module named 'rcute_cozmars' ? #24

Open hamoda150 opened 2 years ago

hamoda150 commented 2 years ago

I'm getting this error ModuleNotFoundError: No module named 'rcute_cozmars' when I excute import rcute_cozmars

I installed SDK already using python3 -m pip install rcute-cozmars

Can anyone help me solve this issue? Thanks.

hyansuper commented 2 years ago

obviously not successfully installed. Or you install it using python3, but import it using python2?

hamoda150 commented 2 years ago

@hyansuper I use the latest Rasbian version with python 3.9 only. I'm trying again but this time installation takes so long time more than 24 hours freezing. which version of Rasbian should I use? did you compile OpenCV and OpenCV Contrib from source? if so, can you give me a link to the tutorial because raspberry pi zero is different from other versions of RPI?

install2

hyansuper commented 2 years ago

Oh,sorry I didn't clarify, rcute-cozmars is meant to be installed on pc, it's a client program that talks to the server on pi zero

hamoda150 commented 2 years ago

@hyansuper thanks a lot. I Installed it on PC. but when I try to control the robot using the website: http://rcute-cozmars-xxxx.local all the buttons are not working.

lcd

hyansuper commented 2 years ago

Now you can visit http://rcute-cozmars-xxxx.local/, so wifi connection is good. Click the test button or visit http://rcute-cozmars-xxxx.local/test, open your browser's console (by pressing F12) and goto console and check if any error shows. This page use js api to connect to the robot. You can also close the page and control the robot by python from you pc, example. see if any errors accur

hamoda150 commented 2 years ago

@hyansuper

hyansuper commented 2 years ago

I need to see the error message. Login raspberry pi zero and stop backgroud service by sudo systemctl stop cozmars.service then bring it up in foreground sudo python3 -m rcute_cozmars_server. Now you can see if there's any error message on the server side. Then try to control the robot from browser or by python ( you can't do both at the same time), and also watch out for any error on client side.

nurikaraoglan commented 11 months ago

@hyansuper When i made your instrution, i have these errors. How can i connect the Sanic ? image

alexandrutrif92 commented 10 months ago

I also have the same error :(. Can someone please also show me how the LCD needs to be connected? I have the same one as in https://github.com/r-cute/rcute-cozmars/issues/24#issuecomment-1073474890. Thank you!