LHEEA / meshmagick

A command line tool and a python package to manipulate hydrodynamics meshes
GNU General Public License v3.0
47 stars 27 forks source link

conda/pip installation issues #28

Closed dav-og closed 2 years ago

dav-og commented 3 years ago

After following the recommended installation method:

  > conda install -c frongere meshmagick

Importing the mesh module results in the following error:

  > import meshmagick.mesh as mmm
  > ...
  > ModuleNotFoundError: No module named 'vtkCommonCorePython'

Some colleagues have also reported that pip install meshmagick is returning "No matching distribution found"

Hence, it seems like the meshmagick versions available via conda/pip are not up to date.

The current installation approach we are working with is:

  > git clone https://github.com/LHEEA/meshmagick
  > cd meshmagick

Then, if you intend to modify the source code:

  > python setup.py develop

if not:

  > pip install -e .
ryancoe commented 3 years ago

I have not been able to install meshmagick via conda for a while. I guess this is because I'm using conda v4.10.1. It seems this is a known issue (https://lheea.github.io/meshmagick/install/install.html#installing-with-conda), as the docs recommend using v4.2?

I've been using pip, e.g.,:

conda install <all the requirements>
pip install git+https://github.com/LHEEA/meshmagick.git@2.1.1
cmichelenstrofer commented 2 years ago

Are there any plans to fix this? It would be great if meshmagick was in PyPi so that you could do pip install meshmagick. It not being in PyPi is also an issue when trying to include it in another package (I couldn't figure out how to include meshmagick in the setup.cfg file).

kasia129 commented 2 years ago

I'm trying to install Meshmagick through

> git clone https://github.com/LHEEA/meshmagick
> cd meshmagick
> pip install -e .

as suggested by @dav-og. Installation is successful, however, when trying to run it, I'm getting this message:

ModuleNotFoundError: No module named 'vtkCommonCorePython'

Is there anything else I can try?

cmichelenstrofer commented 2 years ago

@kasia129 Which Python version are you using? I had a similar problem while trying to use Python 3.10. VTK is still not available for Python 3.10 and I had to downgrade it to Python 3.9. Creating a clean Python 3.9 environment and then installing meshmagick worked for me.

dav-og commented 2 years ago

I've also seen this error - I'm using 3.7 👍 Apologies for missing that out in the other post ;)

kasia129 commented 2 years ago

I had Python 3.7 - I have now setup a new environment with Python 3.9 and it worked the magic! Thanks a lot for the advice.