Open raphaelsiz opened 1 week ago
Thanks for the report. Have you tried quotation marks around the file name string?
Surely that should be ./Ultimaker-etc\ Button\ etc.stl ?
@GregValiant I apologize for not checking that before making the issue, but I checked just now and the same command with quotes around the file name (see below) also didn't work.
./Ultimaker-etc "button gears.stl"
Had the same effect as before. But interestingly, when I checked what I thought fixed it before (no space in the name), that didn't fix it either.
But then I looked closer at the error message and saw that it said there was no file at /home/user/button_gears.stl
... I had run the program from /home/user/Downloads
, so I had thought button_gears.stl
as an argument would lead the computer to /home/user/Downloads/button_gears.stl
.
Surely enough, when I cd'ed into my home directory, the app worked just fine, including with spaces in the file name. So I seem to have completely misunderstood the problem. I guess before the actual change I made (that I somehow didn't notice) was that Cura only worked if I ran it from my home directory, because it seems to assume that I am when parsing the file input.
I'm not sure what the etiquette is here. I probably shouldn't have tried to pinpoint the source in the title of the issue. It's still an issue, but apparently it wasn't the one I thought it was! Sorry about that.
As far as the comment from @smartavionics, No, the ./Ultimaker-etc
is the program and the Button\ etc.stl
is the file I'm trying to open in it. There should be an unescaped space between the two.
For the record, as additional information, I did attempt putting a ./
before the file name because some programs are strict about that, but that didn't fix it, only changing directory did (and once I changed directory, it didn't mind that I said Downloads/button\ gears.stl
instead of ./Downloads/button\ gears.stl
)
As far as the comment from @smartavionics, No, the ./Ultimaker-etc is the program and the Button\ etc.stl is the file I'm trying to open in it. There should be an unescaped space between the two.
My mistake, sorry.
Cura Version
5.7.2
Operating System
Debian Linux
Printer
Anycubic i3 Mega S/Pro
Reproduction steps
./Ultimaker-etc Button\ etc.stl
Actual results
Cura opens with nothing on the build plate and an error message at the bottom of the screen that it couldn't open the file.
Expected results
Cura should open with the stl on the build plate.
Add your .zip and screenshots here ⬇️
Log messages when I tried to open a file with a space in the name:
Log messages when I did the same thing with the same file after changing the name of the file not to have spaces in it:
Full cura.log
Originally thought it was what's happening in this issue until disabling USB printing did nothing. But I saw the weird formatting of the file name in the error and tried removing spaces from the file name, and that seemed to have fixed it (or coincidentally it started working again!)