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

difficulties with installation #834

Closed
gaelleclain opened this issue Jan 10, 2024 · 9 comments
Closed

difficulties with installation #834

gaelleclain opened this issue Jan 10, 2024 · 9 comments

Comments

@gaelleclain
Copy link

gaelleclain commented Jan 10, 2024

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:

  • updated pip
  • executed "pip install climada"
  • executed "import climada" without any error message
    Then I have switched to the Python console and executed "import climada"
    the installation seems ok but I have this issue:
    if I ever execute "climada.entity" command I get :" ModuleNotFoundError: No module named 'osgeo'"
    Can you point me what I have missed?

Thank you

@chahank
Copy link
Member

chahank commented Jan 11, 2024

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
Copy link
Member

peanutfun commented Jan 17, 2024

@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
Copy link
Author

@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
Copy link
Author

@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
Copy link
Member

@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
Copy link
Author

@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
Copy link
Member

@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
Copy link
Author

@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
Copy link
Member

Resolved by the latest update to the Conda package, see conda-forge/climada-feedstock#9.

To update, execute mamba update -n climada_env climada

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants