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

pyasn1 0.3.1 doesn't work with pyasn1-module 0.0.9 #51

Closed
smtakeda opened this issue Jul 26, 2017 · 5 comments
Closed

pyasn1 0.3.1 doesn't work with pyasn1-module 0.0.9 #51

smtakeda opened this issue Jul 26, 2017 · 5 comments

Comments

@smtakeda
Copy link

pyasn1 0.3.1 caused a regression with pyasn1-module 0.0.9:

virtualenv-3.4 /tmp/a
source /tmp/a/bin/activate
pip install pyasn1 pyasn1-modules
python -c 'from pyasn1_modules import (rfc2560)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/a/lib/python3.4/site-packages/pyasn1_modules/rfc2560.py", line 137, in <module>
    class ResponseData(univ.Sequence):
  File "/tmp/a/lib/python3.4/site-packages/pyasn1_modules/rfc2560.py", line 143, in ResponseData
    namedtype.NamedType('responses', univ.SequenceOf(SingleResponse())),
TypeError: __init__() takes 1 positional argument but 2 were given

Is this combination of library supported?

A workaround is

pip install -U pyasn1==0.2.3
@etingof
Copy link
Owner

etingof commented Jul 26, 2017

The combination of these two libraries should definitely be supported. The update for pyasn1-modules is on its way.

Sorry for the hiccup!

@etingof
Copy link
Owner

etingof commented Jul 26, 2017

So the issue you encountered should be fixed by commit etingof/pyasn1-modules@eb30a14

I'm running more tests now before releasing the fixed version.

@allenluce
Copy link

Ran into the same issue. In my case, https://github.com/snowflakedb/snowflake-connector-python pulled this in as a dependency.

@etingof
Copy link
Owner

etingof commented Jul 26, 2017

Here is the emergency release on PyPI.

Please speak up in case of further troubles.

@smtakeda
Copy link
Author

Thanks for a quick fix! Verified the fix.

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

No branches or pull requests

3 participants