PySide2 Python module not found.

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

PySide2 Python module not found.

Post by kisolre »

After I recently properly updated the Libpack I get this error/warning/?!? when running CMake Configure. Here is the full output:

Code: Select all

Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042.
Compiler: MSVC, version: 19.29.30138.0
prefix: C:/FC_Local
bindir: bin
datadir: data
docdir: doc
includedir: include
libdir: lib
cmake: 3.15.7
PyCXX found:
  Headers:  C:/FC_Bld/Code/src
  Sources:  C:/FC_Bld/Code/src/CXX
  Version:  6.2.8
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
=====================================================
Doxygen not found, will not build documentation.     
=====================================================

PyCXX found:
  Headers:  C:/FC_Bld/Code/src
  Sources:  C:/FC_Bld/Code/src/CXX
  Version:  6.2.8
-- Found OCE/OpenCASCADE version: 7.5.3
-- OCE/OpenCASCADE include directory: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/inc
-- OCE/OpenCASCADE shared libraries directory: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib
HUHUH: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/cmake/vtk-8.2/VTKTargets.cmake
VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
HUHUH: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/cmake/vtk-8.2/VTKTargets.cmake
Check for medfile (libmed and libmedc) ...
Found Boost: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include (found suitable version "1.67.0", minimum required is "1.55") found components:  filesystem program_options regex system thread date_time chrono atomic 
Found Netgen: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/cmake
Found NETGEN version 6.2, calculated: 395734
Coin3D libraries found
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pivy'

Shiboken2Config: Using default python: .cp38-win_amd64
SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: 'C:/Program Files/Python38/include'
SHIBOKEN_PYTHON_LIBRARIES computed to value: ''
libshiboken built for Release
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide2'

================================
PySide2 Python module not found.
================================

=====================================================
Matplotlib not found, Plot module won't be available.
=====================================================

Platform is 64-bit, set -D_OCC64
[E57] Revison ID: E57Format-2.2.1-AMD64_64-windows
[E57] Building static library
Performing Test _flag_found
Performing Test _flag_found - Failed
Performing Test _flag_found
Performing Test _flag_found - Failed
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES) 
Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES) 
Could NOT find OpenMP (missing: OpenMP_C_FOUND OpenMP_CXX_FOUND) 
Found Boost: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include (found version "1.67.0") found components:  python38 
found Boost: 1_67
boost-incude dirs are: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include
boost-python lib is: 
boost_LIBRARY_DIRS is: C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib
Boost_LIBRARIES is: optimizedC:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/boost_python38-vc141-mt-x64-1_67.libdebugC:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/boost_python38-vc141-mt-gd-x64-1_67.lib
area module (for Path Workbench) will be installed to: lib

==============
Summary report
==============

Compiler:            C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe (19.29.30138.0)
Flags:               /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MP
Standard:            Requires C++17
Python:              3.8.8 [C:/Program Files/Python38/python.exe] [.cp38-win_amd64]
PCL:                 not enabled
pybind11:            not enabled
Boost:               1.67.0 (106700)
XercesC:             3.2.2 [optimized;C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/xerces-c_3.lib;debug;C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/xerces-c_3D.lib] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include]
ZLIB:                1.2.11
PyCXX:               6.2.8 [C:/FC_Bld/Code/src]
OCC:                 7.5.3 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/inc]
SMESH:               build internal
 MEDFile:            4.0.0 [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/medC.lib] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include]
 HDF5:               
 VTK:                8.2.0
NETGEN:              6.2.2006 (6.2.2006-19-gb37a3e6c) [-DNO_PARALLEL_THREADS;-DOCCGEOMETRY;-DNETGEN_VERSION=395734] [] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include/include;C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include] [nglib] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include/include;C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include]
SWIG:                4.0.2
Eigen3               3.3.90
Qt5Core:             5.15.2
Qt5Network:          5.15.2
Qt5Xml:              5.15.2
Qt5XmlPatterns:      5.15.2
Qt5Widgets:          5.15.2
Qt5PrintSupport:     5.15.2
Qt5OpenGL:           5.15.2
Qt5Svg:              5.15.2
Qt5UiTools:          5.15.2
Qt5Concurrent:       5.15.2
Qt5WebEngineWidgets: 5.15.2
Qt5WinExtras:        5.15.2
Shiboken2:           5.15.0 [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/cmake/Shiboken2-5.15.0] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include/shiboken2;C:/Program Files/Python38/include]
PySide2:             5.15.0 [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include/PySide2]
PySide2Tools:        [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/bin/uic.exe] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/bin/rcc.exe]
Freetype:            2.10.1
OpenGL:              opengl32
OpenGLU:             [glu32][]
Coin3D:              4.0.1 [optimized;C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/Coin4.lib;debug;C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/lib/Coin4d.lib] [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include]
Pivy:                
Matplotlib:          not found
Rift:                not enabled (BUILD_VR)
Doxygen:             not found
=======================================
Created install commands for INSTALL target.

=================================================
Now run 'cmake --build C:/FC_Bld/Build' to build FreeCAD
=================================================

Configuring done
Should I be worried and make something to fix that or just ignore it?
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: PySide2 Python module not found.

Post by Syres »

If you use Curves Wb (no doubt others as well) then the bit I'd be concerned with is:

Code: Select all

Pivy:                
because if Pivy isn't installed there will be a loss of some functionality. Easy to prove is it's installed by:

Code: Select all

import pivy
pivy.__version__
which in my case gives '0.6.5a0' but I'm on Linux so the LibPack could have a different/later version.
kisolre
Veteran
Posts: 4162
Joined: Wed Nov 21, 2018 1:13 pm

Re: PySide2 Python module not found.

Post by kisolre »

Syres wrote: Tue Jan 11, 2022 6:46 am Easy to prove is it's installed by:

Code: Select all

>>> import pivy
>>> pivy.__version__
'0.6.6'
and

Code: Select all

>>> import PySide2
>>> PySide2.__version__
'5.15.0'
But why is CMake showing that pivy and PySide2 errors??
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: PySide2 Python module not found.

Post by onekk »

PySide2 seems to be installed, maybe at some point some directory is not included, but other packages could include them.

Code: Select all

PySide2:             5.15.0 [C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/include/PySide2]
I haven't use cmake from some time, but there is no a way to set where it will search for libraries and pass the appropriate path, maybe:
C:/FC_Bld/Build/FreeCADLibs_12.5.4_x64_VC17/
A little search led me to this page:

https://cmake.org/cmake/help/latest/com ... irectories

It could be helpful?

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
Post Reply