Comments (3)
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.
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.
Finally, I compiled PyMesh in a conda env with python 2.7.
Follow the installation steps, and make two changes.
- 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 ..
- 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)
- does pymesh run on windows HOT 1
- failed to install pymesh2 in windows HOT 2
- ear
- Process "killed" for large mesh
- Compilation failure when building third-party library triangle HOT 4
- How to use PyMesh? HOT 1
- nlohmann_jsonConfig.cmake HOT 1
- Installation for arm64
- Is this project abandoned? HOT 2
- pymesh (i have a stl file and i want use pymesh for polycube aproximation)AtributeError: module 'pymesh' has no attribute 'mesh'
- How to access raw voxel data
- nump.testing Tester removed after numpy v 1.24 HOT 1
- ModuleNotFoundError: No module named 'PyMesh'
- Unable to install pymesh due to CMAKE error
- Undefined symbol error
- is it possible to upgrade Python requirement because 3.6 is too old nowadays ? HOT 1
- A problem when I tried to create a cylinder or others
- Outdated pybind11
- Unable to build third_party cgal due to CMAKE error
- Is there build guide for Windows 11 and Python 3.12?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymesh.