Error installing cfMesh from prefs

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

alexbhandari
Posts: 15
Joined: Wed Apr 29, 2020 4:33 pm

Error installing cfMesh from prefs

Post by alexbhandari »

Downloading cfMesh, please wait...
Error downloading cfMesh:
Download unsuccessful

Report below (username replaced with <username> FYI)

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1026, in _send_output
    self.send(msg)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 964, in send
    self.connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1392, in connect
    super().connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 388, in download
    url, suffix=suffix, reporthook=self.downloadStatus, context=context)
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 364, in downloadFile
    with closing(urlrequest.urlopen(url, context=context)) as response:  # For Python < 3.3 backward compatibility
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 526, in open
    response = self._open(req, data)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 544, in _open
    '_open', req)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 350, in run
    self.downloadCfMesh()
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 410, in downloadCfMesh
    filename = self.download(self.cfmesh_url, CFMESH_FILE_EXT, "cfMesh")
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 390, in download
    raise Exception("Error downloading {}: {}".format(name, str(ex)))
Exception: Error downloading cfMesh: <urlopen error [Errno 11001] getaddrinfo failed>
alexbhandari
Posts: 15
Joined: Wed Apr 29, 2020 4:33 pm

Re: Error installing cfMesh from prefs

Post by alexbhandari »

Same with HiSA

Downloading HiSA, please wait...
Error downloading HiSA:
Download unsuccessful

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1026, in _send_output
    self.send(msg)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 964, in send
    self.connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1392, in connect
    super().connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 388, in download
    url, suffix=suffix, reporthook=self.downloadStatus, context=context)
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 364, in downloadFile
    with closing(urlrequest.urlopen(url, context=context)) as response:  # For Python < 3.3 backward compatibility
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 526, in open
    response = self._open(req, data)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 544, in _open
    '_open', req)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 350, in run
    self.downloadCfMesh()
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 410, in downloadCfMesh
    filename = self.download(self.cfmesh_url, CFMESH_FILE_EXT, "cfMesh")
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 390, in download
    raise Exception("Error downloading {}: {}".format(name, str(ex)))
Exception: Error downloading cfMesh: <urlopen error [Errno 11001] getaddrinfo failed>
Traceback (most recent call last):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1026, in _send_output
    self.send(msg)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 964, in send
    self.connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1392, in connect
    super().connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 388, in download
    url, suffix=suffix, reporthook=self.downloadStatus, context=context)
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 364, in downloadFile
    with closing(urlrequest.urlopen(url, context=context)) as response:  # For Python < 3.3 backward compatibility
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 526, in open
    response = self._open(req, data)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 544, in _open
    '_open', req)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 352, in run
    self.downloadHisa()
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 432, in downloadHisa
    filename = self.download(self.hisa_url, HISA_FILE_EXT, "HiSA")
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 390, in download
    raise Exception("Error downloading {}: {}".format(name, str(ex)))
Exception: Error downloading HiSA: <urlopen error [Errno 11001] getaddrinfo failed>

alexbhandari
Posts: 15
Joined: Wed Apr 29, 2020 4:33 pm

Re: Error installing cfMesh from prefs

Post by alexbhandari »

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

Re: Error installing cfMesh from prefs

Post by chrisb »

It is better to include the FreeCAD info directly. It doesn't cost much compared to useless images and the helpers see the important parts at a glance.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
alexbhandari
Posts: 15
Joined: Wed Apr 29, 2020 4:33 pm

Re: Error installing cfMesh from prefs

Post by alexbhandari »

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/UnitedStates (en_US)
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Error installing cfMesh from prefs

Post by oliveroxtoby »

alexbhandari wrote: Sat Jul 25, 2020 4:04 am Downloading cfMesh, please wait...
Error downloading cfMesh:
Download unsuccessful

Report below (username replaced with <username> FYI)

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1026, in _send_output
    self.send(msg)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 964, in send
    self.connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 1392, in connect
    super().connect()
  File "C:\Program Files\FreeCAD 0.18\bin\lib\http\client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "C:\Program Files\FreeCAD 0.18\bin\lib\socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 388, in download
    url, suffix=suffix, reporthook=self.downloadStatus, context=context)
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 364, in downloadFile
    with closing(urlrequest.urlopen(url, context=context)) as response:  # For Python < 3.3 backward compatibility
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 526, in open
    response = self._open(req, data)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 544, in _open
    '_open', req)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 504, in _call_chain
    result = func(*args)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "C:\Program Files\FreeCAD 0.18\bin\lib\urllib\request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 350, in run
    self.downloadCfMesh()
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 410, in downloadCfMesh
    filename = self.download(self.cfmesh_url, CFMESH_FILE_EXT, "cfMesh")
  File "C:\Users\<username>\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 390, in download
    raise Exception("Error downloading {}: {}".format(name, str(ex)))
