LedgerHQ / blue-loader-python

Python Loader for all Ledger devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip install returns error ('extras_require' must be a dictionary)

RogerKSI opened this issue · comments

Hi, I tried to install the package through pip but I got the error about extra_require.

Here is my command.

pip install setuptools==67.0.0 && pip install --no-cache-dir .

Here is the error.

error in ledgerblue setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.

I think it's because the setuptools package (version >=67.0.0) is not allowed package specifications that don't comply with PEP440 and 1.6.12-4build1 for python-pyscard in setup.py doesn't comply with PEP440.

setup.py

    extras_require = {
	'smartcard': [ 'python-pyscard>=1.6.12-4build1' ]
    },

also, I can't find this package and this version in PyPI. I guess it's this one (https://pypi.org/project/pyscard/).
Is it possible to update it to the correct package and version?

please let me know if you want me to open PR or have any other solution without downgrading setuptools version.

seems it has already been fixed in version 0.1.45. thanks.