Help with apscheduler - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Help with apscheduler (/thread-13572.html) |
Help with apscheduler - brakow87 - Oct-21-2018 Gettinf the following error when running software for SwitchDoc's GroveWeatherPi: Below is the code from the software itself:from apscheduler.schedulers.background import BackgroundScheduler import apscheduler.events # Check for user imports try: import conflocal as config except ImportError: import config if (config.enable_MySQL_Logging == True): import MySQLdb as mdbI have installed mysql and have tried apscheduler 3.x and 2.x Still same result. Any help would be greatly appreciated! RE: Help with apscheduler - buran - Oct-21-2018 do you have file named apscheduler.py in the same folder where the file GroveWeatherPi.py is? RE: Help with apscheduler - brakow87 - Oct-21-2018 I do not, it is my understanding that apscheduler is an advanced scheduler for python and is installed using a repository. I guess I can try to install while in the directory, but I dont think it will install in the directory, it will just install in the default/root location
RE: Help with apscheduler - buran - Oct-21-2018 Sorry, the point was not to install it in the directory. It happen that people name files like packages they try to use and that file overshadow the package and thus the import error RE: Help with apscheduler - brakow87 - Oct-21-2018 not sure if it is any help, but below is the link to the github repo. https://github.com/switchdoclabs/SDL_Pi_GroveWeatherPi RE: Help with apscheduler - buran - Oct-21-2018 at the moment I don't have other ideas. it says apscheduler is installed for python2, you run it with python2... |