Exception: Error downloading cfMesh: <urlopen error [Errno 11001] getaddrinfo failed>
Probably the same cause as your other issue. Please see the FAQ here to make sure your OpenFOAM installation is working and try again once you have verified you can run the tutorial case mentioned there. If you can't get the ESI installation to work for some reason, BlueCFD is also still supported as an OpenFOAM installation under Windows.
alexbhandari
Posts: 15
Joined: Wed Apr 29, 2020 4:33 pm

Re: Error installing cfMesh from prefs

Post by alexbhandari »

Hi Oliver,

Thanks for the input. I have narrowed down the issues with openfoam docker to the corporate permissions on my laptop (it seems I may be able to make docker work as they have an exception for docker but not for docker toolkit - which is what openfoam was installing) and so have switched to the bluecfd approach.

For blue CFD I have it installed and can launch the terminal and can run in the terminal

echo $WM_PROJECT_VERSION
5.x

but when I run the dependency checker I get the following

Code: Select all

Checking CFD workbench dependencies...
Checking FreeCAD version
Checking for OpenFOAM:
Running  echo $WM_PROJECT_VERSION
Raw command:  ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\<username>\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\blueCFD-Core-2017\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-vblueCFD-Core-2017/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; echo $WM_PROJECT_VERSION']
Setting environment for OpenFOAM 5.x mingw-w64 Double Precision (of5-64), using MSMPI71 - please wait...

    Your "mingw_w64" operating system is not supported by the modifications
    made to OpenFOAM. For further assistance, please report at:
        https://github.com/blueCFD/Core/issues

which: no gcc.exe in (/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy:)
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
       cygpath [-c HANDLE] 
       cygpath [-ADHOPSW] 
       cygpath [-F ID] 

Convert Unix and Windows format paths, or output system path information

Output type options:

  -d, --dos             print DOS (short) form of NAMEs (C:\PROGRA~1\)
  -m, --mixed           like --windows, but with regular slashes (C:/WINNT)
  -M, --mode            report on mode of file (binmode or textmode)
  -u, --unix            (default) print Unix form of NAMEs (/cygdrive/c/winnt)
  -w, --windows         print Windows form of NAMEs (C:\WINNT)
  -t, --type TYPE       print TYPE form: 'dos', 'mixed', 'unix', or 'windows'

Path conversion options:

  -a, --absolute        output absolute path
  -l, --long-name       print Windows long form of NAMEs (with -w, -m only)
  -p, --path            NAME is a PATH list (i.e., '/bin:/usr/bin')
  -U, --proc-cygdrive   Emit /proc/cygdrive path instead of cygdrive prefix
                        when converting Windows path to UNIX path.
  -s, --short-name      print DOS (short) form of NAMEs (with -w, -m only)
  -C, --codepage CP     print DOS, Windows, or mixed pathname in Windows
                        codepage CP.  CP can be a numeric codepage identifier,
                        or one of the reserved words ANSI, OEM, or UTF8.
                        If this option is missing, cygpath defaults to the
                        character set defined by the current locale.

System information:

  -A, --allusers        use `All Users' instead of current user for -D, -O, -P
  -D, --desktop         output `Desktop' directory and exit
  -H, --homeroot        output `Profiles' directory (home root) and exit
  -O, --mydocs          output `My Documents' directory and exit
  -P, --smprograms      output Start Menu `Programs' directory and exit
  -S, --sysdir          output system directory and exit
  -W, --windir          output `Windows' directory and exit
  -F, --folder ID       output special folder with numeric ID and exit
