[solved] manual installation of hisa/cfmesh fails

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

Post Reply
thschrader
Veteran
Posts: 3156
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

[solved] manual installation of hisa/cfmesh fails

Post by thschrader »

Hi,
just updated the cfdof workbench. When trying to update cfmesh/hisa with the
"Choose existing file..." option, I get this error:

Code: Select all

16:09:06  Traceback (most recent call last):
16:09:06    File "C:\Users\thomas.schrader\AppData\Roaming\FreeCAD\Mod\CfdOF\.\CfdOF\CfdPreferencePage.py", line 339, in pickCfMeshFile
16:09:06      f, filter = QtGui.QFileDialog().getOpenFileName(title='Choose cfMesh archive', filter="*.zip")
16:09:06  AttributeError: PySide2.QtWidgets.QFileDialog.getOpenFileName(): unsupported keyword 'title'
Freecad:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31058 (Git)
Build type: Release
Branch: master
Hash: e6c53d8642af36ce7d738ab6058b063ec58e0859
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: German/Germany (de_DE)
Installed mods: 
  * BIM 2021.12.0
  * CfdOF 1.20.3
  * Curves 0.5.8
  * Defeaturing 1.2.0
  * dodo
  * fasteners 0.4.4
  * Manipulator 1.4.9
  * Plot 2022.4.17
  * Reinforcement
  * WorkFeature
cfdof_preferences.JPG
cfdof_preferences.JPG (191.12 KiB) Viewed 1247 times
Last edited by thschrader on Thu Nov 24, 2022 4:04 pm, edited 1 time in total.
markrmau
Posts: 37
Joined: Fri Jan 03, 2020 4:03 am

Re: manual installation of hisa/cfmesh fails

Post by markrmau »

Does it work if line 339 of CfdPreferencePage.py is changed to:

f, filter = QtGui.QFileDialog().getOpenFileName(None, 'Choose cfMesh archive', '', "*.zip")

Same issue on lines 307, 318, 360 but with the different titles & filters

The file is located here:
%appdata%\FreeCAD\Mod\CfdOF\CfdOF


My FreeCad version doesn't require this file change, so the issue may be due to a Qt library change:

Python 3.8.10
Qt for Python (PySide) 5.15.0
Qt 5.15.2
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: manual installation of hisa/cfmesh fails

Post by oliveroxtoby »

thschrader wrote: Wed Nov 23, 2022 3:15 pm Hi,
just updated the cfdof workbench. When trying to update cfmesh/hisa with the
"Choose existing file..." option, I get this error:
Hopefully fixed now...
thschrader
Veteran
Posts: 3156
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: manual installation of hisa/cfmesh fails

Post by thschrader »

Works, installation in progress... Thanks.
manual_install.JPG
manual_install.JPG (35.46 KiB) Viewed 1110 times
thschrader
Veteran
Posts: 3156
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: manual installation of hisa/cfmesh fails

Post by thschrader »

oliveroxtoby wrote: Wed Nov 23, 2022 6:18 pm
thschrader wrote: Wed Nov 23, 2022 3:15 pm Hi,
just updated the cfdof workbench. When trying to update cfmesh/hisa with the
"Choose existing file..." option, I get this error:
Hopefully fixed now...
FYI:
cfmesh and hisa installation runs with no problems, mesher and solver now running.
Post Reply