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

error in IfxPy setup command: use_2to3 is invalid. #62

Open
zdenop opened this issue Nov 22, 2021 · 6 comments
Open

error in IfxPy setup command: use_2to3 is invalid. #62

zdenop opened this issue Nov 22, 2021 · 6 comments

Comments

@zdenop
Copy link

zdenop commented Nov 22, 2021

I tried to install IfxPy on windows 10 64bit but it fails:

pip install ifxpy
Collecting ifxpy
  Downloading IfxPy-3.0.5.tar.gz (155 kB)
     |████████████████████████████████| 155 kB 1.3 MB/s
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Python\Python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\zdeno\\AppData\\Local\\Temp\\pip-install-zvv5p8yr\\ifxpy_c8342a8b88f54029a6680c183faf2463\\setup.py'"'"'; __file__='"'"'C:\\Users\\zdeno\\AppData\\Local\\Temp\\pip-install-zvv5p8yr\\ifxpy_c8342a8b88f54029a6680c183faf2463\\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 'C:\Users\zdeno\AppData\Local\Temp\pip-pip-egg-info-d6o7ebwt'
       cwd: C:\Users\zdeno\AppData\Local\Temp\pip-install-zvv5p8yr\ifxpy_c8342a8b88f54029a6680c183faf2463\
  Complete output (5 lines):
  Detected 64-bit Python
  Downloading : https://hcl-onedb.github.io/odbc/OneDB-Win64-ODBC-Driver.zip
  error in IfxPy setup command: use_2to3 is invalid.
  Extracting Windows ODBC files : https://hcl-onedb.github.io/odbc/OneDB-Win64-ODBC-Driver.zip
  Smart Triggers are enabled.
  ----------------------------------------

my python version is 3.9.9 and setuptools 58.1.0.

@jsagrera
Copy link
Collaborator

setuptools>=58 breaks support for use_2to3
Until there is a new version of IfxPy with all the Python2 removed, I suggest to switch back to setuptools 57.

@Marc176
Copy link

Marc176 commented Jan 10, 2022

This is really annyoing - IBM/HCL should handle this as high prio....

@plitter
Copy link

plitter commented Jan 15, 2022

The commit e68e47b might fix it I guess :)

@alinmear
Copy link

But right now, the last module version on pypi is 3.0.5, Oct 21, 2020. So we need a new pypi package with version for this to work.

@jsagrera
Copy link
Collaborator

Build it from source.

@alinmear
Copy link

yes already done; but for the overall process and the general public, a new version + pypi package would be the cleanest way.

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

5 participants