TurboGears / tg2devtools

TurboGears 2.x DevTools repository
http://www.turbogears.org/
16 stars 20 forks source link

cannot import zope.sqlalchemy.ZopeTransactionExtension #15

Closed hemna closed 5 years ago

hemna commented 5 years ago

I just created a new project from gearbox quickstart and tried to run gearbox serve and it fails to start.

It looks like zope.sqlalchemy has broken compatibility in their latest release 1.2 https://pypi.org/project/zope.sqlalchemy/#id1

[I] (.venv) ^^/d/m/t/ass >>> gearbox serve --reload                                                                                                15:24:57
15:25:02,993 INFO  [gearbox] Starting monitor for PID 16101.
15:25:04,051 ERROR [gearbox] Failed to load application
15:25:04,051 ERROR [gearbox] cannot import name 'ZopeTransactionExtension' from 'zope.sqlalchemy' (/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/zope/sqlalchemy/__init__.py)
Traceback (most recent call last):
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/gearbox/main.py", line 172, in _run_subcommand
    return cmd.run(parsed_args)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/gearbox/command.py", line 31, in run
    self.take_action(parsed_args)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/gearbox/commands/serve.py", line 280, in take_action
    relative_to=base, global_conf=parsed_vars)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/gearbox/commands/serve.py", line 311, in loadapp
    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 253, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 277, in loadobj
    global_conf=global_conf)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 302, in loadcontext
    global_conf=global_conf)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 326, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 459, in get_context
    section)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 481, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 412, in get_context
    global_conf=global_conf)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 302, in loadcontext
    global_conf=global_conf)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 334, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 625, in get_context
    object_type, name=name)
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/paste/deploy/loadwsgi.py", line 651, in find_egg_entry_point
    possible.append((entry.load(), protocol, entry.name))
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/waboring/devel/mine/tmp/ass/ass/config/application.py", line 3, in <module>
    from ass.config.app_cfg import base_config
  File "/Users/waboring/devel/mine/tmp/ass/ass/config/app_cfg.py", line 11, in <module>
    from ass import model, lib
  File "/Users/waboring/devel/mine/tmp/ass/ass/model/__init__.py", line 4, in <module>
    from zope.sqlalchemy import ZopeTransactionExtension
ImportError: cannot import name 'ZopeTransactionExtension' from 'zope.sqlalchemy' (/Users/waboring/devel/mine/tmp/.venv/lib/python3.7/site-packages/zope/sqlalchemy/__init__.py)
Press ENTER or change a file to reload.