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

Fails to install with python 3.11 #26

Closed
FlyingWolFox opened this issue May 23, 2023 · 5 comments
Closed

Fails to install with python 3.11 #26

FlyingWolFox opened this issue May 23, 2023 · 5 comments
Assignees

Comments

@FlyingWolFox
Copy link

Trying to install bitstream from a clean venv resuts in pip not found
$ pip install bitstream

Collecting bitstream
  Downloading bitstream-2.6.0.2.tar.gz (163 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.4/163.4 kB 2.7 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      Traceback (most recent call last):
        File "<string>", line 19, in <module>
      ModuleNotFoundError: No module named 'pip'
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-2aosh0oh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-2aosh0oh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-2aosh0oh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-2aosh0oh/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 22, in <module>
      ImportError: pip is not installed, refer to <http://pip.readthedocs.org> for instructions.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

If wheel is installed on the venv, the error goes away, but a compilation error happens:

Collecting bitstream
  Using cached bitstream-2.6.0.2.tar.gz (163 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: bitstream
  Building wheel for bitstream (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [103 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'bitstream' extension
      creating build
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/src
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/numpy/core/include -I/home/flyingwolfox/source/ITI_project/bitstream/venv/include -I/usr/include/python3.11 -c src/bitstream.c -o build/temp.linux-x86_64-cpython-311/src/bitstream.o
      In file included from /home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,
                       from /home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                       from /home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                       from src/bitstream.c:694:
      /home/flyingwolfox/source/ITI_project/bitstream/venv/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
         17 | #warning "Using deprecated NumPy API, disable it with " \
            |  ^~~~~~~
      src/bitstream.c: In function ‘__pyx_f_9bitstream_read_uint64’:
      src/bitstream.c:18959:89: warning: left shift count >= width of type [-Wshift-count-overflow]
      18959 |       __pyx_v_uint64 = (((((((((__pyx_v__bytes[(__pyx_v_byte_index + (8 * __pyx_v_i))]) << 56) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
            |                                                                                         ^~
      src/bitstream.c:18959:162: warning: left shift count >= width of type [-Wshift-count-overflow]
      18959 |       __pyx_v_uint64 = (((((((((__pyx_v__bytes[(__pyx_v_byte_index + (8 * __pyx_v_i))]) << 56) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
            |                                                                                                                                                                  ^~
      src/bitstream.c:18959:236: warning: left shift count >= width of type [-Wshift-count-overflow]
      18959 |       __pyx_v_uint64 = (((((((((__pyx_v__bytes[(__pyx_v_byte_index + (8 * __pyx_v_i))]) << 56) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
            |                                                                                                                                                                                                                                            ^~
      src/bitstream.c:18959:310: warning: left shift count >= width of type [-Wshift-count-overflow]
      18959 |       __pyx_v_uint64 = (((((((((__pyx_v__bytes[(__pyx_v_byte_index + (8 * __pyx_v_i))]) << 56) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
            |                                                                                                                                                                                                                                                                                                                      ^~
      src/bitstream.c: In function ‘__pyx_f_9bitstream__write_float64’:
      src/bitstream.c:21748:19: warning: implicit declaration of function ‘_PyFloat_Pack8’; did you mean ‘PyFloat_Pack8’? [-Wimplicit-function-declaration]
      21748 |       __pyx_t_3 = _PyFloat_Pack8(__pyx_v__float, __pyx_v_pointer, 0); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1586, __pyx_L1_error)
            |                   ^~~~~~~~~~~~~~
            |                   PyFloat_Pack8
      src/bitstream.c: At top level:
      src/bitstream.c:24931:3: warning: excess elements in struct initializer
      24931 |   0, /*tp_inline_values_offset*/
            |   ^
      src/bitstream.c:24931:3: note: (near initialization for ‘__pyx_type_9bitstream_BitStream’)
      src/bitstream.c:25077:3: warning: excess elements in struct initializer
      25077 |   0, /*tp_inline_values_offset*/
            |   ^
      src/bitstream.c:25077:3: note: (near initialization for ‘__pyx_type_9bitstream_State’)
      src/bitstream.c: In function ‘__Pyx_TraceSetupAndCall’:
      src/bitstream.c:27220:37: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
      27220 |         if (CYTHON_TRACE && (*frame)->f_trace == NULL) {
            |                                     ^~
      src/bitstream.c:27222:21: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
      27222 |             (*frame)->f_trace = Py_None;
            |                     ^~
      src/bitstream.c:445:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
        445 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
            |                                                              ^~
      src/bitstream.c:27229:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
      27229 |     __Pyx_PyFrame_SetLineNumber(*frame, firstlineno);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/bitstream.c: In function ‘__Pyx_PyErr_GetTopmostException’:
      src/bitstream.c:29658:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
      29658 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
            |                     ^~
      src/bitstream.c:29658:51: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
      29658 |     while ((exc_info->exc_type == NULL || exc_info->exc_type == Py_None) &&
            |                                                   ^~
      src/bitstream.c: In function ‘__Pyx__ExceptionSave’:
      src/bitstream.c:29672:21: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
      29672 |     *type = exc_info->exc_type;
            |                     ^~
      src/bitstream.c:29674:19: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
      29674 |     *tb = exc_info->exc_traceback;
            |                   ^~
      src/bitstream.c: In function ‘__Pyx__ExceptionReset’:
      src/bitstream.c:29688:24: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
      29688 |     tmp_type = exc_info->exc_type;
            |                        ^~
      src/bitstream.c:29690:22: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
      29690 |     tmp_tb = exc_info->exc_traceback;
            |                      ^~
      src/bitstream.c:29691:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
      29691 |     exc_info->exc_type = type;
            |             ^~
      src/bitstream.c:29693:13: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
      29693 |     exc_info->exc_traceback = tb;
            |             ^~
      src/bitstream.c: In function ‘__Pyx__GetException’:
      src/bitstream.c:29750:28: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
      29750 |         tmp_type = exc_info->exc_type;
            |                            ^~
      src/bitstream.c:29752:26: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
      29752 |         tmp_tb = exc_info->exc_traceback;
            |                          ^~
      src/bitstream.c:29753:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_type’
      29753 |         exc_info->exc_type = local_type;
            |                 ^~
      src/bitstream.c:29755:17: error: ‘_PyErr_StackItem’ {aka ‘struct _err_stackitem’} has no member named ‘exc_traceback’
      29755 |         exc_info->exc_traceback = local_tb;
            |                 ^~
      src/bitstream.c: In function ‘__Pyx_AddTraceback’:
      src/bitstream.c:445:62: error: invalid use of incomplete typedef ‘PyFrameObject’ {aka ‘struct _frame’}
        445 |   #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
            |                                                              ^~
      src/bitstream.c:30329:5: note: in expansion of macro ‘__Pyx_PyFrame_SetLineNumber’
      30329 |     __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
            |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for bitstream
  Running setup.py clean for bitstream
Failed to build bitstream
ERROR: Could not build wheels for bitstream, which is required to install pyproject.toml-based projects

Installing from source didn't work either. Building is succeful but importing fails.

$ python setup.py --cython install
Compiling src/bitstream.pyx because it changed.
[1/1] Cythonizing src/bitstream.pyx
/home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/flyingwolfox/source/ITI_project/bitstream/src/bitstream.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
running install
/home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
creating bitstream.egg-info
writing bitstream.egg-info/PKG-INFO
writing dependency_links to bitstream.egg-info/dependency_links.txt
writing top-level names to bitstream.egg-info/top_level.txt
writing manifest file 'bitstream.egg-info/SOURCES.txt'
reading manifest file 'bitstream.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'benchmark.py'
warning: no previously-included files found matching 'setup.cfg'
adding license file 'LICENSE.txt'
writing manifest file 'bitstream.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'bitstream' extension
creating build
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/src
x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/numpy/core/include -I/home/flyingwolfox/source/ITI_project/venv/include -I/usr/include/python3.11 -c src/bitstream.c -o build/temp.linux-x86_64-cpython-311/src/bitstream.o
In file included from /home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,
                 from /home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5,
                 from src/bitstream.c:759:
/home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~
src/bitstream.c: In function ‘__pyx_f_9bitstream_read_uint64’:
src/bitstream.c:19053:89: warning: left shift count >= width of type [-Wshift-count-overflow]
19053 |       __pyx_v_uint64 = (((((((((__pyx_v__bytes[(__pyx_v_byte_index + (8 * __pyx_v_i))]) << 56) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
      |                                                                                         ^~
src/bitstream.c:19053:162: warning: left shift count >= width of type [-Wshift-count-overflow]
19053 |       __pyx_v_uint64 = (((((((((__pyx_v__bytes[(__pyx_v_byte_index + (8 * __pyx_v_i))]) << 56) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
      |                                                                                                                                                                  ^~
src/bitstream.c:19053:236: warning: left shift count >= width of type [-Wshift-count-overflow]
19053 |  + (8 * __pyx_v_i))]) << 56) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
      |                                                                                                                                                                          ^~

src/bitstream.c:19053:310: warning: left shift count >= width of type [-Wshift-count-overflow]
19053 | * __pyx_v_i)) + 1)]) << 48)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 2)]) << 40)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 3)]) << 32)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 4)]) << 24)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 5)]) << 16)) + ((__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 6)]) << 8)) + (__pyx_v__bytes[((__pyx_v_byte_index + (8 * __pyx_v_i)) + 7)]));
      |                                                                                                                                                                          ^~

src/bitstream.c: In function ‘__pyx_f_9bitstream__write_float64’:
src/bitstream.c:21842:19: warning: implicit declaration of function ‘_PyFloat_Pack8’; did you mean ‘PyFloat_Pack8’? [-Wimplicit-function-declaration]
21842 |       __pyx_t_3 = _PyFloat_Pack8(__pyx_v__float, __pyx_v_pointer, 0); if (unlikely(__pyx_t_3 == ((int)-1))) __PYX_ERR(0, 1586, __pyx_L1_error)
      |                   ^~~~~~~~~~~~~~
      |                   PyFloat_Pack8
creating build/lib.linux-x86_64-cpython-311
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-cpython-311/src/bitstream.o -L/usr/lib/x86_64-linux-gnu -o build/lib.linux-x86_64-cpython-311/bitstream.cpython-311-x86_64-linux-gnu.so
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
copying build/lib.linux-x86_64-cpython-311/bitstream.cpython-311-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg
creating stub loader for bitstream.cpython-311-x86_64-linux-gnu.so
byte-compiling build/bdist.linux-x86_64/egg/bitstream.py to bitstream.cpython-311.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying bitstream.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bitstream.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bitstream.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bitstream.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying bitstream.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/bitstream-2.6.0.2-py3.11-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing bitstream-2.6.0.2-py3.11-linux-x86_64.egg
creating /home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/bitstream-2.6.0.2-py3.11-linux-x86_64.egg
Extracting bitstream-2.6.0.2-py3.11-linux-x86_64.egg to /home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages
Adding bitstream 2.6.0.2 to easy-install.pth file

Installed /home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/bitstream-2.6.0.2-py3.11-linux-x86_64.egg
Processing dependencies for bitstream==2.6.0.2
Finished processing dependencies for bitstream==2.6.0.2

$ python3 -c 'import bitstream'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /home/flyingwolfox/source/ITI_project/venv/lib/python3.11/site-packages/bitstream-2.6.0.2-py3.11-linux-x86_64.egg/bitstream.cpython-311-x86_64-linux-gnu.so: undefined symbol: _PyFloat_Pack8
@boisgera
Copy link
Owner

Hi @FlyingWolFox!,

Thanks for the detailled report. My guess is that I need to update Cython to generate C files that are consistent with Python 3.11.

I'll have a look asap and report in this thread.

@boisgera boisgera self-assigned this May 24, 2023
@boisgera
Copy link
Owner

boisgera commented Sep 6, 2023

See #27

@boisgera
Copy link
Owner

Hi @FlyingWolFox !

Care to try again with pip install --pre bitstream? (3.1b1 version atm).

Regards,

Sébastien

@FlyingWolFox
Copy link
Author

Sorry for the delay, had a deadline for my thesis

Just tested here in a clean venv and in a project and it worked flawlessly. No problem on install, importing or usage

@boisgera
Copy link
Owner

Great, thank you! Good luck with your thesis.

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

2 participants