question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

use_2to3 is invalid (ibm_db)

See original GitHub issue

setuptools version

setuptools==58.0.4

Python version

Python 3.6

OS

Linux Centos 8

Additional environment information

No response

Description

Our build failed when using setuptools-58.0.4 and then to install ibm_db, it had worked with setuptools==57.5.0

pip3 install --upgrade setuptools PyYAML
=> Successfully installed PyYAML-5.4.1 setuptools-58.0.4
pip3 install --no-cache-dir ibm_db
Collecting ibm_db
  Downloading https://files.pythonhosted.org/packages/dc/7c/26c1eb0ce78689a6a6775337b43f498f8e901790ec0bafd6f24e2ef594af/ibm_db-3.0.4.tar.gz (796kB)
    Complete output from command python setup.py egg_info:
    Detected 64-bit Python
    Downloading https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz
    error in ibm_db setup command: use_2to3 is invalid.

Expected behavior

setuptools-58.0.0+ need to support use_2to3

How to Reproduce

As mentioned in Description

Output

pip3 install --no-cache-dir ibm_db
Collecting ibm_db
  Downloading https://files.pythonhosted.org/packages/dc/7c/26c1eb0ce78689a6a6775337b43f498f8e901790ec0bafd6f24e2ef594af/ibm_db-3.0.4.tar.gz (796kB)
    Complete output from command python setup.py egg_info:
    Detected 64-bit Python
    Downloading https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz
    error in ibm_db setup command: use_2to3 is invalid.

Code of Conduct

  • I agree to follow the PSF Code of Conduct

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
caixiangibmcommented, Sep 14, 2021

@jaraco , would you advise how to fix here or input into this ibmdb git issue - https://github.com/ibmdb/python-ibmdb/issues/655? It seems that some persons are being blocked as “use_2to3 is invalid” error in their builds.

0reactions
jaracocommented, Oct 5, 2021

FYI - ibm_db has released a new version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error in ibm_db setup command: use_2to3 is invalid [duplicate]
The issue you ran into seems related to a problem with setuptools. See this issue in the GitHub repository for the ibm_db driver....
Read more >
Error-handling functions in Python (ibm_db)
Sometimes errors happen when you attempt to connect to a database or issue an SQL statement. The user name or password might be...
Read more >
setup.py · master · urz-django / python-ibmdb-django · GitLab
Open in Web IDE. Quickly and easily edit multiple files in your project. · Edit. Edit this file only.
Read more >
ibm-db - PyPI
Python DBI driver for DB2 (LUW, zOS, i5) and IDS.
Read more >
Untitled
解决pip install报错:setup command: use_2to3 is invalid. Step 2: Change the current path of the directory in the command line to the path of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found