Traceback (most recent call last):
File "/home/pi/autosked/satnogs-auto-scheduler/schedule_single_station.py", line 6, in <module>
from satellite_tle import fetch_tles
File "/home/pi/.local/lib/python2.7/site-packages/satellite_tle/__init__.py", line 1, in <module>
from .fetch_tle import * # noqa
File "/home/pi/.local/lib/python2.7/site-packages/satellite_tle/fetch_tle.py", line 6, in <module>
from lxml import html
ImportError: No module named lxml
I haven’t updated autoscheduler, ever (to my knowledge). Essentially what has been happening lately is my stations just stop working. They are shown as “online”, yet observations are auto-vetted as bad as no results are uploaded. I go in and reboot the system, which results in no change. Then I update the client via “update” and “apply” in satnogs-setup, and typically things get back to normal. After upgrading to client 1.4 recently, my station 187 autoscheduler doesn’t work at all, even when I manually run the commands as shown in the OP.
autoscheduler and satnogs-client are two completely independent (code-base wise) projects.
My guess is you have both of them installed in the same system and somehow your python libs got meshed up.
My suggestion: run autoscheduler in a virtualenv
the version of satellitetle you are using is outdated (lxml usage was dropped in v0.8.0 with f940b27, >=v0.10.1 is required for the latest version of the auto-scheduler).
I recommend to re-install the auto-scheduler as described in here. Also note that Python 2.7 is not supported.
Happy to hear your results!
Sincerely,
Fabian
PS: I have no idea why it broke now. Maybe something else on the system uninstalled the lxml package? To prevent such issues in the future I recommend to use a virtual environment for the auto-scheduler as described in the installation guide.
Results: I re-installed as per @kerel instructions and it appears that the virtual environment fixed the issue. In looking at my other station (272), it was already running in a virtual environment so I guess that’s why I haven’t had issues with that one.
So provided my crontab commands are clear of typos, i should be back on line. Thanks, all!
As usual - I jinxed myself. It appears that now neither my 187 station nor my 272 station now both have non-functioning auto-schedulers. Looking at both this morning, there are only 6 or 7 observations scheduled when there should be closer to 30 on each station.
I’ll take a look tonight when I get home from work…
Apparently the list of satellites for which the auto-scheduler should schedule observations is empty (Finding all passes for 0 satellites). Maybe there is an issue with the priorities file?
edit:
Or you might have been hit by satnogs-auto-scheduler#21. This can be checked by examining the TLE & transmitter files in /tmp/cache.