New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gcode IOError: [Errno 2] No such file or directory #779

Closed
Duality4Y opened this Issue Oct 21, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@Duality4Y

Duality4Y commented Oct 21, 2016

I cloned the repo, and installed.
I get the error that pronterface can't find the exported gcode file.
it seems that the file is renamed but not loaded under it's new name.
loading by hand works.

full output:

Slicing /home/duality/Downloads/20mm-box.stl
Slicing /home/duality/Downloads/20mm-box.stl
Running slic3r /home/duality/Downloads/20mm-box.stl --load /home/duality/.Slic3r/print/ABS.ini --load /home/duality/.Slic3r/printer/ABS.ini --load /home/duality/.Slic3r/filament/ABS.ini
Running slic3r /home/duality/Downloads/20mm-box.stl --load /home/duality/.Slic3r/print/ABS.ini --load /home/duality/.Slic3r/printer/ABS.ini --load /home/duality/.Slic3r/filament/ABS.ini
=> Processing triangulated mesh
=> Generating perimeters
=> Preparing infill
=> Infilling layers
=> Generating skirt
=> Exporting G-code to /home/duality/Downloads/20mm-box.gcode
Done. Process took 0 minutes and 0.501 seconds
Filament required: 908.2mm (2.2cm3)
Loading file: /home/duality/Downloads/20mm-box_export.gcode
Loading file: /home/duality/Downloads/20mm-box_export.gcode
Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib64/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/duality/.pyvenvs/py2venv/lib/python2.7/site-packages/printrun/pronterface.py", line 1393, in load_gcode_async_thread
    gcode = gcode)
  File "/home/duality/.pyvenvs/py2venv/lib/python2.7/site-packages/printrun/pronsole.py", line 891, in load_gcode
    self.fgcode.prepare(open(filename, "rU"),
IOError: [Errno 2] No such file or directory: u'/home/duality/Downloads/20mm-box_export.gcode'
@rockstorm101

This comment has been minimized.

Show comment
Hide comment
@rockstorm101

rockstorm101 Oct 23, 2016

Collaborator

Hi @Duality4Y,

Thanks for reporting this, and good OP by the way. This seems pretty easy to fix but...

@kliment, is there a reason why printrun expects a sliced file with the suffix "_export"? Slic3r does not add that by default, does Skeinforge?

Regards,
Rock

Collaborator

rockstorm101 commented Oct 23, 2016

Hi @Duality4Y,

Thanks for reporting this, and good OP by the way. This seems pretty easy to fix but...

@kliment, is there a reason why printrun expects a sliced file with the suffix "_export"? Slic3r does not add that by default, does Skeinforge?

Regards,
Rock

@hroncok

This comment has been minimized.

Show comment
Hide comment
@hroncok

hroncok Oct 23, 2016

Collaborator

Skeinforge does.

Collaborator

hroncok commented Oct 23, 2016

Skeinforge does.

@rockstorm101

This comment has been minimized.

Show comment
Hide comment
@rockstorm101

rockstorm101 Oct 23, 2016

Collaborator

Dear @Duality4Y,

Could you try adding -o $o to your slicing command (Settings > Options > External Commands > Slice Command). Mine is slic3r $s -o $o and it works as expected.

By the way, the README.md says:

See the Slic3r readme for more details on integration.

But I can't find where exactly this integration is explained, could this section be missing by any chance?

Regards,
Rock

Collaborator

rockstorm101 commented Oct 23, 2016

Dear @Duality4Y,

Could you try adding -o $o to your slicing command (Settings > Options > External Commands > Slice Command). Mine is slic3r $s -o $o and it works as expected.

By the way, the README.md says:

See the Slic3r readme for more details on integration.

But I can't find where exactly this integration is explained, could this section be missing by any chance?

Regards,
Rock

@Duality4Y

This comment has been minimized.

Show comment
Hide comment
@Duality4Y

Duality4Y Oct 24, 2016

yes that works!
pretty cool,
maybe it could be mentioned in the readme to note that you have to use -o $o to generate the right output file for slic3r.

though i wonder if it would be easier to by default just use thing.stl -> thing.gcode and load it that way.

Duality4Y commented Oct 24, 2016

yes that works!
pretty cool,
maybe it could be mentioned in the readme to note that you have to use -o $o to generate the right output file for slic3r.

though i wonder if it would be easier to by default just use thing.stl -> thing.gcode and load it that way.

@kliment

This comment has been minimized.

Show comment
Hide comment
@kliment

kliment Oct 25, 2016

Owner

Skeinforge does, yes, and it's not configurable there.

On 10/23/2016 10:04 AM, Rock Storm wrote:

Hi @Duality4Y,

Thanks for reporting this, and good OP by the way. This seems pretty easy to fix but...

@kliment, is there a reason why printrun expects a sliced file with the suffix "_export"? Slic3r does not add that by default, does Skeinforge?

Regards,
Rock

Owner

kliment commented Oct 25, 2016

Skeinforge does, yes, and it's not configurable there.

On 10/23/2016 10:04 AM, Rock Storm wrote:

Hi @Duality4Y,

Thanks for reporting this, and good OP by the way. This seems pretty easy to fix but...

@kliment, is there a reason why printrun expects a sliced file with the suffix "_export"? Slic3r does not add that by default, does Skeinforge?

Regards,
Rock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment