ladybug-tools / butterfly

:butterfly: A light python API for creating and running OpenFoam cases for CFD simulation.
http://ladybug-tools.github.io/butterfly.html
GNU General Public License v3.0
249 stars 71 forks source link

"UNC paths are not supported" #158

Closed MaxMarschall closed 5 years ago

MaxMarschall commented 7 years ago

An error I have been getting quite often lately is this: untitled

It seems to happen when Grasshopper has been open for a while without me having worked in it for some time, or when I change a lot in the definition. If I restart Rhino, everything starts working again. It's only a minor inconvenience but maybe someone knows a quick solution or explanation for it?

Cheers, Max

thinklikeanarchitect commented 7 years ago

when I take this kind of error, I just change the case file name or in worse cases I delete the current case folder.

mostaphaRoudsari commented 7 years ago

@MaxMarschall thanks. The next time that it happens can you open the python component and copy the full error message. It's much easier to fix if we know the line number.

mostaphaRoudsari commented 7 years ago

also are you running butterfly on a shared network folder or \\berlin\... is a local path and butterfly is adding an extra \ to it that makes it look like a UNC?

MaxMarschall commented 7 years ago

Dear @mostaphaRoudsari ,

It's a shared folder. Like I said it usually works fine. I just ran into the error again after I linked new geometry to the definition and changed the boundary conditions. I may have saved the GH file under a new name just before this happened, but I can't remember for sure.

This is the full error message:

Runtime error (IOException): '\\berlin80\Performing\Projects\MartinGmbH\MM'

CMD.EXE was started with the above path as the current directory.

UNC paths are not supported.  Defaulting to Windows directory.

Traceback:
  line 93, in getShellinit, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
  line 105, in getContainerId, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
  line 67, in containerId, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
  line 228, in _RunManager__command, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
  line 182, in command, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
  line 284, in run, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\runmanager.py"
  line 667, in command, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\case.py"
  line 699, in blockMesh, "C:\Users\mma\AppData\Roaming\McNeel\Rhinoceros\5.0\scripts\butterfly\case.py"
  line 46, in script
TheodoreGalanos commented 7 years ago

@mostaphaRoudsari Is this still an issue? Seems like you were spot on with the UNC path, could it be that this doesn't relate to BF? Or can we make it see if it's a shared folder smh?

mostaphaRoudsari commented 7 years ago

@TheodoreGalanos I would still consider this as butterfly issue/limitation. At least we need to catch this exception and give a more helpful error message.

mostaphaRoudsari commented 5 years ago

We just posted a new version of Butterfly for Grasshopper that works with BlueCFD-Core and does not need Docker and VM installation. Try the steps below to install the new version.

  1. Try downloading the newer version 0.0.05 from Food4Rhino. Use the installer file to remove the old version and install the new one.
  2. Install BlueCFD-core following this link.
  3. Restart both Rhino and Grasshopper and try one of the updated sample files that comes with Butterfly installation package.

Feel free to open a new issue if it didn't solve the problem.