Everything seems to go well, however, when I try to input a CFD boundary condition an error occurs.
Code: Select all
Traceback (most recent call last):
File "/home/vocx/.FreeCAD/Mod/CfdOF/_ViewProviderCfdFluidBoundary.py", line 94, in setEdit
import _TaskPanelCfdFluidBoundary
File "/home/vocx/.FreeCAD/Mod/CfdOF/_TaskPanelCfdFluidBoundary.py", line 37, in <module>
import CfdFaceSelectWidget
File "/home/vocx/.FreeCAD/Mod/CfdOF/CfdFaceSelectWidget.py", line 47, in <module>
from PySide import QtUiTools
File "/usr/share/freecad/Ext/PySide/QtUiTools.py", line 1, in <module>
from PySide2.QtUiTools import *
<class 'ModuleNotFoundError'>: No module named 'PySide2.QtUiTools'
Code: Select all
sudo apt install python3-pyside2.qtuitools
Code: Select all
Traceback (most recent call last):
File "/home/vocx/.FreeCAD/Mod/CfdOF/_ViewProviderCfdFluidBoundary.py", line 94, in setEdit
import _TaskPanelCfdFluidBoundary
File "/home/vocx/.FreeCAD/Mod/CfdOF/_TaskPanelCfdFluidBoundary.py", line 37, in <module>
import CfdFaceSelectWidget
File "/home/vocx/.FreeCAD/Mod/CfdOF/CfdFaceSelectWidget.py", line 47, in <module>
from PySide import QtUiTools
File "/usr/share/freecad/Ext/PySide/QtUiTools.py", line 1, in <module>
from PySide2.QtUiTools import *
<class 'ImportError'>: could not import module 'PySide2.QtXml'
Code: Select all
sudo apt install python3-pyside2.qtxml
I have FreeCAD installed from the freecad-stable repository, but it seems the two packages mentioned aren't required dependencies, so they aren't automatically pulled by FreeCAD. Either the freecad package should be updated with this information, or CfdOF should check these two packages as dependencies together with PySide2.
Code: Select all
apt-cache depends freecad-python3
freecad-python3
Depends: freecad-common
Depends: freecad-runtime
Depends: python3-matplotlib
Depends: python3-pivy
Depends: python3-pyside2.qtcore
Depends: python3-pyside2.qtgui
Depends: python3-pyside2.qtsvg
Depends: python3-pyside2.qtwidgets
Depends: python3-pyside2uic
Depends: libfreecad-python3-0.18
Depends: libfreecad-python3-0.18
Depends: libc6
Depends: libgcc1
Depends: libpython3.6
Depends: libqt5core5a
Depends: libqt5widgets5
Depends: libstdc++6
Conflicts: <libfreecad-python2-0.17>
Breaks: <libfreecad-python2-0.17>
Replaces: <libfreecad-python2-0.17>
Code: Select all
OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)