Not sure if this topic is better placed here or in Compile/Install.
Anyway.
I have an issue that TestPathApp fails after I build and 'cmake --install' FreeCAD, with following log :
Code: Select all
======================================================================
ERROR: TestPathApp (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: TestPathApp
Traceback (most recent call last):
File "/usr/lib/python3.10/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
File "/usr/lib/python3/dist-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/local/Mod/Path/TestPathApp.py", line 25, in <module>
from PathTests.TestPathAdaptive import TestPathAdaptive
File "/usr/lib/python3/dist-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/local/Mod/Path/PathTests/TestPathAdaptive.py", line 27, in <module>
import Path.Op.Adaptive as PathAdaptive
File "/usr/lib/python3/dist-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
File "/usr/local/Mod/Path/Path/__init__.py", line 1, in <module>
from PathApp import *
File "/usr/lib/python3/dist-packages/shiboken2/files.dir/shibokensupport/__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ImportError: Import.so: cannot open shared object file: No such file or directory
Tests are run with 'FreeCADCmd -t 0'.
I don't have precise version information because I run this in a Docker runner with Ubuntu 22.04 and latest master.
Thanks for any help.