Skip to content

is there version for python 3.11? #74

@zdenop

Description

@zdenop

Suggested pip install IfxPy finished with:

Collecting IfxPy
  Using cached IfxPy-3.0.5.tar.gz (155 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      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.
      [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.

'pip install git+https://github.com/OpenInformix/IfxPy.git' produces:

ERROR: git+https://github.com/OpenInformix/IfxPy.git does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

So I tried:

>git clone https://github.com/OpenInformix/IfxPy.git
>cd IfxPy/IfxPy
>python setup.py bdist_wheel
Detected 64-bit Python
Downloading : https://hcl-onedb.github.io/odbc/OneDB-Win64-ODBC-Driver.zip
Extracting Windows ODBC files : https://hcl-onedb.github.io/odbc/OneDB-Win64-ODBC-Driver.zip
Smart Triggers are enabled.
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-311
copying IfxPyDbi.py -> build\lib.win-amd64-cpython-311
running build_ext
building 'IfxPy' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_SMARTTRIGGER -IC:\tmp\IfxPy\IfxPy\include -IC:\tmp\IfxPy\IfxPy\build/lib.win-amd64-3.11/onedb-odbc-driver\incl\cli -If:\Python\Python-3.11\include -If:\Python\Python-3.11\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.20348.0\cppwinrt" /Tcifxpyc.c /Fobuild\temp.win-amd64-cpython-311\Release\ifxpyc.obj
ifxpyc.c
ifxpyc.c(214): warning C4133: '=': incompatible types - from 'storeSessionID *' to 'storeSessionID *'
ifxpyc.c(401): warning C4047: '!=': 'SQLHANDLE' differs in levels of indirection from 'int'
ifxpyc.c(730): warning C4133: '=': incompatible types - from 'storeSessionID *' to 'storeSessionID *'
ifxpyc.c(900): warning C4133: '=': incompatible types - from 'storeSessionID *' to 'storeSessionID *'
ifxpyc.c(765): warning C4101: 'reserved': unreferenced local variable
ifxpyc.c(770): warning C4101: 'error': unreferenced local variable
ifxpyc.c(989): warning C4996: 'PyUnicode_GET_DATA_SIZE': deprecated in 3.3
ifxpyc.c(1014): warning C4996: 'PyUnicode_GET_DATA_SIZE': deprecated in 3.3
ifxpyc.c(1039): warning C4996: 'PyUnicode_GET_DATA_SIZE': deprecated in 3.3
ifxpyc.c(1064): warning C4996: 'PyUnicode_GET_DATA_SIZE': deprecated in 3.3
ifxpyc.c(1089): warning C4996: 'PyUnicode_GET_DATA_SIZE': deprecated in 3.3
ifxpyc.c(936): warning C4101: 'reserved': unreferenced local variable
ifxpyc.c(2199): warning C4996: 'PyUnicode_FromUnicode': deprecated in 3.3
ifxpyc.c(2233): warning C4996: 'PyUnicode_GET_SIZE': deprecated in 3.3
ifxpyc.c(2254): warning C4996: 'PyUnicode_GET_SIZE': deprecated in 3.3
ifxpyc.c(2263): warning C4996: 'PyUnicode_AS_UNICODE': deprecated in 3.3
ifxpyc.c(3055): warning C4133: '=': incompatible types - from 'storeSessionID *' to 'storeSessionID *'
ifxpyc.c(5950): warning C4244: 'function': conversion from 'SQLLEN' to 'SQLSMALLINT', possible loss of data
ifxpyc.c(5950): warning C4133: 'function': incompatible types - from 'SQLLEN *' to 'SQLINTEGER *'
ifxpyc.c(7468): warning C4244: 'function': conversion from 'SQLLEN' to 'long', possible loss of data
ifxpyc.c(7767): warning C4244: 'function': conversion from 'SQLLEN' to 'long', possible loss of data
ifxpyc.c(8042): warning C4244: 'function': conversion from 'SQLULEN' to 'long', possible loss of data
ifxpyc.c(8367): warning C4244: 'function': conversion from 'SQLLEN' to 'long', possible loss of data
ifxpyc.c(9354): warning C4133: 'function': incompatible types - from 'SQLWCHAR *' to 'const char *'
ifxpyc.c(11412): warning C4133: 'function': incompatible types - from 'SQLUINTEGER *' to 'SQLULEN *'
ifxpyc.c(11433): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
ifxpyc.c(11453): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
ifxpyc.c(11722): warning C4133: 'function': incompatible types - from 'SQLINTEGER *' to 'SQLLEN *'
ifxpyc.c(11892): warning C4244: 'function': conversion from 'SQLLEN' to 'long', possible loss of data
ifxpyc.c(11787): warning C4996: 'PyUnicode_GET_SIZE': deprecated in 3.3
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\tmp\IfxPy\IfxPy\libs /LIBPATH:C:\tmp\IfxPy\IfxPy\build/lib.win-amd64-3.11/onedb-odbc-driver\lib /LIBPATH:f:\Python\Python-3.11\libs /LIBPATH:f:\Python\Python-3.11 /LIBPATH:f:\Python\Python-3.11\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.20348.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.20348.0\um\x64" iclit09b.lib /EXPORT:PyInit_IfxPy build\temp.win-amd64-cpython-311\Release\ifxpyc.obj /OUT:build\lib.win-amd64-cpython-311\IfxPy.cp311-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-311\Release\IfxPy.cp311-win_amd64.lib
   Creating library build\temp.win-amd64-cpython-311\Release\IfxPy.cp311-win_amd64.lib and object build\temp.win-amd64-cpython-311\Release\IfxPy.cp311-win_amd64.exp
Generating code
Finished generating code
f:\Python\Python-3.11\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
installing to build\bdist.win-amd64\wheel
running install
running install_lib
creating build\bdist.win-amd64
creating build\bdist.win-amd64\wheel
copying build\lib.win-amd64-cpython-311\IfxPy.cp311-win_amd64.pyd -> build\bdist.win-amd64\wheel\.
copying build\lib.win-amd64-cpython-311\IfxPyDbi.py -> build\bdist.win-amd64\wheel\.
running install_egg_info
running egg_info
creating IfxPy.egg-info
writing IfxPy.egg-info\PKG-INFO
writing dependency_links to IfxPy.egg-info\dependency_links.txt
writing top-level names to IfxPy.egg-info\top_level.txt
writing manifest file 'IfxPy.egg-info\SOURCES.txt'
reading manifest file 'IfxPy.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.pyd'
adding license file 'LICENSE.txt'
writing manifest file 'IfxPy.egg-info\SOURCES.txt'
Copying IfxPy.egg-info to build\bdist.win-amd64\wheel\.\IfxPy-3.0.5-py3.11.egg-info
running install_scripts
f:\Python\Python-3.11\lib\site-packages\wheel\bdist_wheel.py:80: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
  if get_flag('Py_DEBUG',
adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*")
creating build\bdist.win-amd64\wheel\IfxPy-3.0.5.dist-info\WHEEL
creating 'dist\IfxPy-3.0.5-cp311-cp311-win_amd64.whl' and adding 'build\bdist.win-amd64\wheel' to it
adding 'IfxPy.cp311-win_amd64.pyd'
adding 'IfxPyDbi.py'
adding 'IfxPy-3.0.5.dist-info/LICENSE.txt'
adding 'IfxPy-3.0.5.dist-info/METADATA'
adding 'IfxPy-3.0.5.dist-info/WHEEL'
adding 'IfxPy-3.0.5.dist-info/top_level.txt'
adding 'IfxPy-3.0.5.dist-info/RECORD'
removing build\bdist.win-amd64\wheel

This generate wheel IfxPy-3.0.5-cp311-cp311-win_amd64.whl, but it has 60K size while IfxPy-3.0.5-cp38-cp38-win_amd64.whl has 38.3 MB... Seems like onedb-odbc-driver is missing from it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions