SofaPython3 icon indicating copy to clipboard operation
SofaPython3 copied to clipboard

A python plugin for Sofa offering a pythonic interface and python3 support.

Results 85 SofaPython3 issues
Sort by recently updated
recently updated
newest added

I have a lot of doubts about how sofa::Data is bound to SofaPython3. Apparently, when sofa::Data contains a VecCoord, is it converted to a numpy array, which i can access...

I'm using Sofa 21.06 with SofaPython3 on a machine with the following Configuration: - Ubuntu 20.04 - Python 3.8 (Virtualenv) - Cmake 3.16.3 When I am setting the "SP3_PYTHON_PACKAGES_LINK_DIRECTORY" Variable...

I am creating my own custom types for SOFA, mainly some forcefields but also other stuff. In order to add those types to an object, they must inherit from Sofa.Core.Object...

Thanks to @coolteemf who reported this issue. When we are creating our own bindings inside an external plugin, class inheritance against a base class defined in SofaPython3 is possible _if...

enhancement

The discussion started in #92 . The following scene will behave differently either we are using SofaPython(2) or SofaPython3: **Test scene** ```python # test.py def createScene(root) root = '2' +...

enhancement

For some reason, this only happen when using a packaged version of SOFA (i.e. not `build install` by ourself). To reproduce: 1. Download the latest SOFA v20.12 package 2. Create...

issue: bug

https://docs.python.org/dev/whatsnew/3.12.html#imp Imp has been deprecated since Python3 3.4 (!) and has been removed in 3.12.1 Hitting first macOS users because homebrew recently updated their version. More context : https://discuss.python.org/t/how-do-i-migrate-from-imp/27885/13 ---...

pr: clean-fix

Tackles https://github.com/sofa-framework/SofaPython3/issues/393 Clean some CMake files to fix multiple links to libpython which causes a SEGV at module import on macOS with some python versions. I could not find a...

pr: clean-fix
pr: backport todo

Hello. When I import `Sofa` in python, it works well with `SOFA_v23.06.00_Linux`. ``` (base) hojun@hojun-Z370M-D3H:~$ gedit ~/.bashrc ``` ``` export SOFA_ROOT=/home/hojun/SOFA/SOFA_v23.06.00_Linux export PYTHONPATH=/home/hojun/SOFA/SOFA_v23.06.00_Linux/plugins/SofaPython3/lib/python3/site-packages export PYTHONPATH=/home/hojun/SOFA/SOFA_v23.06.00_Linux/plugins/STLIB/lib/python3/site-packages:$PYTHONPATH export SOFA=/home/hojun/SOFA/SOFA_v23.06.00_Linux/bin/runSofa alias runsofa="$SOFA" ```...

Hi, I have the same problem Originally posted by @TGeissenb in https://github.com/sofa-framework/sofa/discussions/4566. And my python version is 3.10.11 when I add the SofaPython3 plugins in release version 23.12, it worked...