Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error when using with zope.sqlalchemy 1.2 #9

Closed
wobsta opened this issue Oct 22, 2019 · 1 comment · Fixed by #10
Closed

import error when using with zope.sqlalchemy 1.2 #9

wobsta opened this issue Oct 22, 2019 · 1 comment · Fixed by #10

Comments

@wobsta
Copy link

wobsta commented Oct 22, 2019

The recent update to zope.sqlalchemy 1.2 (see https://pypi.org/project/zope.sqlalchemy/#id1) renamed ZopeTransactionExtension to ZopeTransactionEvents. This breaks z3c.saconfig for me:

>>> import z3c.saconfig
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/wobsta/plone/ev/dev/eggs/z3c.saconfig-0.15-py2.7.egg/z3c/saconfig/__init__.py", line 2, in <module>
    from z3c.saconfig.utility import (
  File "/home/wobsta/plone/ev/dev/eggs/z3c.saconfig-0.15-py2.7.egg/z3c/saconfig/utility.py", line 11, in <module>
    from zope.sqlalchemy import ZopeTransactionExtension
ImportError: cannot import name ZopeTransactionExtension

(Pinning zope.sqlalchemy to <= 1.1 helps for me at the moment.)

@mgedmin mgedmin transferred this issue from zopefoundation/z3c.sqlalchemy Oct 22, 2019
@mgedmin
Copy link
Member

mgedmin commented Oct 22, 2019

Background: sqlalchemy deprecated extensions in favour of event registrations. zope.sqlalchemy 1.2 followed suit. See https://github.com/zopefoundation/zope.sqlalchemy/pull/38/files for upgrade instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants