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

ValueError: path cannot be absolute #239

Open
tuftkyle opened this issue Mar 1, 2017 · 4 comments
Open

ValueError: path cannot be absolute #239

tuftkyle opened this issue Mar 1, 2017 · 4 comments

Comments

@tuftkyle
Copy link

tuftkyle commented Mar 1, 2017

Hi,

I'm having trouble installing WorldEngine; the problem seems to be with PyPlatec, and since the project is maintained by these developers, I thought you might be able to help me.

The error I get is:
ValueError: path '/home/federico/repos/plate-tectonics/src/bounds.cpp' cannot be absolute

Can this be changed to relative?

I'm trying to install via PIP, but I've also tried to build from source, and I've run into similar issues. I'm on a Win10x64 machine; is that the problem?

@tuftkyle
Copy link
Author

tuftkyle commented Mar 1, 2017

Update: I got it working. I had to install Python 2.7 in order to get it to work. I normally run Python 3.

So I guess it's only an issue with Python 3. Now that I have it working, maybe I can help with a fix...

@psi29a
Copy link
Member

psi29a commented Mar 1, 2017

Sure, if you find problems on the Python3 side please help us fix it.

Python3 has been been a moving target lately. ;)

@viperscape
Copy link

I see this error too, same environment. I downloaded https://pypi.org/project/PyPlatec/#files and browsed to PyPlatec.egg-info/SOURCES.txt and see some absolute paths. I looked at the https://github.com/Mindwerks/plate-tectonics source and cannot find this package information, maybe it's generated during some build?

@viperscape
Copy link

Not sure if I should start another issue, but after fixing this and installing it without pip, I had to do the same for worldengine since it had a numpy requirement that wasn't compatible with my python it seemed.
Here's what I did to install on Windows 10, 64 with Python 37

  1. Download both worldengine and pyplatec from pypi (tar.gz and extract somewhere)
  2. Change https://github.com/Mindwerks/worldengine/blob/master/setup.py#L28 to be only numpy>=1.9.2
  3. Remove invalid sources from pyplatec (see previous comment)
  4. run setup.py in pyplatec manually
  5. run setup.py in worldengine manually
  6. pip install worldengine to confirm all other deps were installed and satisfied.

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