-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Hello! When trying to install the library, the next error appears:
(base) jkatz@VIVO:/mnt/c/Bioinfo$ pip install pyfolio
Collecting pyfolio
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)'))': /packages/28/b4/99799b743c4619752f88b70354924132a2e9b82f4656fe7c55eaa9101392/pyfolio-0.9.2.tar.gz
Downloading pyfolio-0.9.2.tar.gz (91 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
/tmp/pip-install-pdgnpets/pyfolio_24babc165c59403f8a8ba96d28e16ed4/versioneer.py:468: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-pdgnpets/pyfolio_24babc165c59403f8a8ba96d28e16ed4/setup.py", line 71, in
version=versioneer.get_version(),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-pdgnpets/pyfolio_24babc165c59403f8a8ba96d28e16ed4/versioneer.py", line 1407, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/tmp/pip-install-pdgnpets/pyfolio_24babc165c59403f8a8ba96d28e16ed4/versioneer.py", line 1341, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-pdgnpets/pyfolio_24babc165c59403f8a8ba96d28e16ed4/versioneer.py", line 399, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I was not able to solve it by reinstalling it, using an older version or modifying the versioneer.py (suggested by chatgpt)