Installation problems

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

thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Installation problems

Post by thschrader »

oliveroxtoby wrote: Sun Jul 22, 2018 8:40 pm Thanks. Should be sorted now.
gmsh works. Thanks for fast fixing.
brunofporto
Posts: 6
Joined: Mon Jul 27, 2020 9:26 am

Re: Installation problems

Post by brunofporto »

Having the same issue.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)

Downloading cfMesh, please wait...
cfMesh downloaded to C:\Users\Omnidea\AppData\Local\Temp\tmpg7uns5y1.zip
Command 'echo $WM_PROJECT_USER_DIR' returned non-zero exit status 1.
Download unsuccessful

Downloading HiSA, please wait...
HiSA downloaded to C:\Users\Omnidea\AppData\Local\Temp\tmpyewu_xpc.zip
Command 'echo $WM_PROJECT_USER_DIR' returned non-zero exit status 1.
Download unsuccessful

Dowés not matter if downloading from URL or local file. I did not try to reload windows at Safe Mode.
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problems

Post by oliveroxtoby »

brunofporto wrote: Mon Jul 27, 2020 9:39 am Having the same issue.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)

Downloading cfMesh, please wait...
cfMesh downloaded to C:\Users\Omnidea\AppData\Local\Temp\tmpg7uns5y1.zip
Command 'echo $WM_PROJECT_USER_DIR' returned non-zero exit status 1.
Download unsuccessful

Downloading HiSA, please wait...
HiSA downloaded to C:\Users\Omnidea\AppData\Local\Temp\tmpyewu_xpc.zip
Command 'echo $WM_PROJECT_USER_DIR' returned non-zero exit status 1.
Download unsuccessful

Dowés not matter if downloading from URL or local file. I did not try to reload windows at Safe Mode.
Please provide all the information requested in this post before reporting problems with CfdOF.
brunofporto
Posts: 6
Joined: Mon Jul 27, 2020 9:26 am

Re: Installation problems

Post by brunofporto »

I did follow the installation instructions from the CFDOF readme and that is what happens when I get to the step of installing cfMesh and HiSA from the Preferences window.


(edit) ps.: just found what you mean, I'll try to gather the information that is missing and add.
brunofporto
Posts: 6
Joined: Mon Jul 27, 2020 9:26 am

Re: Installation problems

Post by brunofporto »

Error:
Aflter followinf README.md and click install cfMEsh or Install HiSA, from URL or local file the output shows:
Downloading cfMesh, please wait...
cfMesh downloaded to C:\Users\Omnidea\AppData\Local\Temp\tmpm3wal8s5.zip
Command 'echo $WM_PROJECT_USER_DIR' returned non-zero exit status 1.
Download unsuccessful
Report View:
Running echo $WM_PROJECT_USER_DIR
Raw command: ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\Omnidea\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'powershell.exe', 'docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c \'echo `$WM_PROJECT_USER_DIR\' -l ofuser"']
Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Machine "default" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Error response from daemon: No such container: of_2006
Error: failed to start containers: of_2006
Error: No such container: of_2006
Traceback (most recent call last):
File "C:\Users\Omnidea\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 350, in run
self.downloadCfMesh()
File "C:\Users\Omnidea\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 413, in downloadCfMesh
self.user_dir = CfdTools.runFoamCommand("echo $WM_PROJECT_USER_DIR").rstrip().split('\n')[-1]
File "C:\Users\Omnidea\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 635, in runFoamCommand
raise subprocess.CalledProcessError(exit_code, cmdline)
subprocess.CalledProcessError: Command 'echo $WM_PROJECT_USER_DIR' returned non-zero exit status 1.
Group icon for preferences-cfdof 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\\Omnidea\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'powershell.exe', 'docker-machine.exe start default; docker-machine.exe env --shell powershell default | Invoke-Expression; docker start of_2006; docker exec --privileged of_2006 bash -c "su -c \'echo `$WM_PROJECT_USER_DIR\' -l ofuser"']
Starting "default"...
Machine "default" is already running.
Error response from daemon: No such container: of_2006
Error: failed to start containers: of_2006
Error: No such container: of_2006
Traceback (most recent call last):
File "C:\Users\Omnidea\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 350, in run
self.downloadCfMesh()
File "C:\Users\Omnidea\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 413, in downloadCfMesh
self.user_dir = CfdTools.runFoamCommand("echo $WM_PROJECT_USER_DIR").rstrip().split('\n')[-1]
File "C:\Users\Omnidea\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 635, in runFoamCommand
raise subprocess.CalledProcessError(exit_code, cmdline)
subprocess.CalledProcessError: Command 'echo $WM_PROJECT_USER_DIR' returned non-zero exit status 1.
Python Console: Nothing shows.

