Skip to content

Can't install pyrlang-term with pip #15

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

Open
JamesDBowen opened this issue Nov 6, 2019 · 9 comments
Open

Can't install pyrlang-term with pip #15

JamesDBowen opened this issue Nov 6, 2019 · 9 comments

Comments

@JamesDBowen
Copy link

The readme recommends running pip install pyrlang-term, but that doens't work --pip can't find the package. I also tried installing using the old method of installing from source (this is also what Pyrlang itself tries to do), but this results in a pep517 error. I've tried the usual methods of getting around that, but it still fails.

Any thoughts? Is the pyrlang-term binary in a repository I can add to my pipfile?

@s2hc-johan
Copy link
Collaborator

hmm, We've must have fired the merge a bit to quick. So we've prepared for pip install but haven't gotten around to publish it. for now I would clone/download the repo and run pip install .

@vegabook
Copy link

So I successfully installed pyrlang-term using pip install . after cloning, but this gives me Python implementation of ETF codec, even though I have the full Rust toolchain installed. Can you indicate how to get the Native term ETF library installed using the cloned repo, because like @JamesDBowen I am unable to install pyrlang-term using pip2 or pip3, for the reasons he cites.

@s2hc-johan
Copy link
Collaborator

could be that you’ll need the setuptools for rust. try running pip3 install setuptools_rust first

@MEschenbacher
Copy link

I have the same problem and installing setuptools_rust does not work.

@s2hc-johan
Copy link
Collaborator

@MEschenbacher so you get it to work but you have the python implementation is that what you mean with the same problem, do you have the output from when installing?

what os are you using, what rust version is installed?

@MEschenbacher
Copy link

I think so.

Output from installing

pip install .
Processing /home/max/git/pyrlang-term
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: pyrlang-term
  Building wheel for pyrlang-term (PEP 517) ... done
  Created wheel for pyrlang-term: filename=pyrlang_term-1.4-cp39-cp39-linux_x86_64.whl size=2384649 sha256=93447c1b84a5fda9488512dda54b5155266831e8a4b3c7cfd89faa638afe44f6
  Stored in directory: /home/max/.cache/pip/wheels/3a/01/f8/ac746e681090d35a92cd0ec805760d6845ebf3bc096d812052
Successfully built pyrlang-term
Installing collected packages: pyrlang-term
Successfully installed pyrlang-term-1.4
pip install .  378.04s user 7.44s system 289% cpu 2:13.25 total
rustc -V
rustc 1.48.0
pip install pyrlang-term
ERROR: Could not find a version that satisfies the requirement pyrlang-term
ERROR: No matching distribution found for pyrlang-term

@gmile
Copy link

gmile commented Dec 26, 2021

Hi, @s2hc-johan! May I ask, do you remain to have plans to publish the Term library to pip? Do you think you could use an assistance in doing so?

@s2hc-johan
Copy link
Collaborator

@gmile Hi, sorry for the late reply. I'm working on some cleanup and documentation. It's a bit slow but I though to publish when that was done.

@jwthomp
Copy link

jwthomp commented Mar 2, 2023

If you want to include this package in your python project you can do:

pip:
pip install git+https://github.com/Pyrlang/[email protected]#egg=pyrlang-term

pipenv:
pipenv install git+https://github.com/Pyrlang/[email protected]#egg=pyrlang-term

Notes:

  • @1.3 is the tag to pull from. You can set to master if you want latest.
  • egg= sets the name given to the package when you install it

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

6 participants