Term
Term copied to clipboard
Can't install pyrlang-term with pip
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?
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 .
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.
could be that you’ll need the setuptools for rust. try running pip3 install setuptools_rust
first
I have the same problem and installing setuptools_rust
does not work.
@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?
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
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?
@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.
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