grebtsew / FloorplanToBlender3d

Create 3d rooms in blender from floorplans.
GNU General Public License v3.0
396 stars 103 forks source link

Calculate.py Can't parse 'pt'. Sequence item with index 0 has a wrong type #25

Open Joonassy opened 2 years ago

Joonassy commented 2 years ago

Describe the bug Calculate.py line 25 generates error: "Can't parse 'pt'. Sequence item with index 0 has a wrong type"

To Reproduce Steps to reproduce the behavior: Run main.py with default settings

Solution: X and Y values are of wrong type and need to be cast as int.

grebtsew commented 2 years ago

Hi @Joonassy !

I have been busy lately and apologize for the late reply. I am unable to fully reproduce the error described. I would guess that it could be because you are not using the now slightly outdated versions of libraries that the project was developed with.

I leave this issue open, to solve it in the next update.

Cheers, @grebtsew

ShimantaBhuyan commented 1 year ago

Describe the bug Calculate.py line 25 generates error: "Can't parse 'pt'. Sequence item with index 0 has a wrong type"

To Reproduce Steps to reproduce the behavior: Run main.py with default settings

Solution: X and Y values are of wrong type and need to be cast as int.

Hey @Joonassy, can you please let me know where the X and Y values are of wrong type, which you have mentioned as the solution?

ShimantaBhuyan commented 1 year ago

Describe the bug Calculate.py line 25 generates error: "Can't parse 'pt'. Sequence item with index 0 has a wrong type" To Reproduce Steps to reproduce the behavior: Run main.py with default settings Solution: X and Y values are of wrong type and need to be cast as int.

Hey @Joonassy, can you please let me know where the X and Y values are of wrong type, which you have mentioned as the solution?

Got it, it's in \FloorPlan_To_Blender\FloorplanToBlender3d\FloorplanToBlenderLib\calculate.py line 25, thanks for the solution!

HurtLocker936 commented 1 year ago

Screenshot 2023-11-09 at 7 11 56 PM The class of X & Y are (numpy: int) whereas the function needs class type int for parsing. This solved the issue.