Mindwerks / worldengine

World generator using simulation of plates, rain shadow, erosion, etc.
MIT License
981 stars 127 forks source link

ValueError: path cannot be absolute #239

Open tuftkyle opened 7 years ago

tuftkyle commented 7 years ago

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 commented 7 years ago

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 commented 7 years ago

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

Python3 has been been a moving target lately. ;)

viperscape commented 5 years ago

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 commented 5 years ago

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.