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

pip install python-jose fails on Windows 10 #69

Open
Tset-Noitamotua opened this issue Oct 3, 2017 · 6 comments
Open

pip install python-jose fails on Windows 10 #69

Tset-Noitamotua opened this issue Oct 3, 2017 · 6 comments

Comments

@Tset-Noitamotua
Copy link

pip install python-jose
...
running build_ext
  warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
  building 'Crypto.Random.OSRNG.winrandom' extension
  error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

  ----------------------------------------
  Failed building wheel for pycrypto
...
Command "c:\python_virtual_envs\jwt\scripts\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\ME\\appdata\\local\\temp\\pip-build-6sf2d9\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\ME\appdata\local\temp\pip-ouryei-record\install-record.txt --single-version-externally-managed --compile --install-headers c:\python_virtual_envs\jwt\include\site\python2.7\pycrypto" failed with error code 1 in c:\users\ME\appdata\local\temp\pip-build-6sf2d9\pycrypto\
@simonjk
Copy link

simonjk commented Oct 31, 2017

I have the same issue

@jdelic
Copy link

jdelic commented Nov 8, 2017

The ideal solution would be to replace the dependency to pycrypto (outdated, no longer supported) with pycryptodome which is a drop-in replacement for pycrypto that has wheels on pypi.

@basking2
Copy link

Currently, if you install the Win C++ tools the compile of pycrypto fails. You can make some minor tweaks to header files and get the install to complete.

My point in commenting is that, even if the user takes the extra step to install Visual C++, pycrypto still blocks a clean install.

I would very-much like if python-jose used pycryptodome. Even better would be if I could find time to make a PR. ;)

@basking2
Copy link

... It took me looking at source code to notice this: python-jose-cryptodome.

I suggest you make that your dependency and close this issue.

@bajcmartinez
Copy link

Were you able to install it on windows? It also fails for win7, can't get it to install

@PeterMosmans
Copy link

Slightly related and for your information: There was an issue with regards to building and installing pycryptodome on Windows (using mingw). This is now resolved.
If you install https://github.com/Legrandin/pycryptodome first, then the rest should work (as well). See Legrandin/pycryptodome@a84d382 for more information.

Hope this helps,

Peter

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

6 participants