Printrun icon indicating copy to clipboard operation
Printrun copied to clipboard

Getting "TypeError: object of type 'NoneType' has no len()" when trying to open a stl

Open JamesGordonII opened this issue 5 years ago • 3 comments

I am trying to print with prontface but when ever I try to open a stl file it gives me this error: [Errno 2] No such file or directory: 'C:\\Users\\Alienware\\Downloads\\LCD_and_RPi_Enclosure_v1_export.gcode' Traceback (most recent call last): File "printrun\pronterface.py", line 1672, in loadviz File "printrun\gcview.py", line 349, in addfile_perlayer File "printrun\gl\libtatlin\actors.py", line 425, in load_data File "printrun\gcoder.py", line 251, in __len__ TypeError: object of type 'NoneType' has no len()

is there any workaround for this?

JamesGordonII avatar Apr 05 '21 22:04 JamesGordonII

`[Errno 2] No such file or directory: 'C:\Users\Alienware\Downloads\LCD_and_RPi_Enclosure_v1_export.gcode'

The facts that an STL file is being loaded and a "No such file or directory" error is being thrown points in the direction of the slicing software not being properly configured. @JamesGordonII what does your option 'Settings > Options > External Commands > Slice command' look like?

Edit 1: A 3D model (such as an STL file) needs to first be "sliced" into a .gcode file. The latter is the one used by Pronterface to print. For reference [1].

rockstorm101 avatar Apr 06 '21 20:04 rockstorm101

Hi sorry, I will get back to this when I get home and will be able to use my pc

On Tue, Apr 6, 2021, 1:16 PM Rock Storm @.***> wrote:

`[Errno 2] No such file or directory: 'C:\Users\Alienware\Downloads\LCD_and_RPi_Enclosure_v1_export.gcode'

The facts that an STL file is being loaded and a "No such file or directory" error is being thrown points in the direction of the slicing software not being properly configured. @JamesGordonII https://github.com/JamesGordonII what does your option 'Settings > Options > External Commands > Slice command' look like?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kliment/Printrun/issues/1184#issuecomment-814411259, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATRTTMOHGLGZKPOMEQTXYZTTHNT3NANCNFSM42NRWOBA .

JamesGordonII avatar Apr 07 '21 00:04 JamesGordonII

@rockstorm101 i now realized that it needed to be sliced as you said and doing that and using the gcode it generates and it now works flawlessly

JamesGordonII avatar Apr 07 '21 06:04 JamesGordonII