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

pkg_resources.DistributionNotFound #7

Open
Sunyp-IM opened this issue Nov 29, 2019 · 1 comment
Open

pkg_resources.DistributionNotFound #7

Sunyp-IM opened this issue Nov 29, 2019 · 1 comment

Comments

@Sunyp-IM
Copy link

Hello pdbtools author,

I installed pdbtools in anaconda/bin directory in CentOS 7 system. When I run the scripts of pdbtools, I get the "pkg_resources.DistributionNotFound" error. For example:

pdb_residue_renumber input.pdb > output.pdb

I get the error information: "pkg_resources.DistributionNotFound: The 'pdbtools==0.1' distribution was not found and is required by the application"

Could you tell me how to solve the problem?

@Zsailer
Copy link
Member

Zsailer commented Nov 30, 2019

You'll want to avoid manually moving pdbtools into any anaconda directories, especially anaconda/bin. Otherwise, you'll fail to install the main Python package that comes with pdbtools—that seems to be your problem right now.

Try installing this project using our Installation directions.

Clone the repo somewhere on your machine and use pip to install the project. (Note, you may need to install pip, using conda install pip). To install with pip, change directories to the base directory of pdbtools (the one with setup.py) and use pip's dev install command, i.e.:

# Change directories
cd pdbtools

# Install with pip
pip install -e .

The scripts will be automatically symlinked to your anaconda distribution. You should be able to call the pdbtools script from anywhere on your machine.

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

2 participants