butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

Case from Folder component error

Open DambronOlivier opened this issue 7 years ago • 11 comments

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:

capture

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

DambronOlivier avatar May 03 '17 22:05 DambronOlivier

Hi @DambronOlivier and others. I was trying the same thing but I get a different error image

Not sure how to fix this one.

saket411 avatar May 12 '17 04:05 saket411

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())

mostaphaRoudsari avatar May 12 '17 11:05 mostaphaRoudsari

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?

capture

DambronOlivier avatar May 12 '17 12:05 DambronOlivier

Hi @DambronOlivier, I can import it with no issues.

image

There is a problem with importing the stl file in your error report. Can you share the folder / stl file?

mostaphaRoudsari avatar May 12 '17 14:05 mostaphaRoudsari

Hi @mostaphaRoudsari

Please find the constant folder at this link constantfolder .

DambronOlivier avatar May 12 '17 18:05 DambronOlivier

@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 avatar May 13 '17 14:05 mostaphaRoudsari

@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.

DambronOlivier avatar May 13 '17 14:05 DambronOlivier

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?

mostaphaRoudsari avatar May 13 '17 22:05 mostaphaRoudsari

I have confronted with the exactly same error and couldnt find any solution.

thinklikeanarchitect avatar May 22 '17 13:05 thinklikeanarchitect

Thanks @thinklikeanarchitect! @DambronOlivier let's set up a call at some point and check it on your system.

mostaphaRoudsari avatar May 27 '17 16:05 mostaphaRoudsari

Hi Mostapha, I wonder that this issue is fixed or I have to wait until the next release Butterfly 0.05. Thank you,

lamlvo avatar Sep 30 '17 03:09 lamlvo