On 03.10.16 18:13, Ralph Wetzel wrote:
I've just created a small modification so that The Box supports now APScheduler v3.x as well as v2.x. Be aware that this is not heavily tested - yet works flawless in my development environment.
Thanks. The new version works for me with APScheduler 2 on Debian Jessie. Unfortunately, it no longer works on my Gentoo Linux machines with dev-python/APScheduler-3.1.0 (neither with Python 2.7 nor with 3.4):
12:20:16.003 The Onion Box: WebInterface to monitor Tor Relays and Bridges 12:20:16.004 Version v3.0.1 (stamp 20161003|180117) [INFO] 12:20:16.004 Running on a Linux Host. [INFO] 12:20:16.004 Python version is 3.4.3. [INFO] 12:20:16.008 Manpage index file 'tor/tor.1.ndx' loaded. [WARN] 12:20:16.019 Failed to load configuration from 'theonionbox.cfg' 12:20:16.020 Operating with configuration from 'config/theonionbox.cfg' [INFO] 12:20:16.021 Switching to Message Level 'DEBUG'. 12:20:16.021 No temperature sensor information found. 12:20:16.022 Uptime information located. Expect to get a readout! Traceback (most recent call last): File "theonionbox.py", line 521, in <module> box_cron = Scheduler() File "/usr/local/theonionbox/theonionbox/tob/scheduler.py", line 23, in __init__ from apscheduler.scheduler import Scheduler
Seems to me that the statement
self.aps30 = apscheduler.version_info >= (3, 0, 0)
fails to recognise that APScheduler 3.x is available, causing the wrong import statement to be executed. Possibly a configuration problem on my end? Is anybody here running the latest TOB version successfully on Gentoo installations similar to mine?
Unrelated: could you please mark theonionbox.py as "executable" in Git? Starting TOB as a service fails otherwise. Thanks.
-Ralph