PyMesh icon indicating copy to clipboard operation
PyMesh copied to clipboard

Error installing PyMesh

Open raghavgurbaxani opened this issue 7 years ago • 6 comments

Hi

While installing Pymesh after running python setup.py install -

Installed /home/raghav/anaconda3/envs/keras/lib/python2.7/site-packages/pymesh2-0.2.1-py2.7-linux-x86_64.egg Processing dependencies for pymesh2==0.2.1 Finished processing dependencies for pymesh2==0.2.1

However, when I check for installation $ python

import pymesh Traceback (most recent call last): File "", line 1, in File "/home/raghav/.local/lib/python2.7/site-packages/pymesh2-0.2.1-py2.7-linux-x86_64.egg/pymesh/init.py", line 18, in from .Mesh import Mesh File "/home/raghav/.local/lib/python2.7/site-packages/pymesh2-0.2.1-py2.7-linux-x86_64.egg/pymesh/Mesh.py", line 5, in import PyMesh ImportError: No module named PyMesh

Any suggestions ?

raghavgurbaxani avatar Nov 07 '18 23:11 raghavgurbaxani

same problem here

sunnyyum avatar Feb 05 '19 08:02 sunnyyum

Set the proper path with cmake.

In my case, I use pyenv to manage python versions.

So I run following commands to build the project:

cd $PYMESH_PATH
mkdir build
cd build
cmake -DPYTHON_LIBRARY=/Users/user/.pyenv/versions/anaconda3-5.2.0/lib/libpython3.6m.dylib -DPYTHON_INCLUDE_DIR=/Users/user/.pyenv/versions/anaconda3-5.2.0/include/python3.6m -DPYTHON_EXECUTABLE:FILEPATH=/Users/user/.pyenv/versions/anaconda3-5.2.0/bin/python ..
make -j
cd ..
python setup.py install

FYI 😃 ☕️

ijinjay avatar Feb 07 '19 13:02 ijinjay

Has this been fixed because I have got exactly the same error message that @raghavgurbaxani

AAcquier avatar Feb 28 '19 16:02 AAcquier

@ijinjay ,useful advice. My similar problem has been solved by this way. Thanks!!

louzq16 avatar Dec 12 '19 13:12 louzq16

Does this work in a 'standard' ubuntu python3 environment without using anaconda?

SimonSolar2C avatar Apr 24 '20 01:04 SimonSolar2C

I have the same problem on Ubuntu 20.04 and Python 3.8. It's kinda unbelievable that the installation of this package is such a headache. Why not simply introduce a pip package for this? I ended up removing the Pymesh, it took more than 1 hour and that was it for me.

eyildiz-ugoe avatar Aug 02 '22 09:08 eyildiz-ugoe