[WIP] conda: occt7.6, vtk9.1, qt5.15/qt6, python3.10

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
Post Reply
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

[WIP] conda: occt7.6, vtk9.1, qt5.15/qt6, python3.10

Post by looo »

Tracking the currently a little bit messy state of the conda-packages. The main goal is to have freecad and dependencies available with:
python3.10
qt5.15 / qt 6
occt7.6

[ ] update smesh to tbb2021, vtk9.1 and oct7.6
[ ] qt 5.15 https://github.com/conda-forge/qt-main-feedstock
[ ] qt-webengine 5.15 https://github.com/conda-forge/staged-r ... pull/17233
[ ] pyside2 5.15 + python 3.10 https://github.com/conda-forge/pyside2- ... k/pull/102
[ ] pivy with python3.10 (needs pyside 2 + python 3.10)
[ ] python-occ-core (occt7.6)
[ ] freecad (occt7.6, qt5.15, python3.10)
Last edited by looo on Mon Jan 31, 2022 11:53 am, edited 4 times in total.
User avatar
adrianinsaval
Veteran
Posts: 5544
Joined: Thu Apr 05, 2018 5:15 pm

Re: conda: occt7.6, vtk9.1, tbb2021, qt5.15/qt6, python3.10

Post by adrianinsaval »

are there patches available to make pivy work with 3.10? It seems pivy is broken in archlinux right now
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: occt7.6, vtk9.1, tbb2021, qt5.15/qt6, python3.10

Post by looo »

adrianinsaval wrote: Wed Jan 19, 2022 1:57 pm are there patches available to make pivy work with 3.10? It seems pivy is broken in archlinux right now
Sorry I wasn't able to the test pivy with python3.10 until now because of missing dependencies. I will work on this issue once pyside2 / python3.10 is done. I tried to patch pyside2 to work with python3.10 but it still fails for windows and osx.

I guess this is the issue you are seeing with pivy + python3.10:

Code: Select all

----------------------------------------------------------------------
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/lo/projects/freecad/pivy/tests/coin_tests.py", line 1178, in testSoPathIterator
    path = SoPath()
  File "/home/lo/miniconda3/envs/pivy/lib/python3.10/site-packages/pivy/coin.py", line 2932, in __init__
    _coin.SoPath_swiginit(self, _coin.new_SoPath(*args))
SystemError: <built-in function new_SoPath> returned a result with an exception set

----------------------------------------------------------------------
As I understand this macro must be defined before including <Python.h>. But I am not sure how to do this with swig.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: conda: occt7.6, vtk9.1, tbb2021, qt5.15/qt6, python3.10

Post by looo »

can you try if this branch fixes the issue with python3.10:
https://github.com/looooo/pivy/tree/python3.10
adrianinsaval wrote: Wed Jan 19, 2022 1:57 pm
btw. the fix can be found here (in case anyone comes across this):
https://github.com/swig/swig/issues/2150
User avatar
adrianinsaval
Veteran
Posts: 5544
Joined: Thu Apr 05, 2018 5:15 pm

Re: [WIP] conda: occt7.6, vtk9.1, tbb2021, qt5.15/qt6, python3.10

Post by adrianinsaval »

I'll see if I can try it out this weekend
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] conda: occt7.6, vtk9.1, qt5.15/qt6, python3.10

Post by looo »

adrianinsaval wrote: Thu Jan 20, 2022 12:41 pm I'll see if I can try it out this weekend
please also have a look at:
https://github.com/coin3d/pivy/pull/91
Post Reply