-
Notifications
You must be signed in to change notification settings - Fork 63
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
Missing ModularVisualization in rainfall example? #105
Comments
Hmm this is interesting. But I do not have this issue on my side. Could you try to use a clean virtual environment from scratch, and install dependencies and Mesa-Geo via |
Hey, thanks for the quick answer. I'm testing it now on my home pc (ubuntu) This is what I tried;
Here the full output of the pytest errors and the mamba package list: Thanks for your help! |
I see. Looks like Mesa-Geo is not properly installed for some reason. We do not have a Line 43 in a3f01ad
How about |
okay so this is interesting: it seems that (at least on my machine) there is a subtle difference in the way setuptools treats command classes between install and install_editable with pip. I start from a fresh clone (so the ModularVisualization.py file is not there) then:
So the question is, why --editable is not calling neither the build nor the develop subcommands? Actually
On the other side,
Thus no file is copied... |
As a proof, if I change the setup.py accordingly:
And the ModularVisualization.py file is present again! |
We should replace the |
Yes, if you can confirm this, we could:
And additional question: is there any reason why build is imported from distutils and the rest from setuptools? |
If I remember this correctly, I could only subclass
Agreed! Shall we make a quick fix before addressing #76, or work on #76 directly? |
@mrceresa If If not then we may still need to address this issue for the Leaflet dependency. |
I got the same problem when I installed mesa-geo from git. I reinstall this package by using 'pip install mesa-geo' and it works. |
@zlfdodo Sorry about that. Could you share which operating system and python version were used? |
@wang-boyu Thanks for the prompt reply. I am using Windows system and conda python 3.10.6. The mesa-geo package only works under this python version on my computer. When I use any other python version in Anaconda and run any model/run.py file in the example folder, it will return "ImportError: DLL load failed while importing_version." |
I managed to reproduce this issue with Ubuntu Kinetic and Python 3.10 - the As of the I'm currently waiting for the Mesa |
Regarding Windows OS, I don't have access to any Windows PC at the moment. Let me see what I can do. This may also link to #30. |
Describe the bug
Cloned the repo and run the coverage tests:
Expected behavior
Running the test suite should not give any errors
Indeed I don't see the module anymore in the visualization folder of mesa-geo
Maybe I'm getting confused from #76
Or I simply messed up the dev installation?
The text was updated successfully, but these errors were encountered: