ImportError: cannot import name url

I’ve been attempting to install SatNOGS on a RaspberryPi with the RTLSDR dongle. I run sudo satnogs-setup and apply, and everything seems to be ok.

Here is my config from satnogs-setup:

hamlib_utils_rot_enabled: False
satnogs_api_token:
satnogs_network_api_url: https://network-dev.satnogs.org/api/
satnogs_rx_device: rtlsdr
satnogs_station_elev: 1024
satnogs_station_id: 738
satnogs_station_lat: 34.04
satnogs_station_lon: -84.56

When I run journalctl -u satnogs-client.service I get this:

– Logs begin at Thu 2016-11-03 17:16:43 UTC, end at Wed 2019-05-15 01:38:16 UTC. –
May 15 01:22:42 raspberrypi systemd[1]: Started SatNOGS client.
May 15 01:22:45 raspberrypi satnogs-client[528]: linux; GNU C++ version 6.2.0 20161010; Boost_106100; UHD_003.009.005-0-unknown
May 15 01:22:46 raspberrypi satnogs-client[528]: Traceback (most recent call last):
May 15 01:22:46 raspberrypi satnogs-client[528]: File “/var/lib/satnogs/bin/satnogs-client”, line 6, in
May 15 01:22:46 raspberrypi satnogs-client[528]: from satnogsclient.main import main
May 15 01:22:46 raspberrypi satnogs-client[528]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/satnogsclient/init.py”, line 4, in
May 15 01:22:46 raspberrypi satnogs-client[528]: from validators.url import url
May 15 01:22:46 raspberrypi satnogs-client[528]: ImportError: cannot import name url
May 15 01:22:46 raspberrypi systemd[1]: satnogs-client.service: Main process exited, code=exited, status=1/FAILURE
May 15 01:22:46 raspberrypi systemd[1]: satnogs-client.service: Unit entered failed state.
May 15 01:22:46 raspberrypi systemd[1]: satnogs-client.service: Failed with result ‘exit-code’.
May 15 01:22:46 raspberrypi systemd[1]: satnogs-client.service: Service hold-off time over, scheduling restart.
May 15 01:22:46 raspberrypi systemd[1]: Stopped SatNOGS client.
May 15 01:22:46 raspberrypi systemd[1]: Started SatNOGS client.
May 15 01:22:46 raspberrypi satnogs-client[535]: linux; GNU C++ version 6.2.0 20161010; Boost_106100; UHD_003.009.005-0-unknown
May 15 01:22:46 raspberrypi satnogs-client[535]: Traceback (most recent call last):
May 15 01:22:46 raspberrypi satnogs-client[535]: File “/var/lib/satnogs/bin/satnogs-client”, line 6, in
May 15 01:22:46 raspberrypi satnogs-client[535]: from satnogsclient.main import main
May 15 01:22:46 raspberrypi satnogs-client[535]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/satnogsclient/init.py”, line 4, in
May 15 01:22:46 raspberrypi satnogs-client[535]: from validators.url import url
May 15 01:22:46 raspberrypi satnogs-client[535]: ImportError: cannot import name url
May 15 01:22:46 raspberrypi systemd[1]: satnogs-client.service: Main process exited, code=exited, status=1/FAILURE
May 15 01:22:46 raspberrypi systemd[1]: satnogs-client.service: Unit entered failed state.
May 15 01:22:46 raspberrypi systemd[1]: satnogs-client.service: Failed with result ‘exit-code’.
May 15 01:22:47 raspberrypi systemd[1]: satnogs-client.service: Service hold-off time over, scheduling restart.
May 15 01:22:47 raspberrypi systemd[1]: Stopped SatNOGS client.
May 15 01:22:47 raspberrypi systemd[1]: Started SatNOGS client.
May 15 01:22:47 raspberrypi satnogs-client[537]: linux; GNU C++ version 6.2.0 20161010; Boost_106100; UHD_003.009.005-0-unknown
May 15 01:22:47 raspberrypi satnogs-client[537]: Traceback (most recent call last):
May 15 01:22:47 raspberrypi satnogs-client[537]: File “/var/lib/satnogs/bin/satnogs-client”, line 6, in
May 15 01:22:47 raspberrypi satnogs-client[537]: from satnogsclient.main import main
May 15 01:22:47 raspberrypi satnogs-client[537]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/satnogsclient/init.py”, line 4, in
May 15 01:22:47 raspberrypi satnogs-client[537]: from validators.url import url
May 15 01:22:47 raspberrypi satnogs-client[537]: ImportError: cannot import name url
May 15 01:22:47 raspberrypi systemd[1]: satnogs-client.service: Main process exited, code=exited, status=1/FAILURE
May 15 01:22:47 raspberrypi systemd[1]: satnogs-client.service: Unit entered failed state.
May 15 01:22:47 raspberrypi systemd[1]: satnogs-client.service: Failed with result ‘exit-code’.
May 15 01:22:47 raspberrypi systemd[1]: satnogs-client.service: Service hold-off time over, scheduling restart.
May 15 01:22:47 raspberrypi systemd[1]: Stopped SatNOGS client.
May 15 01:22:47 raspberrypi systemd[1]: Started SatNOGS client.
May 15 01:22:47 raspberrypi satnogs-client[539]: linux; GNU C++ version 6.2.0 20161010; Boost_106100; UHD_003.009.005-0-unknown
May 15 01:22:48 raspberrypi satnogs-client[539]: Traceback (most recent call last):
May 15 01:22:48 raspberrypi satnogs-client[539]: File “/var/lib/satnogs/bin/satnogs-client”, line 6, in
May 15 01:22:48 raspberrypi satnogs-client[539]: from satnogsclient.main import main
May 15 01:22:48 raspberrypi satnogs-client[539]: File “/var/lib/satnogs/local/lib/python2.7/site-packages/satnogsclient/init.py”, line 4, in
May 15 01:22:48 raspberrypi satnogs-client[539]: from validators.url import url
May 15 01:22:48 raspberrypi satnogs-client[539]: ImportError: cannot import name url
May 15 01:22:48 raspberrypi systemd[1]: satnogs-client.service: Main process exited, code=exited, status=1/FAILURE

Any thoughts would be appreciated.

Hello!

Is there any particular reason you are not using the ready-made Rpi3 image we have?

I am using the ready-made RPI3 image. That’s why this is so baffling.