butterfly
butterfly copied to clipboard
Case from Folder component error
Hi @mostaphaRoudsari ,
Following the closed issue #174 I have tried to use the Create Case from Folder component in vain as I get this error:
I have not found how to fix the script on my own, and I was hoping you could guide me a bit on this one?
Cheers, Olivier
Hi @DambronOlivier and others. I was trying the same thing but I get a different error
Not sure how to fix this one.
Hi @DambronOlivier and @saket411, I won't be able to debug this without having the folders.
@saket411, can you check line 39 in your component. Does it look the same as line below:
# create OpenFoam Case
case = Case.fromFolder(_folder, name_, 1.0 / uc.convertDocumentUnitsToMeters())
Hi @mostaphaRoudsari ,
line 39 is indeed identical. I have reproduced the same error with the outdoor example file. Are you able to reproduce it on your side?
Hi @DambronOlivier, I can import it with no issues.
There is a problem with importing the stl file in your error report. Can you share the folder / stl file?
@DambronOlivier I can't reproduce the error. Your file works fine on my machine. I also noticed that around_buildings_area.stl
is much smaller than the geometries but that should not be related to this issue. The error message is happening because the stl parser parses the stl file incorrectly but since I can't recreate it, I'm not sure why is it happening and how to avoid it. Is it happening with all other folders too? I'm trying to understand if this is something on your system or is it only happening in a number of cases.
@mostaphaRoudsari I have tried the component on several other cases I have and the error persists. I have also tried it on a different computer in vain. Let me know if I can test specific things on my side.
Hi @DambronOlivier, I haven't written import stl library. What we can do is to isolate the code and add more prints to see what happens on your machine. @chriswmackey, @TheodoreGalanos can you guys reproduce this error?
I have confronted with the exactly same error and couldnt find any solution.
Thanks @thinklikeanarchitect! @DambronOlivier let's set up a call at some point and check it on your system.
Hi Mostapha, I wonder that this issue is fixed or I have to wait until the next release Butterfly 0.05. Thank you,