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

Can't install the Python3 version of PyPolyChord #53

Closed
appetrosyan opened this issue Jun 17, 2020 · 5 comments
Closed

Can't install the Python3 version of PyPolyChord #53

appetrosyan opened this issue Jun 17, 2020 · 5 comments

Comments

@appetrosyan
Copy link
Contributor

The provided installation instructions fail.

steps to reproduce: fresh install,
make pypolychord && CC=cc CXX=c++ python setup.py install --user

expected result:
running python3 run_polychord.py should work.

actual result:

Traceback (most recent call last):
  File "run_pypolychord.py", line 2, in <module>
    import pypolychord
  File "/Users/app/Git/PolyChordLite/pypolychord/__init__.py", line 28, in <module>
    raise e
  File "/Users/app/Git/PolyChordLite/pypolychord/__init__.py", line 16, in <module>
    import _pypolychord
ModuleNotFoundError: No module named '_pypolychord'
@williamjameshandley
Copy link
Member

Is the problem that you're trying to run with python3, but you installed with python, and these point to different versions on your system?

@appetrosyan
Copy link
Contributor Author

appetrosyan commented Jun 17, 2020

Yes. Unfortunately the fix of using Python3 for both the install and the run doesn't work.

python3 setup.py install --user
running install
error: can't combine user with prefix, exec_prefix/home, or install_(plat)base

Either way, the suggested command needs to be adjusted for Mac OS X.

@appetrosyan appetrosyan changed the title Can't install Can't install the Python3 version of PyPolyChord Jun 17, 2020
@appetrosyan
Copy link
Contributor Author

Should I add the adjusted MakeFile into the PR for #50 ?

@williamjameshandley
Copy link
Member

I'm about to merge #24 in the next half-hour, which makes it pip installable will change things a fair amount. I would be interested to see if this issue persists there.

@appetrosyan
Copy link
Contributor Author

Ok! Looking forward to testing 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

2 participants