Page 3 of 3

Re: cfMesh install problem

Posted: Tue May 07, 2019 8:10 pm
by ChristianTietz
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
>

Re: cfMesh install problem

Posted: Tue May 07, 2019 9:37 pm
by chrisb
Hi Christian, welcome to the forum.
please edit your post and put the output in code tags </> it is easier to read.

Re: cfMesh install problem

Posted: Wed May 08, 2019 10:50 am
by oliveroxtoby
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

Re: cfMesh install problem

Posted: Wed May 08, 2019 7:25 pm
by ChristianTietz
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!

Re: cfMesh install problem

Posted: Mon Jun 29, 2020 10:56 pm
by cryospin
Dear collegues,

I am trying to install CDF using FreeCAD 0.19 Preferences panel. The problem related to the cfMesh installation.

I see following message in the report window:
Running echo $WM_PROJECT_USER_DIR
Raw command: ['D:/Program files/FreeCAD/bin\\python.exe', '-u', 'C:\\Users\\cryos\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'D:/Program files/blueCFD-Core-2017/OpenFOAM-5.x\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo $WM_PROJECT_USER_DIR']
mount: too many arguments
Usage: mount [OPTION] [<win32path> <posixpath>]
mount -a
mount <posixpath>

Display information about mounted filesystems, or mount a filesystem

-a, --all mount all filesystems mentioned in fstab
-c, --change-cygdrive-prefix change the cygdrive path prefix to <posixpath>
-f, --force force mount, don't warn about missing mount
point directories
-h, --help output usage information and exit
-m, --mount-entries write fstab entries to replicate mount points
and cygdrive prefixes
-o, --options X[,X...] specify mount options
-p, --show-cygdrive-prefix show user and/or system cygdrive path prefix
-V, --version output version information and exit

Valid options are: acl,auto,binary,bind,cygexec,dos,exec,ihash,noacl,nosuid,notexec,nouser,override,posix=0,posix=1,sparse,text,user

mount: too many arguments
Usage: mount [OPTION] [<win32path> <posixpath>]
mount -a
mount <posixpath>

Display information about mounted filesystems, or mount a filesystem

-a, --all mount all filesystems mentioned in fstab
-c, --change-cygdrive-prefix change the cygdrive path prefix to <posixpath>
-f, --force force mount, don't warn about missing mount
point directories
-h, --help output usage information and exit
-m, --mount-entries write fstab entries to replicate mount points
and cygdrive prefixes
-o, --options X[,X...] specify mount options
-p, --show-cygdrive-prefix show user and/or system cygdrive path prefix
-V, --version output version information and exit

Valid options are: acl,auto,binary,bind,cygexec,dos,exec,ihash,noacl,nosuid,notexec,nouser,override,posix=0,posix=1,sparse,text,user

---------- Setting up OpenFOAM variables for new build ----------
-- Current MPI chosen for parallel operations: MSMPI71
Choose one option for selecting the new build architecture:
1 - OpenFOAM 5.x mingw-w64 Double Precision (of5-64)
2 - OpenFOAM 5.x mingw-w64 Single Precision (of5-64S)
3 - OpenFOAM 5.x mingw-w32 Double Precision (of5-32)
4 - OpenFOAM 5.x mingw-w32 Single Precision (of5-32S)
Choose one of the numbers 1 to 4 (any other for none) then press Enter:
Terminating a pending install task
I couldn't choose any option due to the installation window.

Do you have any suggect?

Thank you in advance.
Sergey