cfMesh install problem

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

ChristianTietz
Posts: 2
Joined: Tue May 07, 2019 7:16 pm

Re: cfMesh install problem

Post by ChristianTietz » Tue May 07, 2019 8:10 pm

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

Hi there
I installed FreeCAD first. Since installing blueCFD from FreeCAD menu did not seem to work, did it manually (outside the usual programs folder as recommended), GMSH also. Then used menu for cfMesh and HiSA, they download properly, but does not compile sucessfully. The dependency checker does not return anything in 15 min.
Following is the output of the report view window.
Thanx.

<
Group icon for preferences-cfd is not of size 96x96
Running echo $WM_PROJECT_USER_DIR
Raw command: ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\ct\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:/blueCFD/BLUECF~1/OPENFO~1.X\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo $WM_PROJECT_USER_DIR']
Setting environment for OpenFOAM 5.x mingw-w64 Double Precision (of5-64), using MSMPI71 - please wait...
Environment is now ready. Notes:
- You can change between installed versions by running: ofmenu
- You can change to other predefined versions by running: ofmenuNew
/home/ofuser/blueCFD/ofuser-of5
Running { mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp_f73mfcq"; ); }
Raw command: ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\ct\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:/blueCFD/BLUECF~1/OPENFO~1.X\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', '{ mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp_f73mfcq"; ); }']
Traceback (most recent call last):
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 299, in run
self.downloadCfMesh()
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 359, in downloadCfMesh
format(CFMESH_FILE_BASE, CfdTools.translatePath(filename)))
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 571, in runFoamCommand
raise subprocess.CalledProcessError(exit_code, cmdline)
subprocess.CalledProcessError: Command '{ mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp_f73mfcq"; ); }' returned non-zero exit status 2.
Running echo $WM_PROJECT_USER_DIR
Raw command: ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\ct\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:/blueCFD/BLUECF~1/OPENFO~1.X\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo $WM_PROJECT_USER_DIR']
Setting environment for OpenFOAM 5.x mingw-w64 Double Precision (of5-64), using MSMPI71 - please wait...
Environment is now ready. Notes:
- You can change between installed versions by running: ofmenu
- You can change to other predefined versions by running: ofmenuNew
/home/ofuser/blueCFD/ofuser-of5
Running { mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r hisa-master; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp1oez6ti_"; ); }
Raw command: ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\ct\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:/blueCFD/BLUECF~1/OPENFO~1.X\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', '{ mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r hisa-master; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp1oez6ti_"; ); }']
Traceback (most recent call last):
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 301, in run
self.downloadHisa()
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 380, in downloadHisa
format(HISA_FILE_BASE, CfdTools.translatePath(filename)))
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 571, in runFoamCommand
raise subprocess.CalledProcessError(exit_code, cmdline)
subprocess.CalledProcessError: Command '{ mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r hisa-master; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp1oez6ti_"; ); }' returned non-zero exit status 2.
Help file at C:/Program Files/FreeCAD 0.18/doc/freecad.qhc
Hide main window
Show main window
>
Last edited by ChristianTietz on Wed May 08, 2019 4:52 pm, edited 1 time in total.

chrisb
Posts: 16887
Joined: Tue Mar 17, 2015 9:14 am

Re: cfMesh install problem

Post by chrisb » Tue May 07, 2019 9:37 pm

Hi Christian, welcome to the forum.
please edit your post and put the output in code tags </> it is easier to read.

User avatar
oliveroxtoby
Posts: 279
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: cfMesh install problem

Post by oliveroxtoby » Wed May 08, 2019 10:50 am

ChristianTietz wrote:
Tue May 07, 2019 8:10 pm
Hi there
I installed FreeCAD first. Since installing blueCFD from FreeCAD menu did not seem to work, did it manually (outside the usual programs folder as recommended), GMSH also. Then used menu for cfMesh and HiSA, they download properly, but does not compile sucessfully. The dependency checker does not return anything in 15 min.
Following is the output of the report view window.
Thanx.

Group icon for preferences-cfd is not of size 96x96
Running echo $WM_PROJECT_USER_DIR
Raw command: ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\ct\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:/blueCFD/BLUECF~1/OPENFO~1.X\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo $WM_PROJECT_USER_DIR']
Setting environment for OpenFOAM 5.x mingw-w64 Double Precision (of5-64), using MSMPI71 - please wait...
Environment is now ready. Notes:
- You can change between installed versions by running: ofmenu
- You can change to other predefined versions by running: ofmenuNew
/home/ofuser/blueCFD/ofuser-of5
Running { mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp_f73mfcq"; ); }
Raw command: ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\ct\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:/blueCFD/BLUECF~1/OPENFO~1.X\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', '{ mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp_f73mfcq"; ); }']
Traceback (most recent call last):
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 299, in run
self.downloadCfMesh()
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 359, in downloadCfMesh
format(CFMESH_FILE_BASE, CfdTools.translatePath(filename)))
File "C:\Users\ct\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 571, in runFoamCommand
raise subprocess.CalledProcessError(exit_code, cmdline)
subprocess.CalledProcessError: Command '{ mkdir -p "$WM_PROJECT_USER_DIR" && cd "$WM_PROJECT_USER_DIR" && ( rm -r cfmesh-cfdof; unzip -o "/c/Users/ct/AppData/Local/Temp/tmp_f73mfcq"; ); }' returned non-zero exit status 2.
Unfortunately I am unable to reproduce any of these problems on my Windows 10 system, so I can't be much help. It looks like it might still be a permission problem. Perhaps try running FreeCAD as Administrator and/or installing blueCFD in your user folder instead of root of C:

To troubleshoot you could open the blueCFD core terminal from the start menu and enter the following commands:
mkdir -p "$WM_PROJECT_USER_DIR"
cd "$WM_PROJECT_USER_DIR"
rm -r cfmesh-cfdof
unzip -o "/c/Users/ct/AppData/Local/Temp/tmp_f73mfcq"
(except for the last one, replace the temporary file name with the path to the cfMesh .zip file that you downloaded manually from https://sourceforge.net/projects/cfmesh ... p/download and saved in your computer, e.g. if you save it in your Downloads directory, change this line to
unzip -o "/c/Users/ct/Downloads/cfmesh-cfdof.zip"

See if any of these commands give an error (one of them should) and this would narrow down the problem. It would be appreciated if you could report your progress for others.

Thanks

ChristianTietz
Posts: 2
Joined: Tue May 07, 2019 7:16 pm

Re: cfMesh install problem

Post by ChristianTietz » Wed May 08, 2019 7:25 pm

Just don't uncheck anything while installing.
Although called "additional tasks", they seem to be mandatory. (all?)
Restart after installing blueCFD, and cfMesh and HiSA will installable also then, even with <finish install with error 2> in my case.
You coders do incredible work and provide us users thrilling opportunities!

Post Reply