Try `cygpath --help' for more information.
which: no g++.exe in (/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy:)
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
       cygpath [-c HANDLE] 
       cygpath [-ADHOPSW] 
       cygpath [-F ID] 

Convert Unix and Windows format paths, or output system path information

Output type options:

  -d, --dos             print DOS (short) form of NAMEs (C:\PROGRA~1\)
  -m, --mixed           like --windows, but with regular slashes (C:/WINNT)
  -M, --mode            report on mode of file (binmode or textmode)
  -u, --unix            (default) print Unix form of NAMEs (/cygdrive/c/winnt)
  -w, --windows         print Windows form of NAMEs (C:\WINNT)
  -t, --type TYPE       print TYPE form: 'dos', 'mixed', 'unix', or 'windows'

Path conversion options:

  -a, --absolute        output absolute path
  -l, --long-name       print Windows long form of NAMEs (with -w, -m only)
  -p, --path            NAME is a PATH list (i.e., '/bin:/usr/bin')
  -U, --proc-cygdrive   Emit /proc/cygdrive path instead of cygdrive prefix
                        when converting Windows path to UNIX path.
  -s, --short-name      print DOS (short) form of NAMEs (with -w, -m only)
  -C, --codepage CP     print DOS, Windows, or mixed pathname in Windows
                        codepage CP.  CP can be a numeric codepage identifier,
                        or one of the reserved words ANSI, OEM, or UTF8.
                        If this option is missing, cygpath defaults to the
                        character set defined by the current locale.

System information:

  -A, --allusers        use `All Users' instead of current user for -D, -O, -P
  -D, --desktop         output `Desktop' directory and exit
  -H, --homeroot        output `Profiles' directory (home root) and exit
  -O, --mydocs          output `My Documents' directory and exit
  -P, --smprograms      output Start Menu `Programs' directory and exit
  -S, --sysdir          output system directory and exit
  -W, --windir          output `Windows' directory and exit
  -F, --folder ID       output special folder with numeric ID and exit
Try `cygpath --help' for more information.
which: no ld.exe in (/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy:)
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
       cygpath [-c HANDLE] 
       cygpath [-ADHOPSW] 
       cygpath [-F ID] 

Convert Unix and Windows format paths, or output system path information

Output type options:

  -d, --dos             print DOS (short) form of NAMEs (C:\PROGRA~1\)
  -m, --mixed           like --windows, but with regular slashes (C:/WINNT)
  -M, --mode            report on mode of file (binmode or textmode)
  -u, --unix            (default) print Unix form of NAMEs (/cygdrive/c/winnt)
  -w, --windows         print Windows form of NAMEs (C:\WINNT)
  -t, --type TYPE       print TYPE form: 'dos', 'mixed', 'unix', or 'windows'

Path conversion options:

  -a, --absolute        output absolute path
  -l, --long-name       print Windows long form of NAMEs (with -w, -m only)
  -p, --path            NAME is a PATH list (i.e., '/bin:/usr/bin')
  -U, --proc-cygdrive   Emit /proc/cygdrive path instead of cygdrive prefix
                        when converting Windows path to UNIX path.
  -s, --short-name      print DOS (short) form of NAMEs (with -w, -m only)
  -C, --codepage CP     print DOS, Windows, or mixed pathname in Windows
                        codepage CP.  CP can be a numeric codepage identifier,
                        or one of the reserved words ANSI, OEM, or UTF8.
                        If this option is missing, cygpath defaults to the
                        character set defined by the current locale.

System information:

  -A, --allusers        use `All Users' instead of current user for -D, -O, -P
  -D, --desktop         output `Desktop' directory and exit
  -H, --homeroot        output `Profiles' directory (home root) and exit
  -O, --mydocs          output `My Documents' directory and exit
  -P, --smprograms      output Start Menu `Programs' directory and exit
  -S, --sysdir          output system directory and exit
  -W, --windir          output `Windows' directory and exit
  -F, --folder ID       output special folder with numeric ID and exit
