Giter Site home page Giter Site logo

Conda package about pymesh HOT 3 OPEN

pymesh avatar pymesh commented on August 20, 2024
Conda package

from pymesh.

Comments (3)

hiemstar avatar hiemstar commented on August 20, 2024

Before I used Anaconda with a python version 3.6 and got the error
python -c "import pymesh; pymesh.test()"
Fatal Python error: PyThreadState_Get: no current thread

If I use Anaconda with a python version 2.7 then I get the following error,

PyMesh (master) > python -c "import pymesh; pymesh.test()"
Traceback (most recent call last):
File "", line 1, in
File "/Users/rene/anaconda/lib/python2.7/site-packages/pymesh2-0.1.14-py2.7-macosx-10.7-x86_64.egg/pymesh/init.py", line 18, in
from .Mesh import Mesh
File "/Users/rene/anaconda/lib/python2.7/site-packages/pymesh2-0.1.14-py2.7-macosx-10.7-x86_64.egg/pymesh/Mesh.py", line 5, in
import PyMesh
File "/Users/rene/anaconda/lib/python2.7/site-packages/pymesh2-0.1.14-py2.7-macosx-10.7-x86_64.egg/pymesh/swig/PyMesh.py", line 28, in
_PyMesh = swig_import_helper()
File "/Users/rene/anaconda/lib/python2.7/site-packages/pymesh2-0.1.14-py2.7-macosx-10.7-x86_64.egg/pymesh/swig/PyMesh.py", line 20, in swig_import_helper
import _PyMesh
ImportError: dynamic module does not define init function (init_PyMesh)

from pymesh.

jjcao avatar jjcao commented on August 20, 2024

I have multiple python on a Ubuntu. When I build pymesh in a conda environment with python 2.7, cmake insists to use python 3.6 of another conda environment. How could I change this?

from pymesh.

jjcao avatar jjcao commented on August 20, 2024

Finally, I compiled PyMesh in a conda env with python 2.7.
Follow the installation steps, and make two changes.

  1. change cmake to the following line when building the main project:

cmake -Wno-dev -DPYTHON_INCLUDE_DIR=/home/jack/miniconda3/envs/py27/include -DPYTHON_LIBRARY=/home/jack/miniconda3/envs/py27/lib/libpython2.7.so -DPYTHON_EXECUTABLE=/home/jack/miniconda3/envs/py27/bin/python2.7 ..

  1. Before calling ./setup.py build, change a line in setup.py from

command = "cmake .. -DCMAKE_BUILD_TYPE=Release ...

to

command = "cmake .. -DCMAKE_BUILD_TYPE=Release -DPythonLibsNew_FIND_VERSION=2.7";

from pymesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.