Hi Ian,
I got an error while trying to start the daemon. what I find curios on a new install on a different Pi trying to start manually I receive the same traceback error.
This was the original Pi with the daemon
pi@earthquakepi:~ $ systemctl --user daemon-reload
pi@earthquakepi:~ $ sudo loginctl enable-linger "$USER"
pi@earthquakepi:~ $ systemctl --user start rsudp.service
pi@earthquakepi:~ $ tail -n 30 -f /tmp/rsudp/rsudp.log
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing ./bin/rsudp
Requirement already satisfied: obspy in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from rsudp==1.0.0) (1.1.1)
Requirement already satisfied: numpy in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from rsudp==1.0.0) (1.15.1)
Requirement already satisfied: matplotlib==3.1.1 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from rsudp==1.0.0) (3.1.1)
Requirement already satisfied: pydub in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from rsudp==1.0.0) (0.23.1)
Requirement already satisfied: twython in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from rsudp==1.0.0) (3.7.0)
Requirement already satisfied: python-telegram-bot in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from rsudp==1.0.0) (12.4.2)
Requirement already satisfied: future>=0.12.4 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from obspy->rsudp==1.0.0) (0.16.0)
Requirement already satisfied: setuptools in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from obspy->rsudp==1.0.0) (40.2.0)
Requirement already satisfied: lxml in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from obspy->rsudp==1.0.0) (4.2.4)
Requirement already satisfied: scipy>=0.9.0 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from obspy->rsudp==1.0.0) (1.0.0)
Requirement already satisfied: sqlalchemy in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from obspy->rsudp==1.0.0) (1.2.11)
Requirement already satisfied: requests in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from obspy->rsudp==1.0.0) (2.23.0)
Requirement already satisfied: decorator in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from obspy->rsudp==1.0.0) (4.4.1)
Requirement already satisfied: python-dateutil>=2.1 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from matplotlib==3.1.1->rsudp==1.0.0) (2.6.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from matplotlib==3.1.1->rsudp==1.0.0) (2.2.0)
Requirement already satisfied: kiwisolver>=1.0.1 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from matplotlib==3.1.1->rsudp==1.0.0) (1.1.0)
Requirement already satisfied: cycler>=0.10 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from matplotlib==3.1.1->rsudp==1.0.0) (0.10.0)
Requirement already satisfied: requests-oauthlib>=0.4.0 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from twython->rsudp==1.0.0) (1.3.0)
Requirement already satisfied: cryptography in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from python-telegram-bot->rsudp==1.0.0) (2.8)
Requirement already satisfied: certifi in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from python-telegram-bot->rsudp==1.0.0) (2018.8.24)
Requirement already satisfied: tornado>=5.1 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from python-telegram-bot->rsudp==1.0.0) (6.0.3)
Requirement already satisfied: chardet<4,>=3.0.2 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from requests->obspy->rsudp==1.0.0) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from requests->obspy->rsudp==1.0.0) (1.24.2)
Requirement already satisfied: idna<3,>=2.5 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from requests->obspy->rsudp==1.0.0) (2.9)
Requirement already satisfied: six>=1.5 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from python-dateutil>=2.1->matplotlib==3.1.1->rsudp==1.0.0) (1.11.0)
Requirement already satisfied: oauthlib>=3.0.0 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from requests-oauthlib>=0.4.0->twython->rsudp==1.0.0) (3.1.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from cryptography->python-telegram-bot->rsudp==1.0.0) (1.11.5)
Requirement already satisfied: pycparser in ./berryconda3/envs/rsudp/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.8->cryptography->python-telegram-bot->rsudp==1.0.0) (2.18)
Building wheels for collected packages: rsudp
Running setup.py bdist_wheel for rsudp: started
Running setup.py bdist_wheel for rsudp: finished with status 'done'
Stored in directory: /tmp/pip-ephem-wheel-cache-mgxrpsm3/wheels/96/51/7f/31c1c2db9498304e7bdaf78a5cbec199ccb81599ee71b037d2
Successfully built rsudp
Installing collected packages: rsudp
Found existing installation: rsudp 0.4.3
Uninstalling rsudp-0.4.3:
Successfully uninstalled rsudp-0.4.3
Successfully installed rsudp-1.0.0
Qt import failed. Trying Tk...
detail: No module named 'PyQt5'
2020-04-16 01:12:40 [Init] Logging initialized successfully.
2020-04-16 01:12:40 [Main] Logging initialized successfully.
2020-04-16 01:12:40 Using settings file: /home/pi/.config/rsudp/rsudp_settings.json
2020-04-16 01:12:40 Output directory is: /home/pi/rsudp
2020-04-16 01:12:40 [Init] Initializing.
2020-04-16 01:12:40 [openSOCK] Opening socket on localhost:8888 (HOST:PORT)
2020-04-16 01:12:40 [Init] Waiting for UDP data on port 8888...
2020-04-16 01:12:42 [Init] Available channels: ['EHZ', 'ENZ', 'ENN', 'ENE']
2020-04-16 01:12:42 [get_inventory] Fetching inventory for station AM.R7078 from Raspberry Shake FDSN.
2020-04-16 01:12:43 [get_inventory] Inventory fetch successful. Station region is VIRGIN ISLANDS
2020-04-16 01:12:43 [conn_stats] Initialization stats:
2020-04-16 01:12:43 [conn_stats] Port: 8888
2020-04-16 01:12:43 [conn_stats] Sending IP address: 192.168.40.71
2020-04-16 01:12:43 [conn_stats] Set station name: R7078
2020-04-16 01:12:43 [conn_stats] Number of channels: 4
2020-04-16 01:12:43 [conn_stats] Transmission freq.: 250 ms/packet
2020-04-16 01:12:43 [conn_stats] Transmission rate: 4 packets/sec
2020-04-16 01:12:43 [conn_stats] Samples per second: 100 sps
2020-04-16 01:12:43 [conn_stats] Inventory: AM.R7078 (Raspberry Shake Citizen Science Station)
2020-04-16 01:12:43 [Plot] WARNING: Running on armv7l machine, using Tk instead of Qt
2020-04-16 01:12:43 [Plot] Plotting 1 channels: ['EHZ']
2020-04-16 01:12:43 [Plot] Signal deconvolution set to CHAN
2020-04-16 01:12:43 [Plot] Seismogram units are channel-specific
2020-04-16 01:12:43 [Plot] Starting.
2020-04-16 01:12:43 [Alert] Alert stream units are counts
Traceback (most recent call last):
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 281, in run
if settings['custom']['enabled']:
KeyError: 'custom'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/berryconda3/envs/rsudp/bin/rs-client", line 11, in <module>
sys.exit(main())
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 451, in main
run(settings, debug=debug)
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 295, in run
raise KeyError(e)
KeyError: KeyError('custom',)
tail: /tmp/rsudp/rsudp.log: file truncated
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
this was the new Pi install on a diferent unit running it manually
pi@raspberrypi:~ $ cd ~/bin/rsudp
pi@raspberrypi:~/bin/rsudp $
pi@raspberrypi:~/bin/rsudp $ bash unix-start-rsudp.sh
Installing from the git directory...
Done.
Qt import failed. Trying Tk...
detail: No module named 'PyQt5'
2020-04-16 05:39:24 [Main] Logging initialized successfully.
2020-04-16 05:39:24 Using settings file: /home/pi/.config/rsudp/rsudp_settings.json
2020-04-16 05:39:24 Output directory is: /home/pi/rsudp
2020-04-16 05:39:24 [Init] Initializing.
2020-04-16 05:39:24 [openSOCK] Opening socket on localhost:8888 (HOST:PORT)
2020-04-16 05:39:24 [Init] Waiting for UDP data on port 8888...
2020-04-16 05:39:26 [Init] Available channels: ['EHZ', 'ENZ', 'ENN', 'ENE']
2020-04-16 05:39:26 [get_inventory] Fetching inventory for station AM.R7078 from Raspberry Shake FDSN.
2020-04-16 05:39:28 [get_inventory] Inventory fetch successful. Station region is VIRGIN ISLANDS
2020-04-16 05:39:28 [conn_stats] Initialization stats:
2020-04-16 05:39:28 [conn_stats] Port: 8888
2020-04-16 05:39:28 [conn_stats] Sending IP address: 192.168.40.71
2020-04-16 05:39:28 [conn_stats] Set station name: R7078
2020-04-16 05:39:28 [conn_stats] Number of channels: 4
2020-04-16 05:39:28 [conn_stats] Transmission freq.: 250 ms/packet
2020-04-16 05:39:28 [conn_stats] Transmission rate: 4 packets/sec
2020-04-16 05:39:28 [conn_stats] Samples per second: 100 sps
2020-04-16 05:39:28 [conn_stats] Inventory: AM.R7078 (Raspberry Shake Citizen Science Station)
2020-04-16 05:39:28 [Plot] WARNING: Running on armv7l machine, using Tk instead of Qt
2020-04-16 05:39:28 [Plot] Plotting 1 channels: ['EHZ']
2020-04-16 05:39:28 [Plot] Signal deconvolution set to CHAN
2020-04-16 05:39:28 [Plot] Seismogram units are channel-specific
2020-04-16 05:39:28 [Plot] Starting.
2020-04-16 05:39:28 [Alert] Alert stream units are counts
Traceback (most recent call last):
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 281, in run
if settings['custom']['enabled']:
KeyError: 'custom'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/berryconda3/envs/rsudp/bin/rs-client", line 11, in <module>
sys.exit(main())
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 451, in main
run(settings, debug=debug)
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 295, in run
raise KeyError(e)
KeyError: KeyError('custom',)
pi@raspberrypi:~/bin/rsudp $ conda activate rsudp
(rsudp) pi@raspberrypi:~/bin/rsudp $ rs-client
Qt import failed. Trying Tk...
detail: No module named 'PyQt5'
2020-04-16 05:42:57 [Main] Logging initialized successfully.
2020-04-16 05:42:57 Using settings file: /home/pi/.config/rsudp/rsudp_settings.json
2020-04-16 05:42:57 Output directory is: /home/pi/rsudp
2020-04-16 05:42:57 [Init] Initializing.
2020-04-16 05:42:57 [openSOCK] Opening socket on localhost:8888 (HOST:PORT)
2020-04-16 05:42:57 [Init] Waiting for UDP data on port 8888...
2020-04-16 05:42:59 [Init] Available channels: ['EHZ', 'ENZ', 'ENN', 'ENE']
2020-04-16 05:42:59 [get_inventory] Fetching inventory for station AM.R7078 from Raspberry Shake FDSN.
2020-04-16 05:43:00 [get_inventory] Inventory fetch successful. Station region is VIRGIN ISLANDS
2020-04-16 05:43:00 [conn_stats] Initialization stats:
2020-04-16 05:43:00 [conn_stats] Port: 8888
2020-04-16 05:43:00 [conn_stats] Sending IP address: 192.168.40.71
2020-04-16 05:43:00 [conn_stats] Set station name: R7078
2020-04-16 05:43:00 [conn_stats] Number of channels: 4
2020-04-16 05:43:00 [conn_stats] Transmission freq.: 250 ms/packet
2020-04-16 05:43:00 [conn_stats] Transmission rate: 4 packets/sec
2020-04-16 05:43:00 [conn_stats] Samples per second: 100 sps
2020-04-16 05:43:00 [conn_stats] Inventory: AM.R7078 (Raspberry Shake Citizen Science Station)
2020-04-16 05:43:00 [Plot] WARNING: Running on armv7l machine, using Tk instead of Qt
2020-04-16 05:43:00 [Plot] Plotting 1 channels: ['EHZ']
2020-04-16 05:43:00 [Plot] Signal deconvolution set to CHAN
2020-04-16 05:43:00 [Plot] Seismogram units are channel-specific
2020-04-16 05:43:00 [Plot] Starting.
2020-04-16 05:43:00 [Alert] Alert stream units are counts
Traceback (most recent call last):
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 281, in run
if settings['custom']['enabled']:
KeyError: 'custom'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/berryconda3/envs/rsudp/bin/rs-client", line 11, in <module>
sys.exit(main())
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 451, in main
run(settings, debug=debug)
File "/home/pi/berryconda3/envs/rsudp/lib/python3.6/site-packages/rsudp/client.py", line 295, in run
raise KeyError(e)
KeyError: KeyError('custom',)
(rsudp) pi@raspberrypi:~/bin/rsudp $
Thanks