-
Notifications
You must be signed in to change notification settings - Fork 54
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
Installing mesa-geo in Windows 10 #30
Comments
I have developed mesa-geo using windows 10, so it used to be no problem. I'll see if I can recreate the problem on my end, but it will take a few days until I have the resources. You could see if it is possible to install gdal differently |
Thanks very much - that's already useful information. I was going to
try on a Linux machine, but I'll try on a different Windows 10 machine
instead - or first, at least. I'll let you know the outcome.
Regards,
Nick
I have developed mesa-geo using windows 10, so it used to be no
problem.
I'll see if I can recreate the problem on my end, but it will take a
few
days until I have the resources. You could see if it is
possible to
install gdal differently
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
|
Hi, just to let you know I have now succeeded (on another machine,
but I think the same steps will work on the original, which is the one i
need it on if possible). I'll post a reply to my own query, probably
tomorrow.
Thanks again - without knowing you'd developed it on Windows, I'd
have given up hours ago!
Nick
I have developed mesa-geo using windows 10, so it used to be no
problem.
I'll see if I can recreate the problem on my end, but it will take a
few
days until I have the resources. You could see if it is
possible to
install gdal differently
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
|
I have now succeeded (at least in installing mesa-geo; I have not yet tried to use it). The error message above appeared while the system was trying to install Fiona. Downloading two files from https://www.lfd.uci.edu/~gohlke/pythonlibs/, and using the following commands from within an Anaconda powershell terminal worked: pip install C:\GDAL-3.1.4-cp38-cp38-win_amd64.whl The last of these used the previously downloaded mesa_geo-0.2.0-py3-none-any.whl. |
Worth noting that, running Python3.8.3, under anaconda, I needed to make two changes to get the GeoSIR example to run:
|
Glad you got it working! I'll leave this open until I can try this again myself on a clean environment and also to fix the visualization server |
I just reinstalled mesa-geo in a new virtual environment, and found that the file-copying noted above was not needed - the files geos.dll and geos_c.dll were already in \path\to\anaconda3\Library\bin. I also found that the two lines needing to be added to tornado\platform\asyncio.py are needed for the mesa example boids as well as mesa-geo examples. |
I installed mesa and mesa-geo on Windows 10 (still need to install GDAL and Fiona as described above to get the server to run without errors - this is a GeoPandas issue). The mesa schilling example runs, but the mesa-geo Schilling example does not. I get a map window, but the red and blue country outlines do not appear, nor do the controls. Installing with the same requirements.txt on Linux everything runs fine. Note that the tornado\platform\asyncio.py update should not be needed with Tornado 6.1 (tornadoweb/tornado#2608 (comment)), but I tried it anyways with no joy. Here is what I get on Windows 10: I'm running Python 3.8. Here is my requirements.txt: |
@josse7cz that is a symptom of 2 possible problems:
You should have posted your problem in a new issue, because while it is a Windows installation problem just like this issue, it has a different unrelated error message. |
How can I install mesa-geo as editable
Initially I installed mesa geo by executing the following commands
But now I want to make changes in the root code so I want to install it so that I can edit the root code. |
@Harshpanday can you post in a different issue? Your use case is different from OP's. That said, I don't have access to a Windows machine, and so, can't help debug. |
The error seems to be related to rasterio. This isn't included in the latest release, but on the git version. So it is probably a problem with the installation of rasterio and not normal install vs editable install, but we need to verify this. Also, yes, a separate issue would be great |
This is an old issue but I would like to use this as the ticket to track installation issues in Windows OS. In our readme file we mentioned
However, this was written 5 or 6 years ago. As I don't have access to any Windows machine, it would be great if someone could help check whether there is any issue in installing Mesa-Geo in Windows OS. I'm also curious to know whether the |
I tried |
Has anyone succeeded in installing mesa-geo on Windows 10? I have tried both methods suggested, in Anaconda. HEre's the error message:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\NMG\anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\NMG\AppData\Local\Temp\pip-install-x7ykh3k9\fiona\setup.py'"'"'; file='"'"'C:\Users\NMG\AppData\Local\Temp\pip-install-x7ykh3k9\fiona\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\NMG\AppData\Local\Temp\pip-pip-egg-info-sxn218qg'
cwd: C:\Users\NMG\AppData\Local\Temp\pip-install-x7ykh3k9\fiona
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
So I try installing gdal, using the recommended command:
conda install -c conda-forge gdal
This comes up with pages of "conflicts", and does not appear to work.
Any advice gratefully received.
The text was updated successfully, but these errors were encountered: