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

Michael_P
Posts: 5
Joined: Wed Feb 21, 2018 9:52 pm

Installation problems

Postby Michael_P » Wed Feb 21, 2018 10:43 pm

Hi Oliver,
many thanks for the introduction to the CfDOF Workbench. They are very well done. I just finished the first one.
I just wanted to report a bug with the Gmsh function, when I saw that you posted a new commit a view hours earlier.
I just tried the new committ and finally the Gmsh function works!! Thank you very much!

I still have issues with the CFD workbench where the installation via the Addon manager gives me an error and there is an initiation error due to the `getmodulePath`in the InitGui.py. Could you assist me there as well?

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

Re: CfdOF Workbench Training Material

Postby oliveroxtoby » Thu Feb 22, 2018 3:43 pm

Michael_P wrote:
Wed Feb 21, 2018 10:43 pm
Hi Oliver,
many thanks for the introduction to the CfDOF Workbench. They are very well done. I just finished the first one.
I just wanted to report a bug with the Gmsh function, when I saw that you posted a new commit a view hours earlier.
I just tried the new committ and finally the Gmsh function works!! Thank you very much!

I still have issues with the CFD workbench where the installation via the Addon manager gives me an error and there is an initiation error due to the `getmodulePath`in the InitGui.py. Could you assist me there as well?

thanks,
Michael
Thank you!

I wasn't able to reproduce your issue with the Addon manager. Please could you provide more information as detailed in these guidelines I just posted?
Michael_P
Posts: 5
Joined: Wed Feb 21, 2018 9:52 pm

Re: CfdOF Workbench Training Material

Postby Michael_P » Sat Mar 10, 2018 3:21 pm

Hi,
here are the details for the installation on my laptop. I marked the sections with errors in bold.
I have installed CFD and CfDOF. However, CFD does not show.

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13312 (Git)
Build type: Release
Branch: master
Hash: f445ace40c6e9126d9e3512ca73c6b294c84b24e
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Austria (de_AT)


Run Gui init script
Init: Running FreeCADGuiInit.py start script...
Init: Searching modules...
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Sketcher... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\ReverseEngineering... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Show(InitGui.py not found)... ignore
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Image... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\Autoload... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Surface... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\PartDesign... done
Module: Part
Loading Part module... done
Loading Fem module... done
Loading GUI of Fem module... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\old_CfdOF... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Measure(InitGui.py not found)... ignore
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Ship... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Plot... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\MeshPart... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\OpenSCAD... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\Fem... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Spreadsheet... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Start... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Points... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Draft... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Test... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Import... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\Cfd... failed
----------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 120, in InitApplications
File "<string>", line 87, in <module>
File "<string>", line 34, in __init__
AttributeError: 'module' object has no attribute 'getModulePath'

----------------------------------------------------------------------------------------------------
During initialization the error 'module' object has no attribute 'getModulePath' occurred in C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\Cfd\InitGui.py
Please look into the log file for further information

Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\TechDraw... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Tux... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Complete... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Web... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Material... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Raytracing... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Mesh... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Path... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Part... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Arch... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Robot... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\CADExchanger... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\AddonManager... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Idf(InitGui.py not found)... ignore
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Inspection... done
Init: Initializing C:\Users\Michael\Downloads\FreeCAD_0.17.13312_x64_dev_win\FreeCAD_0.17.13312_x64_dev_win\Mod\Drawing... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\CfDOF... failed
----------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 120, in InitApplications
File "<string>", line 86, in <module>
KeyError: "'CfdOFWorkbench' already exists."

----------------------------------------------------------------------------------------------------
During initialization the error "'CfdOFWorkbench' already exists." occurred in C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\CfDOF\InitGui.py
Please look into the log file for further information

Init: Loading FreeCAD GUI
Init: Running FreeCADGuiInit.py start script... done
Init: Activating default workbench StartWorkbench
Loading GUI of Web module... done
Loading GUI of Start module... done
Loading Start module... done
not a freecad file: .STL
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
Init: Showing main window
Main window restored
Show main window
Toolbars restored
3Dconnexion device not attached.
Init: Entering event loop
Init: Processing command line files
Michael_P
Posts: 5
Joined: Wed Feb 21, 2018 9:52 pm

Re: CfdOF Workbench Training Material

Postby Michael_P » Sat Mar 10, 2018 3:27 pm

Hi,
I installed freecad and CFDOf also on my PC where I have 8 cores for parallel processing. I have the same issues with the init.gui but more problematic is the issue with an error while trying to download CFMesh.

Exception: Error downloading cfMesh: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

I have searched the internet but cannot figure out why I have a certificate issue. I can downlaid CFMesh manually from the website without issues.

Can you recommend a way to install CFMesh manually?

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13312 (Git)
Build type: Release
Branch: master
Hash: f445ace40c6e9126d9e3512ca73c6b294c84b24e
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)


