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

ci: investigate the failure while installing bcolz package during tests #651

Open
juarezr opened this issue Aug 16, 2023 · 0 comments
Open
Labels
Bug It must work in all situations, but this failed

Comments

@juarezr
Copy link
Member

juarezr commented Aug 16, 2023

Problem description

What's happenning

A clear and concise description of what the bug is. Please explain:

  • There is a failure in the CI while installing the bcolz pip package
  • It's dismissed with this warning:
    • Dismissed failure installing some optional package. Resuming tests...

Expected behavior

A clear and concise description of intended behavior. Please explain:

  • Discover:
    • If it's a problem.
    • When it started happening.
    • If it's worthwhile to fix it.

Scenario for reprodution

Reproducible test case

Please provide a minimal, reproducible code sample, a copy-pastable example if possible:

  Collecting numpy>=1.7 (from bcolz->-r requirements-optional.txt (line 14))
    Using cached numpy-1.21.6-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
  Building wheels for collected packages: bcolz
    Building wheel for bcolz (setup.py): started
    Building wheel for bcolz (setup.py): finished with status 'error'
    error: subprocess-exited-with-error
    
    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [89 lines of output]
        SSE2 detected
        AVX2 detected
        running bdist_wheel
        running build
        running build_py
        creating build
        creating build/lib.linux-x86_64-3.7
        creating build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/chunked_eval.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/py2help.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/ctable.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/toplevel.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/arrayprint.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/attrs.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/version.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/utils.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/defaults.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/py2help_tests.py -> build/lib.linux-x86_64-3.7/bcolz
        copying bcolz/__init__.py -> build/lib.linux-x86_64-3.7/bcolz
        creating build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/common.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/test_queries.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/all.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/test_carray_objects.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/test_carray.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/test_attrs.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/test_ndcarray.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/test_ctable.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/tests/__init__.py -> build/lib.linux-x86_64-3.7/bcolz/tests
        copying bcolz/carray_ext.pxd -> build/lib.linux-x86_64-3.7/bcolz
        running build_ext
        Compiling bcolz/carray_ext.pyx because it changed.
        [1/1] Cythonizing bcolz/carray_ext.pyx
        /tmp/pip-install-e6qfw5hr/bcolz_9ba2781eef6f491cae7bfb67fa2e4f0e/.eggs/Cython-3.0.0-py3.7-linux-x86_64.egg/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-e6qfw5hr/bcolz_9ba2781eef6f491cae7bfb67fa2e4f0e/bcolz/carray_ext.pxd
          tree = Parsing.p_module(s, pxd, full_module_name)
        
        Error compiling Cython file:
        ------------------------------------------------------------
        ...
                # Create the final container and fill it
                out = carray([], dtype=newdtype, cparams=self.cparams,
                               expectedlen=newlen,
                               rootdir=rootdir, mode='w')
                if newlen < ilen:
                    rsize = isize / newlen
                                  ^
        ------------------------------------------------------------
        
        bcolz/carray_ext.pyx:1685:26: Cannot assign type 'double' to 'npy_intp'
        Traceback (most recent call last):
          File "<string>", line 36, in <module>
          File "<pip-setuptools-caller>", line 34, in <module>
          File "/tmp/pip-install-e6qfw5hr/bcolz_9ba2781eef6f491cae7bfb67fa2e4f0e/setup.py", line 234, in <module>
            cmdclass=LazyCommandClass(),
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
            return distutils.core.setup(**attrs)
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/core.py", line 148, in setup
            dist.run_commands()
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/dist.py", line 966, in run_commands
            self.run_command(cmd)
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 349, in run
            self.run_command("build")
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/command/build.py", line 135, in run
            self.run_command(cmd_name)
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/dist.py", line 985, in run_command
            cmd_obj.run()
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/command/build_ext.py", line 340, in run
            self.build_extensions()
          File "/tmp/pip-install-e6qfw5hr/bcolz_9ba2781eef6f491cae7bfb67fa2e4f0e/setup.py", line 77, in build_extensions
            cython_build_ext.build_extensions(self)
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
            self._build_extensions_serial()
          File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
            self.build_extension(ext)
          File "/tmp/pip-install-e6qfw5hr/bcolz_9ba2781eef6f491cae7bfb67fa2e4f0e/.eggs/Cython-3.0.0-py3.7-linux-x86_64.egg/Cython/Distutils/build_ext.py", line 123, in build_extension
            ext,force=self.force, quiet=self.verbose == 0, **options
          File "/tmp/pip-install-e6qfw5hr/bcolz_9ba2781eef6f491cae7bfb67fa2e4f0e/.eggs/Cython-3.0.0-py3.7-linux-x86_64.egg/Cython/Build/Dependencies.py", line 1134, in cythonize
            cythonize_one(*args)
          File "/tmp/pip-install-e6qfw5hr/bcolz_9ba2781eef6f491cae7bfb67fa2e4f0e/.eggs/Cython-3.0.0-py3.7-linux-x86_64.egg/Cython/Build/Dependencies.py", line 1301, in cythonize_one
            raise CompileError(None, pyx_file)
        Cython.Compiler.Errors.CompileError: bcolz/carray_ext.pyx
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for bcolz
    Running setup.py clean for bcolz
  Failed to build bcolz
  ERROR: Could not build wheels for bcolz, which is required to install pyproject.toml-based projects

Version and installation information

Please provide the following:

  • Value of petl.__version__: 1.7.12
  • Version information for any third-party package dependencies that are relevant:
    • numpy>=1.7 ??
    • bcolz-1.2.1
  • Version of Python interpreter: 3.7 and possibly later
  • Operating system: ubuntu-latest
  • How petl was installed:
@juarezr juarezr added the Bug It must work in all situations, but this failed label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug It must work in all situations, but this failed
Projects
None yet
Development

No branches or pull requests

1 participant