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

How to install pyvoro for python 3.5.1 #13

Open
agoyal06 opened this issue Apr 14, 2016 · 3 comments
Open

How to install pyvoro for python 3.5.1 #13

agoyal06 opened this issue Apr 14, 2016 · 3 comments

Comments

@agoyal06
Copy link

Hi,

I want to use pyvoro to analyze my crystal structure. I am using python3.5.1, and when used "pip install pyvoro" it says it successfully installed it. But, when I import pyvoro, ipython does not recognize it.

I read this thread "#8", but still do not get how to install pyvoro for python3.5.1

Please, if you can give me some direction, I will highly appreciate.

Thanks,
Anuj

@joel-simon
Copy link

joel-simon commented May 15, 2016

heres how you're supposed to but I am getting an issue.
$ cd pyvoro-feature-python3
$ python3 setup.py install

$ python3
import pyvoro

But then I get the error

Traceback (most recent call last):
File "", line 1, in
File "/Users/joelsimon/Downloads/pyvoro-feature-python3/pyvoro/init.py", line 1, in
from . import voroplusplus
ImportError: cannot import name 'voroplusplus'

@wackywendell
Copy link

@Sloth6:

Just a guess: try switching to a different directory (like your home directory) before you run Python and import pyvoro. When you import it from /Users/joelsimon/Downloads/pyvoro-feature-python3/, it imports the version in the /Users/joelsimon/Downloads/pyvoro-feature-python3/pyvoro folder, instead of the installed version. The version in /Users/joelsimon/Downloads/pyvoro-feature-python3/pyvoro has most of the source files for pyvoro, so it can begin the import, but voroplusplus isn't built in that location, so it doesn't work.

Alternatively, from that directory you can run python3 setup.py build_ext -i, and then import pyvoro should work in that directory (but not necessarily outside of it).

@joel-simon
Copy link

@wackywendell

Yes you are very correct, it's easy to forget about that. Thanks again for your work on the py3 branch.

cheers

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