GithubHelp home page GithubHelp logo

Error when installing via pip about hyperjson HOT 11 CLOSED

mre avatar mre commented on May 26, 2024
Error when installing via pip

from hyperjson.

Comments (11)

packysauce avatar packysauce commented on May 26, 2024 1

Howdy, are there any plans to upload the linux wheels to pypi?

from hyperjson.

cjgu avatar cjgu commented on May 26, 2024

Yeah, seems there's only wheel's for OS X and 3.6/2.7 (https://pypi.org/project/hyperjson/#files). We need a normal source package that gets built on install as a fallback.

from hyperjson.

mre avatar mre commented on May 26, 2024

Alright, that makes sense.
Don't know if pyo3-pack has support for publishing source packages or if there is some other way. Maybe @konstin knows.

On that note, I found that I'm not publishing --release builds. Will fix that.
Sorry for the inconvenience.

from hyperjson.

konstin avatar konstin commented on May 26, 2024

sdist are not yet possible with pyp3-pack as pip hasn't implemented PEP 517 yet (PyO3/maturin#2). I highly suggest releasing from CI, which means you get wheels for all major platforms (s. e.g. https://pypi.org/project/pyo3-pack/#files, https://github.com/PyO3/pyo3-pack/blob/master/.travis.yml and https://github.com/PyO3/pyo3-pack/blob/master/appveyor.yml).

For the release thing, I plan to change the default for upload to release and strip in pyo3-pack which should make that easier

from hyperjson.

konstin avatar konstin commented on May 26, 2024

I've added some linux wheels to the release page for now

from hyperjson.

speedcell4 avatar speedcell4 commented on May 26, 2024

I can not install hyperjson on Github Actions by using pip, and I have tried to change my requirements.txt from hyperjson to git+https://github.com/mre/hyperjson.git@3a96b9a8d54ba59e7ac29658974c88f15d39b6fc , but neither work.

the error from GitHub Actions:

Running command git clone -q https://github.com/mre/hyperjson.git /tmp/pip-req-build-thp3i4xs
  Running command git checkout -q 3a96b9a8d54ba59e7ac29658974c88f15d39b6fc
    ERROR: Command errored out with exit status 1:
     command: /opt/hostedtoolcache/Python/3.7.5/x64/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-thp3i4xs/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-thp3i4xs/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-thp3i4xs/pip-egg-info
         cwd: /tmp/pip-req-build-thp3i4xs/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/opt/hostedtoolcache/Python/3.7.5/x64/lib/python3.7/tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-thp3i4xs/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
##[error]Process completed with exit code 1.

from hyperjson.

mre avatar mre commented on May 26, 2024

I'm very sorry that it took so long but these problems should now be resolved thanks to our new release process through Github Actions (#130). Pre-built wheels are now available for Linux, macOS, and Windows and Python 3.5 up to 3.8. Make sure to post a comment here if you're still running into problems.

from hyperjson.

iammortimer avatar iammortimer commented on May 26, 2024

still running into problems:
pip install hyperjson
ERROR: Could not find a version that satisfies the requirement hyperjson (from versions: none)
ERROR: No matching distribution found for hyperjson

Python version:
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32

from hyperjson.

mre avatar mre commented on May 26, 2024

That's odd. Looking at the latest release on PyPI, I can see the Windows 3.7 package here... 🤔
Anyone has an idea?

from hyperjson.

iammortimer avatar iammortimer commented on May 26, 2024

It's probably due to that all your windows packages are x64 only, after installing python x64 i was able to pull and install the package.

from hyperjson.

mre avatar mre commented on May 26, 2024

Oh, yeah that's it. Sorry, totally missed the win32 part.
Unfortunately Github actions doesn't support 32 bit runners (yet). See here and here. The only alternative I see would be a self-hosted runner, which would incur a maintenance burden.
Sooo 🤷. Glad you found a way to make it work for you, though. Closing. 😊

from hyperjson.

Related Issues (20)

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.