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

[USER ISSUE] Cannot install codalab-cli: failed to build indexed-gzip #4427

Open
lefterav opened this issue Mar 21, 2023 · 3 comments
Open

Comments

@lefterav
Copy link

lefterav commented Mar 21, 2023

Describe the bug

Whenever I am trying to install Codalab-cli in a venv I get the following error

Building wheels for collected packages: indexed-gzip
  Building wheel for indexed-gzip (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [29 lines of output]
      indexed_gzip setup
        have_cython: False (if True, modules will be cythonized, otherwise pre-cythonized C files are assumed to be present)
        have_numpy:  False (if True, test modules will be compiled)
        ZLIB_HOME:   None (if set, ZLIB sources are compiled into the indexed_gzip extension)
        testing:     False (if True, code will be compiled with line tracing enabled)
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/indexed_gzip
      copying indexed_gzip/__init__.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip
      creating build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/benchmark.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/conftest.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/test_indexed_gzip_threading.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/__init__.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/test_nibabel_integration.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/test_zran.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/test_indexed_gzip.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      copying indexed_gzip/tests/__main__.py -> build/lib.linux-x86_64-cpython-310/indexed_gzip/tests
      running build_ext
      building 'indexed_gzip.indexed_gzip' extension
      creating build/temp.linux-x86_64-cpython-310
      creating build/temp.linux-x86_64-cpython-310/indexed_gzip
      x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iindexed_gzip -I/home/elav01/PycharmProjects/wmt23metrics/venv/include -I/usr/include/python3.10 -c indexed_gzip/indexed_gzip.c -o build/temp.linux-x86_64-cpython-310/indexed_gzip/indexed_gzip.o -Wall -Wno-unused-function
      cc1: fatal error: indexed_gzip/indexed_gzip.c: No such file or directory
      compilation terminated.
      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 indexed-gzip
  Running setup.py clean for indexed-gzip
  error: subprocess-exited-with-error
  
  × python setup.py clean did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      indexed_gzip setup
        have_cython: False (if True, modules will be cythonized, otherwise pre-cythonized C files are assumed to be present)
        have_numpy:  False (if True, test modules will be compiled)
        ZLIB_HOME:   None (if set, ZLIB sources are compiled into the indexed_gzip extension)
        testing:     False (if True, code will be compiled with line tracing enabled)
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help
      
      error: option --all not recognized
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed cleaning build dir for indexed-gzip
Failed to build indexed-gzip

I have already tried downloading and compiling the latest version of indexed-gzip from github. The installation was successful but this didn't solve the problem for installing codalab-cli

Codalab Information

  • lefterav:
  • UUID of worksheet where problem occurred:
  • UUID of problem bundle (please don't delete):
  • Error message received from Codalab (if applicable): ERROR: Failed cleaning build dir for indexed-gzip
  • OS (if on CLI): Ubuntu 22.04
  • Codalab CLI Version (if on CLI): latest on pip
  • Browser (if on Web);
@epicfaace
Copy link
Member

Thanks for reporting! indexed-gzip should have wheels built I think... looking into it...

@pauldmccarthy
Copy link

Hi @lefterav, How are you trying to install codalab, and what versions of pip and setuptools are you using?

@lefterav
Copy link
Author

lefterav commented Mar 22, 2023

I am using pip 23.0.1 and setuptools 67.4.0 . I am installing codalab im a virtualenv of Python 10 by using the command pip install codalab -U as advised in the quistart documentation.

These are the defaults now in Ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants