Python Issue

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
Octavarius
Posts: 7
Joined: Fri Nov 05, 2021 1:54 pm

Python Issue

Post by Octavarius »

Hello FC Team,

when trying to mesh a geometry, I'm getting the following message:
22:17:44 Part to mesh:
Name: Body, Label: Body, ShapeType: Solid
22:17:44 CharacteristicLengthMax: 1.0
22:17:44 Traceback (most recent call last):
22:17:44 File "C:\Users\fg\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdMesh.py", line 207, in writeMesh
22:17:44 FreeCADGui.doCommand("cart_mesh.writeMesh()")
22:17:44 File "<string>", line 1, in <module>
22:17:44 File "C:\Users\fg\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdMeshTools.py", line 77, in writeMesh
22:17:44 self.setupMeshCaseDir()
22:17:44 File "C:\Users\fg\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdMeshTools.py", line 205, in setupMeshCaseDir
22:17:44 os.makedirs(self.meshCaseDir)
22:17:44 File "C:\FreeCAD\bin\lib\os.py", line 213, in makedirs
22:17:44 makedirs(head, exist_ok=exist_ok)
22:17:44 File "C:\FreeCAD\bin\lib\os.py", line 213, in makedirs
22:17:44 makedirs(head, exist_ok=exist_ok)
22:17:44 File "C:\FreeCAD\bin\lib\os.py", line 213, in makedirs
22:17:44 makedirs(head, exist_ok=exist_ok)
22:17:44 [Previous line repeated 6 more times]
22:17:44 File "C:\FreeCAD\bin\lib\os.py", line 223, in makedirs
22:17:44 mkdir(name, mode)
22:17:44 OSError: [WinError 123] La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte: '"C:'

Details:
OS: Win 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.27. Also tried on 0.20 and getting a similar issue.
Build type: Release
Python version: 3.8.6150
Locale: French

I'm assuming this is a Python issue. A similar message is showing up when I try to update any of the add-ons, although they are installed there is no dependency issue.

Many thanks for any help !
Post Reply