Try `cygpath --help' for more information.
which: no objdump.exe in (/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/bin:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/bin:/home/ofuser/blueCFD/OpenFOAM-5.x/wmake:/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/ofuser/AddOns/notepad2:/home/ofuser/AddOns/ParaView/bin:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/gperftools-svn/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib/MS-MPI-7.1:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib:/home/ofuser/blueCFD/ofuser-of5/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/site/5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib:/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64GccDPInt32/lib:/home/ofuser/blueCFD/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/lib/dummy:)
Usage: cygpath (-d|-m|-u|-w|-t TYPE) [-f FILE] [OPTION]... NAME...
       cygpath [-c HANDLE] 
       cygpath [-ADHOPSW] 
       cygpath [-F ID] 

Convert Unix and Windows format paths, or output system path information

Output type options:

  -d, --dos             print DOS (short) form of NAMEs (C:\PROGRA~1\)
  -m, --mixed           like --windows, but with regular slashes (C:/WINNT)
  -M, --mode            report on mode of file (binmode or textmode)
  -u, --unix            (default) print Unix form of NAMEs (/cygdrive/c/winnt)
  -w, --windows         print Windows form of NAMEs (C:\WINNT)
  -t, --type TYPE       print TYPE form: 'dos', 'mixed', 'unix', or 'windows'

Path conversion options:

  -a, --absolute        output absolute path
  -l, --long-name       print Windows long form of NAMEs (with -w, -m only)
  -p, --path            NAME is a PATH list (i.e., '/bin:/usr/bin')
  -U, --proc-cygdrive   Emit /proc/cygdrive path instead of cygdrive prefix
                        when converting Windows path to UNIX path.
  -s, --short-name      print DOS (short) form of NAMEs (with -w, -m only)
  -C, --codepage CP     print DOS, Windows, or mixed pathname in Windows
                        codepage CP.  CP can be a numeric codepage identifier,
                        or one of the reserved words ANSI, OEM, or UTF8.
                        If this option is missing, cygpath defaults to the
                        character set defined by the current locale.

System information:

  -A, --allusers        use `All Users' instead of current user for -D, -O, -P
  -D, --desktop         output `Desktop' directory and exit
  -H, --homeroot        output `Profiles' directory (home root) and exit
  -O, --mydocs          output `My Documents' directory and exit
  -P, --smprograms      output Start Menu `Programs' directory and exit
  -S, --sysdir          output system directory and exit
  -W, --windir          output `Windows' directory and exit
  -F, --folder ID       output special folder with numeric ID and exit
Try `cygpath --help' for more information.
User avatar
oliveroxtoby
Posts: 837
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Error installing cfMesh from prefs

Post by oliveroxtoby »

alexbhandari wrote: Sat Sep 05, 2020 9:40 pm Hi Oliver,

Thanks for the input. I have narrowed down the issues with openfoam docker to the corporate permissions on my laptop (it seems I may be able to make docker work as they have an exception for docker but not for docker toolkit - which is what openfoam was installing) and so have switched to the bluecfd approach.

For blue CFD I have it installed and can launch the terminal and can run in the terminal

echo $WM_PROJECT_VERSION
5.x

but when I run the dependency checker I get the following
Please try with the latest update...should hopefully be fixed.
Greg66
Posts: 6
Joined: Wed Aug 19, 2020 7:24 pm
Location: Germany

Re: Error installing cfMesh from prefs

Post by Greg66 »

Hi all,
after successfully installing everything on my private computer we (=IT-department) did the same installation procedure on my company PC.

OFoam, Paraview, Plot-WB got installed successfully. But then i encontered problems during installation of CfMesh.

I already run the dependecy checker:
Checking dependencies...
cfMesh (CfdOF version) not found
HiSA not found



Output of installation procedure:
Downloading cfMesh, please wait...
cfMesh downloaded to C:\Users\xxxx\AppData\Local\Temp\tmp3m7yh9u2.zip

unsupported operand type(s) for +: 'function' and 'str'
Download unsuccessful



Please see also following installation log from Output Window:
Running echo $WM_PROJECT_USER_DIR
Raw command: ['C:/Users/xxxx/AppData/Local/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\xxxx\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Users\\xxxx\\AppData\\Roaming\\BLUECF~1\\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

Traceback (most recent call last):
File "C:\Users\xxxx\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 350, in run
self.downloadCfMesh()
File "C:\Users\xxxx\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdPreferencePage.py", line 416, in downloadCfMesh
self.user_dir = CfdTools.reverseTranslatePath(self.user_dir)
File "C:\Users\xxxx\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 458, in reverseTranslatePath
return toWindowsPath(p)
File "C:\Users\xxxx\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdTools.py", line 525, in toWindowsPath
foam_dir = getFoamDir + '\\'
TypeError: unsupported operand type(s) for +: 'function' and 'str'



Is there anybody who has an idea how to resolve that issue?

Tanks in advance!
alexbhandari
Posts: 15
Joined: Wed Apr 29, 2020 4:33 pm

Re: Error installing cfMesh from prefs

Post by alexbhandari »

Hi Oliver,

Great! Updated and now dependency checker is passing except for HISA. Since building/installing takes some time I figured HISA is not needed to mesh so went ahead to that step. Here is my output. I am following along with the tutorial 1 on http://www.opensim.co.za/training.html
Some things are different in my version UI but most steps are the same. I also tried meshing with different element sizes and different meshers. Please see below for cfmesh error

status window

Code: Select all

0.0: Running cfMesh ...
0.1: Mesher started
48.0: OpenFOAM fatal error: bad size -821627801 
48.1: Meshing exited with erro

Code: Select all

Executing: C:\PROGRA~1\BLUECF~1\msys64\usr\bin\bash --login -O expand_aliases -c cd "/c/Users/<username>/AppData/Local/Temp/meshCase" && ./Allmesh
Raw command:  ['C:/Program Files/FreeCAD 0.18/bin\\python.exe', '-u', 'C:\\Users\\<username>\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\PROGRA~1\\BLUECF~1\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'cd "/c/Users/<username>/AppData/Local/Temp/meshCase" && ./Allmesh']
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
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  5.x                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
Build  : 5.x-963176928289
Exec   : C:/PROGRA~1/BLUECF~1/OpenFOAM-5.x/platforms/mingw_w64GccDPInt32Opt/bin/blockMesh.exe
Date   : Sep 08 2020
Time   : 23:59:38
Host   : "<host>"
PID    : 18332
I/O    : uncollated
Case   : C:/Users/<username>/AppData/Local/Temp/meshCase
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Creating block mesh from
    "C:/Users/<username>/AppData/Local/Temp/meshCase/system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks


--> FOAM FATAL ERROR: 
bad size -821627801

    From function void Foam::List<T>::setSize(Foam::label) [with T = Foam::Vector<double>; Foam::label = int]
    in file X:/OpenFOAM-5.x/src/OpenFOAM/containers/Lists/List/List.T.C at line 285.

FOAM aborting

Generating stack trace...


Backtrace:
	ZN10StackTraceC1Ev [0x705c1465+0x25]
		 module: C:\PROGRA~1\BLUECF~1\ThirdParty-5.x\platforms\mingw_w64GccDPInt32\lib\libstack_trace.dll
	ZN4Foam5error10printStackERNS_7OstreamE [0x1111c88+0x218]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZN4Foam5error5abortEv [0xec5b5d+0x12d]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libOpenFOAM.dll
	ZN4Foam4ListINS_6VectorIdEEE7setSizeEi [0x6bd304da+0xba]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libblockMesh.dll
	ZN4Foam5block12createPointsEv [0x6bd14fa9+0x1b9]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libblockMesh.dll
	ZN4Foam5blockC1ERKNS_10dictionaryEiRKNS_5FieldINS_6VectorIdEEEERKNS_7PtrListINS_9blockEdgeEEERKNSA_INS_9blockFaceEEERNS_7IstreamE [0x6bd1435f+0x9f]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libblockMesh.dll
	ZN4Foam5block3NewERKNS_10dictionaryEiRKNS_5FieldINS_6VectorIdEEEERKNS_7PtrListINS_9blockEdgeEEERKNSA_INS_9blockFaceEEERNS_7IstreamE [0x6bd144c3+0x103]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libblockMesh.dll
	ZN4Foam7PtrListINS_5blockEE4readINS1_4iNewEEEvRNS_7IstreamERKT_ [0x6bd34027+0x1d7]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libblockMesh.dll
	ZN4Foam9blockMesh14createTopologyERKNS_12IOdictionaryERKNS_4wordE [0x6bd2013b+0x50b]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libblockMesh.dll
	ZN4Foam9blockMeshC1ERKNS_12IOdictionaryERKNS_4wordE [0x6bd1a083+0x563]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\lib\libblockMesh.dll
	(No symbol) [0x4088bb]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\blockMesh.exe
	(No symbol) [0x4013f7]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\blockMesh.exe
	(No symbol) [0x40152b]
		 module: C:\PROGRA~1\BLUECF~1\OpenFOAM-5.x\platforms\mingw_w64GccDPInt32Opt\bin\blockMesh.exe
	BaseThreadInitThunk [0x7ff82be47974+0x14]
		 module: C:\windows\System32\KERNEL32.DLL
	RtlUserThreadStart [0x7ff82ebaa271+0x21]
		 module: C:\windows\SYSTEM32\ntdll.dll


window status

0.0: Running cfMesh ...
0.1: Mesher started
48.0: OpenFOAM fatal error: bad size -821627801 
48.1: Meshing exited with error
Post Reply