pivy._coin is being reported as missing as below
Balance of compile appears OK.-- Checking for module 'Coin'
-- Found Coin, version 4.0.1
-- Coin3D libraries found
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pivy/coin.py", line 23, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pivy._coin'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/pivy/__init__.py", line 30, in <module>
from .coin import SoDB, SoNodeKit, SoInteraction
File "/usr/lib/python3/dist-packages/pivy/coin.py", line 26, in <module>
_coin = swig_import_helper()
File "/usr/lib/python3/dist-packages/pivy/coin.py", line 25, in swig_import_helper
return importlib.import_module('_coin')
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_coin'
Pivy is installed at /usr/lib/python3/dist-packages/pivy/.
/usr/lib/ currently has python2.7, python3, python3.8 and python3.9 folders.
The compile process as part of the Coin3D compile initially correctly finds the installed pivy at python3 (the current default python for is 3.8.10) and finally tries to find pivy._coin in the latest python version as installed on my machine at python3.9/importlib where the reported exception occurs.
From the tracebacks shown the compile process jumps around the various installed python versions and loses track of the fact that the already located pivy._coin actually lives under the python3 folder.
The compile command (out of source) is
No obvious errors are reported in the cmake compile log. A copy of the console output during compile is attached.cmake -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Debug ../freecad-source
Pivy was removed and reinstalled via 'sudo apt install python3-pivy' in an unsuccessful attempt to correct this issue.
As an aside this appears to be similar to the recently fixed Shiboken issues where Shiboken couldn't decide which python 3 folder it was going to use when compiling. I understand it had to be forced to utilise python3.8.
Any ideas/comments on way forward to correct this pivy problem?
And the required bleeding-edge info:
Code: Select all
OS: Linux Mint 20.3 (X-Cinnamon/cinnamon2d)
Word size of FreeCAD: 64-bit
Version: 0.20.28612 (Git)
Build type: Debug
Branch: master
Hash: 9b3a50840f39f038bfae8c7b41f76fef7017a96e
Python 3.8.10, Qt 5.12.8, Coin 4.0.1, OCC 7.3.0
Locale: English/New Zealand (en_NZ)
Installed mods:
* BIM