Replies: 1 comment 2 replies
-
The problem is that your script doesn't know where to find allsky_shared. If you look at flow-runner.py (in the ~allsky/scripts folder) it sets the 'include path' for python
You could set the include path before your script runs, by appending '~/allsky/scripts/modules/' to the system path. Bear in mid that the shared module is intended to run inside the allsky process so some functions may not work if you run it from outside. A better solution is to write your code as an allsky module in which case it will have access to the shared module. Hope that helps but please feel free to ask if you need any more help Alex |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been guddling with a dew heater set up and looking at getting some debug messages into the log files. In my python script which is run periodically I have added the line
import allsky_shared as s
I then tried adding some logging messages
s.log(0, f"INFO: xxxx: {yyyy}")
But in the allsky periodic log I get the following:
2024-11-04T18:42:38.618667+00:00 allsky allskperiodic[6302]: File "/home/paul/allsky/personal/sensors.py", line 12, in
2024-11-04T18:42:38.618974+00:00 allsky allskperiodic[6302]: import allsky_shared as s
2024-11-04T18:42:38.619112+00:00 allsky allskperiodic[6302]: ModuleNotFoundError: No module named 'allsky_shared'
so it seems that allsky_shared is missing or not where it is expected to be .....can anyone point me in the right direction to fix this?
Beta Was this translation helpful? Give feedback.
All reactions