[solved] CfdOF workbench not working anymore after upgrade to Freecad v0.19 Rev 24046 (git)

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
shaundasschaf
Posts: 7
Joined: Mon Dec 28, 2020 1:46 pm

[solved] CfdOF workbench not working anymore after upgrade to Freecad v0.19 Rev 24046 (git)

Post by shaundasschaf »

Upgraded freecad to v0.19 Rev. 24046 on a Debian 64 bit system yesterday.
Since that time CfdOF workbench is not working anymore for me.

When selecting preferences the following error shows up

18:23:28 Traceback (most recent call last):
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 120, in __init__
18:23:28 self.setDownloadURLs()
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 179, in setDownloadURLs
18:23:28 if self.testGetRuntime() == "MinGW":
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 170, in testGetRuntime
18:23:28 runtime = CfdTools.getFoamRuntime()
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdTools.py", line 387, in getFoamRuntime
18:23:28 installation_path = getFoamDir()
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdTools.py", line 383, in getFoamDir
18:23:28 return os.path.normpath(installation_path)
18:23:28 File "/usr/lib/python3.7/posixpath.py", line 340, in normpath
18:23:28 path = os.fspath(path)
18:23:28 TypeError: expected str, bytes or os.PathLike object, not NoneType
18:23:28 CfdPreferencePage is not a preference page[/i]

Selecting CfdOF in the menu brings an empty screen.
Re-installing the workbench showed no effect.

Anyone having the same issue ?

Kind Regards,
Christian

OS: Debian GNU/Linux 10 (buster) (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24046 (Git)
Build type: Unknown
Branch: master
Hash: 2b881cccad603718b5b314f4414cf608ed841505
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
Last edited by shaundasschaf on Tue Mar 02, 2021 9:39 pm, edited 1 time in total.
User avatar
oliveroxtoby
Posts: 840
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: CfdOF workbench not working anymore after upgrade to Freecad v0.19 Rev 24046 (git)

Post by oliveroxtoby »

shaundasschaf wrote: Sat Feb 27, 2021 5:28 pm Upgraded freecad to v0.19 Rev. 24046 on a Debian 64 bit system yesterday.
Since that time CfdOF workbench is not working anymore for me.

When selecting preferences the following error shows up

18:23:28 Traceback (most recent call last):
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 120, in __init__
18:23:28 self.setDownloadURLs()
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 179, in setDownloadURLs
18:23:28 if self.testGetRuntime() == "MinGW":
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 170, in testGetRuntime
18:23:28 runtime = CfdTools.getFoamRuntime()
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdTools.py", line 387, in getFoamRuntime
18:23:28 installation_path = getFoamDir()
18:23:28 File "/home/christian/.FreeCAD/Mod/CfdOF/CfdTools.py", line 383, in getFoamDir
18:23:28 return os.path.normpath(installation_path)
18:23:28 File "/usr/lib/python3.7/posixpath.py", line 340, in normpath
18:23:28 path = os.fspath(path)
18:23:28 TypeError: expected str, bytes or os.PathLike object, not NoneType
18:23:28 CfdPreferencePage is not a preference page[/i]

Selecting CfdOF in the menu brings an empty screen.
Re-installing the workbench showed no effect.

Anyone having the same issue ?

Kind Regards,
Christian

OS: Debian GNU/Linux 10 (buster) (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24046 (Git)
Build type: Unknown
Branch: master
Hash: 2b881cccad603718b5b314f4414cf608ed841505
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
I have pushed an attempted fix. Could you update your workbench and see if this resolves it?
shaundasschaf
Posts: 7
Joined: Mon Dec 28, 2020 1:46 pm

Re: CfdOF workbench not working anymore after upgrade to Freecad v0.19 Rev 24046 (git)

Post by shaundasschaf »

Issue resolved .

Thank's for your efforts.

Greetings from sunny Bavaria,
Christian
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: CfdOF workbench not working anymore after upgrade to Freecad v0.19 Rev 24046 (git)

Post by Kunda1 »

Please mark thread [Solved] by editing the title of the first post. Thank you
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply