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

installation issue with setuptools version > 58.0.0 #663

Closed
otemek opened this issue Sep 21, 2021 · 1 comment
Closed

installation issue with setuptools version > 58.0.0 #663

otemek opened this issue Sep 21, 2021 · 1 comment

Comments

@otemek
Copy link

otemek commented Sep 21, 2021

While trying to install ibm_db (either pip or pipenv):
pip install ibm-db
I'm getting an error:

Creating virtual environment...created virtual environment CPython3.9.5.final.0-64 in 746ms
creator CPython3Posix(dest=/home/jenkins/.local/share/virtualenvs/tmp-MTuOIU7C, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/jenkins/.local/share/virtualenv)
added seed packages: pip==21.2.4, setuptools==58.0.4, wheel==0.37.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
�✔ Successfully created virtual environment!
Virtualenv location: /home/jenkins/.local/share/virtualenvs/tmp-MTuOIU7C
Clearing caches...
Installing dependencies from Pipfile.lock (da1e39)...
An error occurred while installing ibm-db==3.0.4 --hash=sha256:2c6a806eb5071eacca5ddea0f0e4b8ad13594b1ba24dd57f00ea88708df289b3! Will try again.
Looking in indexes: https://XXXXXX
Installing initially failed dependencies...
[InstallError]: File "/home/jenkins/.local/lib/python3.9/site-packages/pipenv/cli/command.py", line 684, in sync
[InstallError]: retcode = do_sync(
[InstallError]: File "/home/jenkins/.local/lib/python3.9/site-packages/pipenv/core.py", line 2884, in do_sync
[InstallError]: do_init(
[InstallError]: File "/home/jenkins/.local/lib/python3.9/site-packages/pipenv/core.py", line 1304, in do_init
[InstallError]: do_install_dependencies(
[InstallError]: File "/home/jenkins/.local/lib/python3.9/site-packages/pipenv/core.py", line 899, in do_install_dependencies
[InstallError]: batch_install(
[InstallError]: File "/home/jenkins/.local/lib/python3.9/site-packages/pipenv/core.py", line 796, in batch_install
[InstallError]: _cleanup_procs(procs, failed_deps_queue, retry=retry)
[InstallError]: File "/home/jenkins/.local/lib/python3.9/site-packages/pipenv/core.py", line 703, in _cleanup_procs
[InstallError]: raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: Looking in indexes: http://XXXXX
[pipenv.exceptions.InstallError]: Collecting ibm-db==3.0.4
[pipenv.exceptions.InstallError]: Using cached https://XXXX/api/pypi/pypi-remote/packages/packages/dc/7c/26c1eb0ce78689a6a6775337b43f498f8e901790ec0bafd6f24e2ef594af/ibm_db-3.0.4.tar.gz (796 kB)
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]: command: /home/jenkins/.local/share/virtualenvs/tmp-MTuOIU7C/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4jav0u6n/ibm-db_890d3c22d74c41e4acfb9a4676f5c99c/setup.py'"'"'; file='"'"'/tmp/pip-install-4jav0u6n/ibm-db_890d3c22d74c41e4acfb9a4676f5c99c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-5z1jc8ip
[pipenv.exceptions.InstallError]: cwd: /tmp/pip-install-4jav0u6n/ibm-db_890d3c22d74c41e4acfb9a4676f5c99c/
[pipenv.exceptions.InstallError]: Complete output (5 lines):
[pipenv.exceptions.InstallError]: Detected 64-bit Python
[pipenv.exceptions.InstallError]: /tmp/pip-install-4jav0u6n/ibm-db_890d3c22d74c41e4acfb9a4676f5c99c/setup.py:304: UserWarning: Detected usage of IBM Data Server Driver package. Ensure you have downloaded 64-bit package of IBM_Data_Server_Driver and retry the ibm_db module install
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: warnings.warn(notifyString)
[pipenv.exceptions.InstallError]: error in ibm_db setup command: use_2to3 is invalid.
[pipenv.exceptions.InstallError]: ----------------------------------------
[pipenv.exceptions.InstallError]: WARNING: Discarding https:/XXXXXXX/api/pypi/pypi-remote/packages/packages/dc/7c/26c1eb0ce78689a6a6775337b43f498f8e901790ec0bafd6f24e2ef594af/ibm_db-3.0.4.tar.gz#sha256=2c6a806eb5071eacca5ddea0f0e4b8ad13594b1ba24dd57f00ea88708df289b3 (from https://XXXXXXXXX/api/pypi/pypi-remote/simple/ibm-db/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[pipenv.exceptions.InstallError]: ERROR: Could not find a version that satisfies the requirement ibm-db==3.0.4 (from versions: 0.2.0, 0.2.6, 0.2.7, 0.2.9, 0.2.9.1, 0.3.0, 0.4.0, 0.4.1, 0.6.0, 0.7.0, 0.7.2, 0.7.2.1, 0.7.2.5, 0.8.0, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.4.1, 2.0.5, 2.0.5.1, 2.0.6.1, 2.0.7, 2.0.8a0, 2.0.8, 2.0.9, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4)
[pipenv.exceptions.InstallError]: ERROR: No matching distribution found for ibm-db==3.0.4
ERROR: Couldn't install package: ibm-db
Package installation failed...

ℹ️ Issue related to lib2to3 will be removed in Python 3.10

Workaround:
downgrade setuptools in version below 58 (e.g. latest 57.5.0)

Kindly ask for fix

Regards
otemek

@otemek
Copy link
Author

otemek commented Sep 21, 2021

duplicate issue: #653, #660, #655
fix under: #661

@otemek otemek closed this as completed Sep 21, 2021
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

1 participant