-
Notifications
You must be signed in to change notification settings - Fork 208
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
ImportError: No module named jwt.algorithms #91
Comments
I think one of our dependencies has changed and it's throwing up this stuff. See #90 for a possible fix. |
Hi @aidanlister, thanks for your response. Installing dev-python/cryptography changed the error on Gentoo, but python-cryptography was already installed on Debian. The new traceback on Gentoo is:
|
It must have something to do with the changes happening in oauthlib: There's been new releases in the past few days ... can you try downgrading On Mon, 17 Aug 2015 at 23:50 direvus [email protected] wrote:
|
Tried 0.7.1, 0.7.2, 1.0.0, 1.0.1 and 1.0.2 of oauthlib, no change. |
Sorry, a correction to my previous comment. My results were messed up by a problem with my testing script. The error "ValueError: Only unicode objects are escapable. Got None of type <type 'NoneType'>." seems to be what happens if you try to use PrivateCredentials with a consumer key of None. pyxero could possibly do some validation on this and throw a more helpful error message, but that's a different issue. The error "AttributeError: 'module' object has no attribute 'RSAAlgorithm'" is the real one, and it is indeed related to version >= 1.0.0 of oauthlib. Downgrading to oauthlib 0.7.2 seems to resolve the problem. |
I think this issue is still valid. The requirements definition is pulling in wrong/incompatible dependencies. Try using the library using a fresh virtualenv. |
Can confirm this issue is still current in a fresh virtualenv.
|
Downgrading to oauthlib 0.7.2 seems to resolve the problem as a work around. I'm not doing anything mission critical, just a local script but is still an issue. |
I am also getting the exact same error message with a fresh install. |
I tried the downgrade option but now I'm getting File "purchases.py", line 69, in |
Installing |
I just got this error using pyxero 0.7.0 with Python 2.7.6 on pythonanywhere.com. Downgrading to oauthlib 0.7.2 solved the issue for me. pip install oauthlib==0.7.2 |
Can you try upgrading to pyxero==0.8.0? |
Created a new venv and installed 0.8.0 but got a different error message:
Installed cryptography as per issue 90 and everything is working now. Here's what pip reports as installed (just in case it's useful):
Thanks :) |
I changed the dependencies to: Luckily, it works now. |
After installing pyxero 0.7.0 via pip, and attempting to connect to a Private Application, I get the following ImportError:
I've tried this on Gentoo and Ubuntu, with the same results. On Gentoo, I then installed pyjwt with pip, and got this:
Installing python-jwt on the Ubuntu machine made no difference.
PyCrypto is installed (2.6.1) on both machines. JWT appears to be required, pip doesn't install it automatically as a dependency, but even when it is installed, the thing doesn't seem to be able to load up the crypto libraries it wants. Am I taking crazy pills, or is something very wrong here?
The text was updated successfully, but these errors were encountered: