-
Notifications
You must be signed in to change notification settings - Fork 100
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
Installation issues in a conda environment: ModuleNotFoundError: No module named 'mesonpy' #238
Comments
@dalcinl do you know what is the best way to make sure that these dependencies ( |
If this is about editable installs, then there is no automatic way, that how For the time being, I would suggest the following minor enhancements.
This way, if the build requirements ever change you update both |
cf. pypa/pip#9314 It would be nice if |
As suggested here: clawpack#238 (comment) This will install meson-python and ninja which are needed for editable installs, as well as spin and pytest, which are useful for developers.
Thanks; I opened a PR with the changes to the code. There has been some discussion around whether to encourage non-developers to use an editable install, so I haven't updated the docs in any way yet. |
@kbarnhart To your specific issue, the following updated pip instructions should solve your problem.
@ketch You may need to add ninja to the |
As suggested here: clawpack#238 (comment) This will install meson-python and ninja which are needed for editable installs, as well as spin and pytest, which are useful for developers.
Following the instructions here yields the following error:
ModuleNotFoundError: No module named 'mesonpy'
Summary of outcome:
The issue was that the current hashes of each submodule do not point to the most up to date meson build system. When each submodule is updated to the current master branch, the problem resolves. Therefore this will be resolved when clawpack submodule management updates to more recent git hashes.
What I did:
Create a clean conda environment and attempt to install.
I guessed the name for a pip install and did not succeed.
(clawpack) USER@COMPUTER clawpack % pip install mesonpy ERROR: Could not find a version that satisfies the requirement mesonpy (from versions: none) ERROR: No matching distribution found for mesonpy
However, a quick goole indicates that I should have installed meson-python https://pypi.org/project/meson-python/
Trying the install again still yields an error:
So I installed ninja https://pypi.org/project/ninja/1.8.2/
And tried again:
Discussed with @mandli and found that the issue was that the meson build (which should know how to install meson-python and ninja) was not behaving as expected.
At this time the submodules were in the following state:
We fetched origin and checked out master
At that point, I had no issues with mesonpy or ninja but still produced the same fortran compiler error.
which fortran indicates I was using system gfortran. I then updated to gfortran distributed by conda forge
At that point
pip install -e .
yielded success.
The text was updated successfully, but these errors were encountered: