CLIMADA-project / climada_python

Python (3.8+) version of CLIMADA
GNU General Public License v3.0
321 stars 125 forks source link

difficulties with installation #834

Closed gaelleclain closed 9 months ago

gaelleclain commented 10 months ago

Hello, I have been following the installation guidelines both the simple instructions and the advanced instructions. Both have failed. I hope I can find help here.

I have a Windows computer and I work on a linux subsystem using wsl2. The disk space and the internet connection requirements are adressed.

  1. Installation topic 1 Today I have tried again to install climada using the advanced instructions together with this video this video. I have installed anaconda and updated python to the latest version. I have been stuck on the environment creation step since more than 10 hours now. image Yet is that a normal that the environment creation takes this long?

  2. Installation topic 2 using pycharm

Under pycharm I have created a new project.

In the pycharm terminal I have successfully:

Thank you

chahank commented 10 months ago

Dear @gaelleclain ,

Before we dig further into your troubles, could you please try the installation instruction with Mamba as described here: https://climada-python.readthedocs.io/en/latest/guide/install.html ?

peanutfun commented 10 months ago

@gaelleclain Were you able to resolve the issue with the latest installation instructions? Note that the video you mention seems outdated regarding our recent changes to the installation procedure.

gaelleclain commented 10 months ago

@peanutfun thank you for your message. I have tested the installation procedure with Miniforge3 for Windows. Everything went fine but the test mentionned in the procedure:

image

I seem to understand that Stamen is something related to geopandas that is outdated. Is there a solution for this ?

Thanks

gaelleclain commented 10 months ago

@peanutfun @chahank I have done this modification and retested. Same error message. Should I recompile or deactivate / reactivate climada_env? Please note that I have no clue how to recompile.

Thanks

peanutfun commented 10 months ago

@gaelleclain This is an issue with xyzservices. They removed the Stamen provider. We fixed this in the current development version of Climada. Since I think you installed Climada via Conda, I am not sure if you can fix this issue on your end. You might need to switch to the development version, following the "Advanced Instructions" in the installation guide.

A new Climada release including the fix will probably available by the end of the month from conda-forge.

gaelleclain commented 10 months ago

@peanutfun I have installed climada via Mamba. Does it make a difference on adressing the issue? Otherwise I'll switch to the Advanced instruction installation indeed

peanutfun commented 10 months ago

@gaelleclain Yes. If you install Climada via Mamba, you only get the released versions. Currently, there is no release that fixes the issue you mentioned. Switching to the advanced instructions is probably your best course of action. It is a bit more complicated, but you do not require additional software.

gaelleclain commented 10 months ago

@peanutfun understood, thanks. so far I have done a dirty workaround like mentionned in Goodbye Stamen

798

The test "python -m unittest climada.engine.test.test_impact" has generated many warning messages but ended on a OK so I take it as a problem solved. Thanks for helping indeed image

peanutfun commented 9 months ago

Resolved by the latest update to the Conda package, see https://github.com/conda-forge/climada-feedstock/pull/9.

To update, execute mamba update -n climada_env climada