Coder Social home page Coder Social logo

hypy's People

Contributors

corydodt avatar

Watchers

 avatar  avatar  avatar

hypy's Issues

Unable to install hypy by pip or poetry

System: Ubuntu 24.04 LTS
Python 3.10
Poetry (version 1.8.3)
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

Today I tryed install hypy

pip install hypy

Defaulting to user installation because normal site-packages is not writeable
Collecting hypy
  Downloading Hypy-1.0.1.tar.gz (41 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.1/41.1 KB 1.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from hypy) (1.16.0)
Building wheels for collected packages: hypy
  Building wheel for hypy (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/_version.py -> build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/__init__.py -> build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/test_lib.py -> build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/lib.py -> build/lib.linux-x86_64-3.10/hypy
      running build_ext
      building '_estraiernative' extension
      creating build/temp.linux-x86_64-3.10
      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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/estraier -I/usr/include/qdbm -I/usr/include/python3.10 -c estraiernative.c -o build/temp.linux-x86_64-3.10/estraiernative.o
      estraiernative.c:11:10: fatal error: estraier.h: No such file or directory
         11 | #include <estraier.h>
            |          ^~~~~~~~~~~~
      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 hypy
  Running setup.py clean for hypy
Failed to build hypy
Installing collected packages: hypy
  Running setup.py install for hypy ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for hypy did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      running install
      /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.10
      creating build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/_version.py -> build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/__init__.py -> build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/test_lib.py -> build/lib.linux-x86_64-3.10/hypy
      copying src/hypy/lib.py -> build/lib.linux-x86_64-3.10/hypy
      running build_ext
      building '_estraiernative' extension
      creating build/temp.linux-x86_64-3.10
      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 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/estraier -I/usr/include/qdbm -I/usr/include/python3.10 -c estraiernative.c -o build/temp.linux-x86_64-3.10/estraiernative.o
      estraiernative.c:11:10: fatal error: estraier.h: No such file or directory
         11 | #include <estraier.h>
            |          ^~~~~~~~~~~~
      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: legacy-install-failure

× Encountered error while trying to install package.
╰─> hypy

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

poetry add hypy:

Using version ^1.0.1 for hypy

Updating dependencies
Resolving dependencies... (0.1s)

Package operations: 1 install, 0 updates, 0 removals

  - Installing hypy (1.0.1): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel
  
  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/hypy
  copying src/hypy/_version.py -> build/lib.linux-x86_64-cpython-310/hypy
  copying src/hypy/__init__.py -> build/lib.linux-x86_64-cpython-310/hypy
  copying src/hypy/test_lib.py -> build/lib.linux-x86_64-cpython-310/hypy
  copying src/hypy/lib.py -> build/lib.linux-x86_64-cpython-310/hypy
  running build_ext
  building '_estraiernative' extension
  creating build/temp.linux-x86_64-cpython-310
  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 -I/usr/include/estraier -I/usr/include/qdbm -I/tmp/tmp2p3e_oxn/.venv/include -I/usr/include/python3.10 -c estraiernative.c -o build/temp.linux-x86_64-cpython-310/estraiernative.o
  estraiernative.c:11:10: fatal error: estraier.h: No such file or directory
     11 | #include <estraier.h>
        |          ^~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
  

  at ~/.local/pipx/venvs/poetry/lib/python3.10/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with hypy (1.0.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "hypy (==1.0.1)"'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.