-
Notifications
You must be signed in to change notification settings - Fork 71
pip install fails #11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hi, you need a newer setuptools. It's meant to upgrade setuptools when it installs, but I'm guessing it needs a newer setuptools to do that. |
Hello, I'm not very keen on upgrading setuptools since it comes as part of the distribution and is supported as part of that. Is there a way to add backwards compatibility to the package itself? Thanks |
I don’t recommend installing directly from pip into the OS. Install into a virtualenv. Inside that virtualenv you can then upgrade setuptools safely without affecting the OS. You can also use pip-tools to record the current versions of things, which makes upgrades easier.
Also let’s you pin a version of Python. If you look in the tests directory you can see how we combine virtualenv with SCL if that’s what you’re using to get a more recent Python.
…On 12 October 2017 at 22:57:32, Alexandros Nikolopoulos ***@***.******@***.***)) wrote:
Hello,
I have resolved this issue by removing the "python_version < "3.6"" and reinstalling.
I'm not very keen on upgrading setuptools since it comes as part of the distribution and is supported as part of that. Is there a way to add backwards compatibility to the package itself?
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub(#11 (comment)), or mute the thread(https://github.com/notifications/unsubscribe-auth/AAH5wAq6JgGDWqyKf7Sz_uXlAAhRXXnaks5srf6rgaJpZM4P1U6S).
|
hi @danni C:\Python27\Scripts>pip install python-pkcs11 Command "python setup.py egg_info" failed with error code 1 in c:\users\tuangp~1\appdata\local\temp |
Hi @revTimo, Python 2.7 is not supported. You need at least Python 3.4+. Additionally, it probably doesn't work on Windows yet, as the PKCS#11 lib is loaded via |
thanks for your reply @danni so do u have any advice for developing with window and Python 2.7 |
The code will never support Python 2.7, it just uses too many Python 3.x features. As for supporting Windows, it's possible, but I haven't tried yet as it hasn't been needed. |
Hi, I will need also Windows and MacOS support for my project, so I can help porting to this Operating Systems, but I have planning to work on that in January or February of the next year. |
macOS should work, I wrote the original code under macOS and have used it to connect to the Nitrokey HSM. It could be added to CI if anyone is aware of a free service (never mind, I've realised I can do it on Travis). Windows doesn't have |
hello again @danni i just upgrade python to version 3.6 and install again pkcs11-tool. C:\Python34\Scripts>pip install python-pkcs11
Command "c:\python34\python.exe -u -c "import setuptools, tokenize;file='C: |
Windows support is #12 |
Release: 23 July 2023 v3.1 spec: https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/pkcs11-spec-v3.1.html https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/include/pkcs11-v3.1/pkcs11.h https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/include/pkcs11-v3.1/pkcs11f.h https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/include/pkcs11-v3.1/pkcs11t.h
Hello,
When installing v0.4.0 on CentOS 7 with python 3.4 (from epel), the procedure fails with the message:
Collecting python-pkcs11
Using cached python-pkcs11-0.4.0.tar.gz
Complete output from command python setup.py egg_info:
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Plex/Scanners.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Plex/Actions.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Pythran.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Lexicon.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Scanning.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Parsing.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Visitor.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/FlowControl.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Code.py because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Runtime/refnanny.pyx because it changed.
Compiling /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Tempita/_tempita.py because it changed.
[ 1/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Code.py
[ 2/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/FlowControl.py
[ 3/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Lexicon.py
[ 4/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Parsing.py
[ 5/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Pythran.py
[ 6/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Scanning.py
[ 7/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Compiler/Visitor.py
[ 8/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Plex/Actions.py
[ 9/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Plex/Scanners.py
[10/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Runtime/refnanny.pyx
[11/11] Cythonizing /tmp/easy_install-a9ozvf88/Cython-0.27.1/Cython/Tempita/_tempita.py
Unable to find pgen, not compiling formal grammar.
warning: no files found matching '2to3-fixers.txt'
warning: no files found matching 'Doc/'
warning: no files found matching '.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '.pxd' under directory 'Cython/Utility'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4xbb9fkr/python-pkcs11/
The text was updated successfully, but these errors were encountered: