Jump to content

How to use cura.py form command line in Linux


chmario

Recommended Posts

Posted · How to use cura.py form command line in Linux

I am trying to use cura from command line

I can see that cura.py has the following options but running it I got the attached error log

can any one can help me to use cura form the command line?

Regards

Mario

 

"""Main Cura entry point. Parses arguments, and starts GUI or slicing process depending on the arguments."""parser = OptionParser(usage="usage: %prog [options] .stl")parser.add_option("-i", "--ini", action="store", type="string", dest="profileini",	help="Load settings from a profile ini file")parser.add_option("-p", "--profile", action="store", type="string", dest="profile",	help="Internal option, do not use!")parser.add_option("-s", "--slice", action="store_true", dest="slice",	help="Slice the given files instead of opening them in Cura")parser.add_option("-o", "--output", action="store", type="string", dest="output",	help="path to write sliced file to")parser.add_option("--serialCommunication", action="store", type="string", dest="serialCommunication",	help="Start commandline serial monitor")

 

 

:/usr/share/cura/Cura/util$ cura -s -i ABS_high-quality_Mini_single-extruder-v2_0.5noz_cura.ini -o out.gcode stl/Barracks.stl

load preferences from /home/mchc/.cura/18.03/preferences.ini

Listening for engine communications on 49674

Traceback (most recent call last):

File "/usr/share/cura/cura.py", line 34, in

cura.main()

File "/usr/share/cura/Cura/cura.py", line 62, in main

for m in meshLoader.loadMeshes(args[0]):

File "/usr/share/cura/Cura/util/meshLoader.py", line 32, in loadMeshes

return stl.loadScene(filename)

File "/usr/share/cura/Cura/util/meshLoaders/stl.py", line 54, in loadScene

f = open(filename, "rb")

IOError: [Errno 2] No such file or directory: 'stl/Barracks.stl'

mchc@mchc:/usr/share/cura/Cura/util$ python cura.py -s -i ABS_high-quality_Mini_single-extruder-v2_0.5noz_cura.ini -o out.gcode stl/Barracks.stl

python: can't open file 'cura.py': [Errno 2] No such file or directory

mchc@mchc:/usr/share/cura/Cura/util$ python ../cura.py -s -i ABS_high-quality_Mini_single-extruder-v2_0.5noz_cura.ini -o out.gcode stl/Barracks.stl

Traceback (most recent call last):

File "../cura.py", line 13, in

from Cura.util import profile

ImportError: No module named Cura.util

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 18 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
        • 0 replies
    ×
    ×
    • Create New...