pivy icon indicating copy to clipboard operation
pivy copied to clipboard

'pivy._coin' has no attribute 'delete_SoGeo'

Open DaveCoventry opened this issue 3 years ago • 7 comments

Hi, I am getting the following error:

`dave@Tuffy:~$ python3 Python 3.10.6 (main, Nov 2 2022, 18:53:38) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import pivy Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3/dist-packages/pivy/init.py", line 30, in from .coin import SoDB, SoNodeKit, SoInteraction File "/usr/lib/python3/dist-packages/pivy/coin.py", line 40397, in class SoGeo(object): File "/usr/lib/python3/dist-packages/pivy/coin.py", line 40431, in SoGeo swig_destroy = _coin.delete_SoGeo AttributeError: module 'pivy._coin' has no attribute 'delete_SoGeo'

`

OS: KDE neon 5.26 (KDE/plasma) Python 3.10.6, Qt 5.15.7, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.1

DaveCoventry avatar Dec 15 '22 04:12 DaveCoventry

I guess this is an packaging issue.

looooo avatar Dec 15 '22 16:12 looooo

I cloned pivy and installed with cmake and make.

DaveCoventry avatar Dec 16 '22 06:12 DaveCoventry

ok, strange. which swig version are you using? I saw recently some issues with swig 4.1.0 and pythonocc-core. Maybe this can be related.

looooo avatar Dec 17 '22 11:12 looooo

`dave@Tuffy:~$ swig -version

SWIG Version 4.0.2

Compiled with g++ [x86_64-pc-linux-gnu]

Configured options: +pcre `

DaveCoventry avatar Dec 17 '22 14:12 DaveCoventry

I just came across this as well, many of my addon modules give this error. Exact same swig version.

Another clue perhaps is python Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import pivy Traceback (most recent call last): File "", line 1, in File "/home/chris/github/pivy/build/pivy/init.py", line 30, in from .coin import SoDB, SoNodeKit, SoInteraction File "/home/chris/github/pivy/build/pivy/coin.py", line 21, in from . import _coin ImportError: cannot import name '_coin' from partially initialized module 'pivy' (most likely due to a circular import) (/home/chris/github/pivy/build/pivy/init.py)

I think it has something to do with https://github.com/coin3d/pivy/issues/103

iplayfast avatar Jan 14 '23 21:01 iplayfast

Hi Chris,

Did you find a workaround for this issue?

DaveCoventry avatar Jan 21 '23 07:01 DaveCoventry

It's possible that different versions of pivy causing this problem. Please check which _coin.so is used. If I can remember correctly SoGeo was added recently.

looooo avatar Jan 21 '23 17:01 looooo