Closed jimmyeao closed 3 years ago
update, got past the install issue by using pip3 instead of pip However, now the service does not start:
Failed to start Cozmars Sanic server
/usr/bin/python3: No module named rcute_cozmars_server
Yes, it should be 'libopenjp2-7".
try running server from command line sudo python3 -m rcute_cozmars_server
and see what's the error
No module named rcute_cozmars_server
I think it means rcute-cozmars-server is not installed successfully
pi@raspberrypi:~ $ sudo python3 -m rcute_cozmars_server
/usr/bin/python3: No module named rcute_cozmars_server
Looks like it didnt get installed correctly
@jimmyeao Oh, maybe you should install with sudo, coz systemctl runs with sudo too:
sudo python3 -m pip install rcute-cozmars-server
I'll update readme
Thats looking better thanks:
pi@raspberrypi:~ $ service cozmars status
● cozmars.service - Cozmars Sanic server
Loaded: loaded (/etc/systemd/system/cozmars.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-12-09 12:25:15 GMT; 1s ago
Main PID: 2404 (python3)
Tasks: 1 (limit: 729)
CGroup: /system.slice/cozmars.service
└─2404 python3 -m rcute_cozmars_server
Dec 09 12:25:15 raspberrypi systemd[1]: Started Cozmars Sanic server.
Doesnt seem to be listening on any ports though, should it be?
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 502/sshd
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 622/sshd: pi@pts/0
tcp6 0 0 :::22 :::* LISTEN 502/sshd
tcp6 0 0 ::1:6010 :::* LISTEN 622/sshd: pi@pts/0
I get connection refused. I'll wait for the updated readme, then re-do from scratch :) I am still waiting on some of the electronics to arrive - I do have the printed parts ready so the fun of assembly is yet to come :) Really looking forwards to getting this put together, its a great project!
I think it's because you don't connect the screen and servo driver yet, and server is unable to communicate with these i2c/spi devices on start up.
[Edit] Connection to any peripheral is no longer required to start server in v2
@jimmyeao Sorry for the late reply but you can type "/usr/bin/env python3 -m rcute_cozmars_server" in the command line of your raspberry pi to get more details on why your device is not connecting. P.s. Great work @hyansuper ! I'm having so much fun with this project.
Couple of errors in the readme.md first line of install
sudo apt install libtiff5 ibopenjp2-7 libportaudio2 python3-cffi
is missing an "l" and should readsudo apt install libtiff5 libopenjp2-7 libportaudio2 python3-cffi
2nd line gives the following: (possibly missing some pre-requisites?)