-
Notifications
You must be signed in to change notification settings - Fork 48
Problem importing Sofa.Core, SofaRuntime and Sofa.Simulation #16
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
Comments
@jnbrunet maybe you have a clue? I'm out of ideas on this one.. I've read that up/downcasts from derived types can be an issue when using unique_ptrs (pybind/pybind11#1317) |
I just tried on the pybind11 2.3 branch, and I cannot reproduce. Can you give me some more information:
|
Hi, Thank you for the answer. Here is what you asked for:
2-3. I build in-tree, so I realise the command in the build of Sofa. for grep PYTHON CMakeCache.txt: PLUGIN_SOFAPYTHON:BOOL=OFF for grep -i pybind CMakeCache.txt: //The directory containing a CMake configuration file for pybind11.
Thank's |
Just to be sure, can you run |
Yes: /usr/include/pybind11/detail/common.h |
Just tried with that exact version (2.3.0) and I still cannot reproduce. Can you start-up clean with out-of-source? SOFA
SP3
PYTHON
So that
and finally,
|
I tried, but I have this error: etiennemenager@ubuntu:~/Desktop/dev/plugin/plugin.SofaPython3/build$ cmake -DCMAKE_PREFIX_PATH=/home/etiennemenager/Desktop/dev/sofa/master/build/install/lib/cmake .. Could not find a package configuration file provided by "SofaFramework"
Add the installation prefix of "SofaFramework" to CMAKE_PREFIX_PATH or set |
Did you run the step 6 (SOFA) in your SOFA build directory?
The directory
|
Yes I did: etiennemenager@ubuntu:~/Desktop/dev/sofa/master/build$ cmake --install . FindOpenGL found both a legacy GL library:
and GLVND libraries for OpenGL and GLX:
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for Adding module SofaExporter Adding collection SofaComponentAll Argument not separated from preceding token by whitespace. -- Found OpenCV: /usr/local (found suitable version "3.2.0", minimum required is "3.2") Quoted variables like "chrono" will no longer be dereferenced when the Adding plugin ImageProcessing Quoted variables like "chrono" will no longer be dereferenced when the -- Found OpenCV: /usr/local (found suitable version "3.2.0", minimum required is "3.0") -- Configuring done But I have nothing except SofaPython3 in /home/etiennemenager/Desktop/dev/sofa/master/build/install/lib/cmake ... |
Hi @EtienneMenager , did you solved your issue? |
Hi, sorry for the late update. I did not solve the problem but I downloaded an image for my VM with everything already install! Thank's. |
Configuration:
When I open python3.7 and run
import Sofa
I get the error:The text was updated successfully, but these errors were encountered: