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

Installation error of pytraj with pip #1629

Open
RajarshiRay25 opened this issue Apr 9, 2023 · 4 comments
Open

Installation error of pytraj with pip #1629

RajarshiRay25 opened this issue Apr 9, 2023 · 4 comments

Comments

@RajarshiRay25
Copy link

I have been working with pytraj for certain time for my college projects . however recently while trying to install and import the library.the following error is showing :

Collecting pytraj==1.0.9
Downloading pytraj-1.0.9.tar.gz (19.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.9/19.9 MB 27.0 MB/s eta 0:00:00
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

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

please help

@VSandwar74
Copy link

Hey,

So from the README, pip support has been removed since python 3.9, so the preferred and:

"The best way is to install AmberTools via conda: conda install -c conda-forge ambertools compilers (https://ambermd.org/GetAmber.php)"

Nevertheless, I'll try to work on updating support with a PR, but until then you should use that method.

@RajarshiRay25
Copy link
Author

Hey,

So from the README, pip support has been removed since python 3.9, so the preferred and:

"The best way is to install AmberTools via conda: conda install -c conda-forge ambertools compilers (https://ambermd.org/GetAmber.php)"

Nevertheless, I'll try to work on updating support with a PR, but until then you should use that method.

Thank you sir. However i followed the error message and performed several installations of cpptraj and certain dependancies along with pytraj. and now its properly working.

@hainm
Copy link
Contributor

hainm commented Apr 14, 2023

Nevertheless, I'll try to work on updating support with a PR,

@VSandwar74 what do you have in mind? I stop supporting pip install because I can not keep up with building the wheel file for it. Install pytraj from source via pip is painful, it would be better to install for github.

image

@hainm
Copy link
Contributor

hainm commented Apr 14, 2023

@VSandwar74 One possible (and much easier) is to download the AmberTools conda build and write a script to pack the pytraj to a standalone version. It might takes time to resolve the library paths.

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

3 participants