slic3r / Slic3r

Open Source toolpath generator for 3D printers
https://slic3r.org/
GNU Affero General Public License v3.0
3.34k stars 1.3k forks source link

Can't locate object method "duplicate" via package "Slic3r::Print" #1317

Closed CapnBry closed 11 years ago

CapnBry commented 11 years ago

Using slic3r-console.exe 0.9.10b on Win 7 x64 to slice an stl file gives me an error:

C:\SysTools\Slic3r>slic3r-console.exe C:\Users\muser\Documents\OptoZ.stl
Can't locate object method "duplicate" via package "Slic3r::Print" at C:/SysTools/Slic3r/lib/std/cavaexecscript/slic3r-console.pl line 84.

Using Slic3r 0.9.9-dev (included with printrun) works fine, as does slicing with the 0.9.10b gui. I've also tried deleting the configuration directory %APPDATA%/Slic3r and get the same error.

alranel commented 11 years ago

Can you confirm using slic3r.exe instead of slic3r-console.exe works? (It will just be silent, with no terminal output, but it will still slice the file)

CapnBry commented 11 years ago

Yes using just slic3r.exe works great. Oddly enough, I'm invoking it from a Ruby script and even using slic3r.exe I get progress report information from the pipe. Ruby code for those interested

IO.popen "C:\\SysTools\\Slic3r\\slicer.bat #{stl_name} 2>&1" do |io|
    io.each { |l| print l }
end

And the batch file it calls, again really simple

c:\SysTools\Slic3r\slic3r.exe --load "C:\Users\bmayland\AppData\Roaming\Slic3r\print\slicer.ini" --load "C:\Users\bmayland\AppData\Roaming\Slic3r\filament\slicer.ini" --load  "C:\Users\bmayland\AppData\Roaming\Slic3r\printer\slicer.ini" "%1"
alranel commented 11 years ago

Okay, then it was a failure in the build process. Thank you.