pyauth / python-pkcs11

PKCS#11/Cryptoki support for Python
MIT License
149 stars 71 forks source link

Error received when installing: 'TypeError: can only concatenate tuple (not "list") to tuple' is back #146

Closed Muzosh closed 9 months ago

Muzosh commented 1 year ago

I have the same problem as discussed here https://github.com/danni/python-pkcs11/issues/133 while trying to install this via pip install python-pkcs11 on these versions: 3.10.8 and 3.11.0.

The installation works on version 3.10.1, to which the fix was implemented in https://github.com/danni/python-pkcs11/pull/136

Here is the log (3.11.0): log.txt

Muzosh commented 1 year ago

I have done some debugging and it seems that pip will download a TAR package with old code (using tuple instead of list in setup.py.

That's strange that it works for 3.10.1, but not for 3.10.8 or 3.11.0

Muzosh commented 1 year ago

I guess the #136 merge is not reflected into a Pypi package. But how come it does work on 3.10.1 via pip install python-pkcs11?

Anyway, on newer versions of Python, it can be installed by running pip install git+https://github.com/danni/python-pkcs11 instead.