is there a way to launch pyplanet via cron? The way i do it for PHP stuff doesn't work with it and google could not bring up a working solution sadly
Code: Select all
su -s /bin/bash -c "python3 /home/tm2/py_6001_pyplanet/manage.py start --detach --pid-file=pyplanet.pid" pyplanet
Code: Select all
Traceback (most recent call last):
File "/home/tm2/py_6001_pyplanet/manage.py", line 8, in <module>
from pyplanet.core.management import execute_from_command_line
ImportError: No module named 'pyplanet'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/tm2/py_6001_pyplanet/manage.py", line 14, in <module>
) from exc
ImportError: Couldn't import PyPlanet. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?