After reading on appFog website that I could use APScheduler to make a python background worker, I gave it a try.
I tried to push a simple python standalone application with a requirements.txt
file (created with pip freeze
) which contains the following lines:
APScheduler==2.0.3
MySQL-python==1.2.4b5
But when pushing it to appFog I got the following error:
====> /logs/stderr.log <====
Traceback (most recent call last):
File "testConnectionDB.py", line 3, in <module>
from apscheduler.scheduler import Scheduler
ImportError: No module named apscheduler.scheduler
So I guessed the requirements.txt
file was not read. The appFog support confirmed that it is indeed not supported yet for standalone apps, i.e. python standalone apps cannot import libraries on appfog, thus their use is very limited.
So I was wondering if someone already had this experience and if someone had found a workaround. I would prefer not do it in ruby or switch to another platform. Is there a way to do this with a regular python or django-python app?