About FreeCAD:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problems

Post by oliveroxtoby »

brunofporto wrote: Mon Jul 27, 2020 11:32 am Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Error response from daemon: No such container: of_2006
Error: failed to start containers: of_2006
Error: No such container: of_2006
It looks like a problem with the OpenFOAM installation.
oliveroxtoby wrote: Tue Jan 15, 2019 8:51 pm [*] Please ensure that OpenFOAM is correctly installed before reporting an issue with CfdOF. In Windows, CfdOF provides an installation link to the ESI-OpenCFD Docker package for convenience. However, any issues with this installation are outside the control of the CfdOF workbench. Please follow the troubleshooting advice at the OpenFOAM installation page and ensure you are able to run the tutorial case mentioned there before you report an issue with CfdOF. While we have changed the default installer to the ESI-OpenCFD Docker image in Windows, BlueCFD-Core is still supported by CfdOF and can be used as a fallback in case of problems with the Docker image.
A few people seem to be experiencing this so any feedback on your findings would be appreciated.
brunofporto
Posts: 6
Joined: Mon Jul 27, 2020 9:26 am

Re: Installation problems

Post by brunofporto »

oliveroxtoby wrote: Mon Jul 27, 2020 11:53 am A few people seem to be experiencing this so any feedback on your findings would be appreciated.
Thanks

I downloaded from the link inside preferences, but installed OpenFoam directly from the downloaded link with FreeCAD closed. Then I selected the installation folder manually.

I'll uninstall it and try again directly from CFDOF preferences interface inside FreeCAD. Anything I could do to have more information to help or only the Report view and Python console is enough?
brunofporto
Posts: 6
Joined: Mon Jul 27, 2020 9:26 am

Re: Installation problems

Post by brunofporto »

During installation directly from FreeCAD interface, during the powershell.exe part, this message appears in red. The same message showed during the past installation too:
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of Bypass. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
information please see "Get-Help Set-ExecutionPolicy".
At C:\Program Files (x86)\ESI\OpenFOAM\v2006\Windows\Scripts\of_install_image.ps1:34 char:1
+ Set-ExecutionPolicy Unrestricted -Scope CurrentUser
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
+ FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
The instalation finished without warnings and the output from Preferences shows only:
Downloading OpenFOAM, please wait...
OpenFOAM downloaded to C:\Users\Omnidea\AppData\Local\Temp\tmp5xv5hb7m.exe
OpenFOAM installer launched - please complete the installation
NB: OF_Env_Create desktop shortcut must be run after installation
After that I restarted FreeCAD. Tried to install cfMesh and had the same error, same messages from previus Report.
User avatar
oliveroxtoby
Posts: 810
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problems

Post by oliveroxtoby »

brunofporto wrote: Mon Jul 27, 2020 1:38 pm During installation directly from FreeCAD interface, during the powershell.exe part, this message appears in red. The same message showed during the past installation too:
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of Bypass. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
information please see "Get-Help Set-ExecutionPolicy".
At C:\Program Files (x86)\ESI\OpenFOAM\v2006\Windows\Scripts\of_install_image.ps1:34 char:1
+ Set-ExecutionPolicy Unrestricted -Scope CurrentUser
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
+ FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPolicyCommand
There seems to be some permissions issue. This is probably an issue with the OpenFOAM installation and nothing to do with FreeCAD or CfdOF. What we need is for someone to debug this because I am not able to reproduce this problem on my machine. What I was asking is if you can please go through the OpenFOAM installation and testing totally separate from CfdOF and get that working before you try CfdOF. If you could walk through the troubleshooting described at https://www.openfoam.com/download/insta ... indows.php that would be great. Please check if you can run the tutorial case mentinned there before you even try CfdOF.
brunofporto
Posts: 6
Joined: Mon Jul 27, 2020 9:26 am

Re: Installation problems

Post by brunofporto »

Thank you. Will do ASAP. Any special way or tip to register the information in order to be useful to you here?
Post Reply