Run Gui init script
Init: Running FreeCADGuiInit.py start script...
Init: Searching modules...
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Sketcher... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\ReverseEngineering... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Show(InitGui.py not found)... ignore
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Image... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Surface... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\PartDesign... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Measure(InitGui.py not found)... ignore
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Ship... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Plot... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\MeshPart... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\OpenSCAD... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Fem... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Spreadsheet... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Start... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Points... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Draft... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Test... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Import... done
Module: Part
Loading Part module... done
Loading Fem module... done
Loading GUI of Fem module... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\Cfd... failed
----------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 120, in InitApplications
File "<string>", line 87, in <module>
File "<string>", line 34, in __init__
AttributeError: 'module' object has no attribute 'getModulePath'
----------------------------------------------------------------------------------------------------
During initialization the error 'module' object has no attribute 'getModulePath' occurred in C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\Cfd\InitGui.py
Please look into the log file for further information
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\TechDraw... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Tux... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Complete... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Web... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Material... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Raytracing... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Mesh... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Path... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Part... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Arch... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Robot... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\CADExchanger... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\AddonManager... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Idf(InitGui.py not found)... ignore
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Inspection... done
Init: Initializing C:\Programs\FreeCAD_0.17.13312_x64_dev_win\Mod\Drawing... done
Init: Initializing C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\CfdOF... done
Init: Loading FreeCAD GUI
Init: Running FreeCADGuiInit.py start script... done
Init: Activating default workbench StartWorkbench
Loading GUI of Web module... done
Loading GUI of Start module... done
Loading Start module... done
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
QNetworkAccessFileBackendFactory: URL has no schema set, use file:// for files
Init: Showing main window
Main window restored
Show main window
Toolbars restored
3Dconnexion device not attached.
Init: Entering event loop
Init: Processing command line files
Group icon for preferences-cfd is not of size 96x96
Running echo $WM_PROJECT_USER_DIR
Raw command: [u'C:/Programs/FreeCAD_0.17.13312_x64_dev_win/bin\\python.exe', '-u', 'C:\\Users\\Michael\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\PROGRA~1\\BLUECF~1\\OPENFO~1.X\\..\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo $WM_PROJECT_USER_DIR']
Setting environment for OpenFOAM 4.x mingw-w64 Double Precision (of4-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-of4
Traceback (most recent call last):
File "C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 205, in run
self.downloadCfMesh()
File "C:\Users\Michael\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 245, in downloadCfMesh
raise Exception("Error downloading cfMesh: {}".format(str(ex)))
Exception: Error downloading cfMesh: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)


thanks,
Michael
chrisb
Posts: 15808
Joined: Tue Mar 17, 2015 9:14 am

Re: CfdOF Workbench Training Material

Postby chrisb » Sat Mar 10, 2018 9:47 pm

Hi Michael, can you please use the code tags? You may edit your posts to make them more readable.
User avatar
oliveroxtoby
Posts: 256
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: CfdOF Workbench Training Material

Postby oliveroxtoby » Sun Mar 11, 2018 4:10 pm

Michael_P wrote:
Sat Mar 10, 2018 3:21 pm
Hi,
here are the details for the installation on my laptop. I marked the sections with errors in bold.
I have installed CFD and CfDOF. However, CFD does not show.
The error relating to CfdOF appears to be because you have two directories, old_CfdOF and CfdOF, both of which FreeCAD is trying to load and they are colliding. Only the first is loaded (old_CfdOF). You would need to move this to another directory as it will try to load every module it finds in the Mod directory.

The error relating to CFD is possibly a bug in that workbench. I am not involved there so cannot comment.
User avatar
oliveroxtoby
Posts: 256
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: CfdOF Workbench Training Material

Postby oliveroxtoby » Sun Mar 11, 2018 4:26 pm

Michael_P wrote:
Sat Mar 10, 2018 3:27 pm
Hi,
I installed freecad and CFDOf also on my PC where I have 8 cores for parallel processing. I have the same issues with the init.gui but more problematic is the issue with an error while trying to download CFMesh.

Exception: Error downloading cfMesh: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)

I have searched the internet but cannot figure out why I have a certificate issue. I can downlaid CFMesh manually from the website without issues.
Puzzling. Are you behind a proxy server by any chance?
Michael_P wrote:
Sat Mar 10, 2018 3:27 pm

Can you recommend a way to install CFMesh manually?
It would be nice to add a way to pick the downloaded file yourself, but for now the following should hopefully work:
  • Save the downloaded file cfMesh-v1.1.2.tar.gz to C:\Program Files\blueCFD-Core-2016\ofuser-of4
  • Run 'BlueCFD core terminal' from the start menu
  • cd blueCFD/ofuser-of4
  • tar -xzf cfMesh-v1.1.2.tar.gz
  • ./buildCfMeshOnBlueCFD.sh
Michael_P
Posts: 5
Joined: Wed Feb 21, 2018 9:52 pm

Re: CfdOF Workbench Training Material

Postby Michael_P » Sun Mar 11, 2018 9:52 pm

Hi,
thanks for the help.
However I get stuck at "tar -xzf cfMesh-v1.1.2.tar.gz"
The file from Github is a tgz. Even after renaming and performing "tar -xzf cfMesh-v1.1.2.tar.gz" I get

tar (child): cfMesh-v1.1.2.tar.gz: Cannot open:
No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now.

I am probably just to unskilled to do it right but I am giving up for the moment.

A wider internet search brought me to this forum "https://stackoverflow.com/questions/454 ... ify-failed" with some suggestions to overcome certification issues
I am not a programmer, hence I am not much of a help here.
thanks,
Michael
Michael_P
Posts: 5
Joined: Wed Feb 21, 2018 9:52 pm

Re: CfdOF Workbench Training Material

Postby Michael_P » Sun Mar 18, 2018 6:11 pm

Hi,
still at installing cfMesh.
I finally was able to unzip the file.
However, now I am stuck at ./buildCfMeshOnBlueCFD.sh
I copied the file into the ofuser.of4 folder but I get syntax error due to line 7.

I also tried Allwmake (./Allwmake) but without success.
Could you please enlighten me what I should do?

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

Re: CfdOF Workbench Training Material

Postby oliveroxtoby » Mon Mar 19, 2018 5:36 am

Michael_P wrote:
Sun Mar 18, 2018 6:11 pm
Hi,
still at installing cfMesh.
I finally was able to unzip the file.
However, now I am stuck at ./buildCfMeshOnBlueCFD.sh
I copied the file into the ofuser.of4 folder but I get syntax error due to line 7.
Could you paste the actual output that you get when you execute ./buildCfMeshOnBlueCFD.sh ?