2 Replies Latest reply: May 26, 2016 5:49 AM by aaa RSS

bug APScheduler steelscript.appfwk

aaa

Hello,

 

It seems that using APScheduler 3.1.0 generates the following bug when generating a new workplace:

 

(venv_test)[steelscript@fr0-vsiaas-1642 steelscript]$ steel appfwk mkproject  -d test

Traceback (most recent call last):

  File "/opt/steelscript/venv_test/bin/steel", line 9, in <module>

    load_entry_point('steelscript==1.0.1', 'console_scripts', 'steel')()

  File "/opt/steelscript/venv_test/lib/python2.7/site-packages/steelscript/commands/steel.py", line 1030, in run

    cmd.parse(sys.argv[1:])

  File "/opt/steelscript/venv_test/lib/python2.7/site-packages/steelscript/commands/steel.py", line 274, in parse

    subcmds[0].parse(args[1:])

  File "/opt/steelscript/venv_test/lib/python2.7/site-packages/steelscript/commands/steel.py", line 270, in parse

    subcmds = [subcmd for subcmd in self.subcommands

  File "/opt/steelscript/venv_test/lib/python2.7/site-packages/steelscript/commands/steel.py", line 151, in subcommands

    self.load_subcommands()

  File "/opt/steelscript/venv_test/lib/python2.7/site-packages/steelscript/commands/steel.py", line 247, in load_subcommands

    i = importlib.import_module(n)

  File "/opt/rh/python27/root/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module

    __import__(name)

  File "/opt/steelscript/venv_test/lib/python2.7/site-packages/steelscript/appfwk/commands/scheduler.py", line 65, in <module>

    from apscheduler.schedulers.blocking import BlockingScheduler

  File "/opt/steelscript/venv_test/lib/python2.7/site-packages/apscheduler/__init__.py", line 3, in <module>

    version_info = tuple(int(x) if x.isdigit() else x for x in parsed_version.public.split('.'))

AttributeError: 'tuple' object has no attribute 'public'

 

Downgrading to APScheduler 3.0.0 solves the issue.

 

Best regards,