-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add Windows compatibility #7
Comments
I also had this error now while trying your fork in Windows due to the linked issue.
|
I have installed pyhgtmap on a Windows 11 PC using the wheel provided on pypi.org. The installation is confirmed (by using pyhgtmap -h) and works using a Windows batch script to run (with input variables) :
BUT: Using a start-node-id or a start-way-id with more than 10 digits I get the following error
As I need at least 11 digit numbers for elevation nodes and ways (to not get into conflict with osm-based nodes and ways in my map generation), this is a kind of show-stopper for me. It sounds like the reason could be a 32-bit numpy array limit (I have numpy 1.26.4 installed on a 64-bit Windows 11 PC). |
Addition: |
Hi, I'm actually surprised it reaches this far before crashing, as I don't expect pyhgtmap to be compatible with windows sur to the multiprocessing limitation. Anyway, for your case I suspect a 32 bits version of python/numpy. You may check with https://stackoverflow.com/questions/1405913/how-do-i-determine-if-my-python-shell-is-executing-in-32bit-or-64bit#1405971 |
I checked my version: Python runs in 64 bit.
Strange, as I am running 64 bit python on a 64 bit Windows PC. Are there other installation sources? |
|
Thanks for the hint. I was now able to install numpy-2.0.0 successfully.
Is this an issue of pyhgtmap in general? Or something Windows specific? |
Indeed, looks like bool8 has been removed in numpy 2. You have to install 1.x. or upgrade other packages accordingly (nptyping here). |
I checked and I have nptyping installed in the newest version (2.5.0). |
There's no release of nptyping compatible with numpy 2.0 yet. |
OK. I went down to numpy 1.26.4 and get now this error message with pyhgtmap:
There is a file generated, but it contains only the nodes of contours. The ways are not written. So I am back to the start of the problem. |
Mainly because numpy's int doesn't behave the same way on all platforms (https://stackoverflow.com/a/57828594/23420157). This DOESN'T address the main Windows compatibility issue in multiprocessing. Ref. #7
Mainly because numpy's int doesn't behave the same way on all platforms (https://stackoverflow.com/a/57828594/23420157). This DOESN'T address the main Windows compatibility issue in multiprocessing. Ref. #7
Mainly because numpy's int doesn't behave the same way on all platforms (https://stackoverflow.com/a/57828594/23420157). This DOESN'T address the main Windows compatibility issue in multiprocessing. Ref. #7
This is indeed a Windows specific issue, as on Windows numpy.int isn't 64 bits by default, while it is on other platforms: https://stackoverflow.com/a/57828594/23420157 |
Mainly because numpy's int doesn't behave the same way on all platforms (https://stackoverflow.com/a/57828594/23420157). This DOESN'T address the main Windows compatibility issue in multiprocessing. Ref. #7
Mainly because numpy's int doesn't behave the same way on all platforms (https://stackoverflow.com/a/57828594/23420157). This DOESN'T address the main Windows compatibility issue in multiprocessing. Ref. #7
New multiprocessing usage is not compatible with native Windows Python.
Current work-around is to rely on Python inside WSL.
The text was updated successfully, but these errors were encountered: