Skip to content
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

Cannot load Cura profile #2368

Closed
agribov opened this issue Jan 15, 2018 · 7 comments
Closed

Cannot load Cura profile #2368

agribov opened this issue Jan 15, 2018 · 7 comments
Labels
bug Issue describes a bug done Done but not yet released
Milestone

Comments

@agribov
Copy link

agribov commented Jan 15, 2018

What were you doing?

  1. Set up OctoPrint as a fresh Octopi install on a Pi-3
  2. Went through the "first time setup" process. It got stuck on loading a Cura profile so I skipped that step and finished the process.
  3. Everything else works fine, tried loading Cura profile from the settings page and it always got hung up.

What did you expect to happen?

Cura profile to be loaded

What happened instead?

After selecting the profile to upload, it either automatically hits "confirm" and gets stuck, or sometimes I can hit confirm and it will get stuck. (screenshot below, wheel next to confirm button is endlessly spinning, I've let it spin for 10+ minutes). I've tried this in both Chrome and Firefox on Ubuntu.

Did the same happen when running OctoPrint in safe mode?

Yes

Version of OctoPrint

OctoPrint 1.3.6

Operating System running OctoPrint

OctoPi 0.14.0

Printer model & used firmware incl. version

Alunar DIY Prusa i3. Should not matter since profile loading can happen even before printer is connected.

Browser and Version of Browser, Operating System running Browser

Chrome and Firefox on Ubuntu 16.04

Link to octoprint.log

https://gist.github.com/agribov/fe13d967006124dbc8f22ad30f3cd7d5

Link to contents of terminal tab or serial.log

None?

Link to contents of Javascript console in the browser

See Screenshot below

Screenshot(s)/video(s) showing the problem:

image

I have read the FAQ.

@agribov
Copy link
Author

agribov commented Jan 15, 2018

Also, I did read through issue #795 which is very similar. I just went back there and noticed that another user had the same issue and resolved it by closing the instance of Octoprint and starting a new one. I tried restarting Octoprint through the browser interface multiple times to no avail -- Is there another way to do this through the terminal?

Either way I think this issue should be up since it is causing problems, and that post had been closed years ago.

@GitIssueBot GitIssueBot added the triage This issue needs triage label Jan 15, 2018
@ntoff
Copy link
Contributor

ntoff commented Jan 15, 2018

UnicodeEncodeError: 'ascii' codec can't encode character u'\uff0d' in position 4: ordinal not in range(128)

It looks like there's a weird character somewhere in the file, have you perhaps manually edited the file after creating it or does it have language characters with accents (umlaut's etc)

It'd probably help figure it out if you could please include your profile that you're trying to upload as well.

@foosel
Copy link
Member

foosel commented Jan 15, 2018

It definitely would help to have that file available. I'd actually say it's necessary to have it to debug this :)

@foosel foosel added the needs information More information is needed to further process this issue or PR label Jan 15, 2018
@agribov
Copy link
Author

agribov commented Jan 17, 2018

@foosel @ntoff,
https://gist.github.com/agribov/d37d8e254a4d67cb7577f5e09b971465
That is the profile I was trying to upload. This profile came with my printer (They gave an SD card with useful files). Cura 15.04 reads it with no problem (both Windows and Linux).

I uploaded it to Cura a few days ago, may have changed a setting, and have been using that. Just now I went into Cura to export (the same profile), and that freshly exported profile works fine.

So it sounds like this won't affect most users, though there is something that Cura is able to read, but Octoprint cannot, so it may be worth resolving. I haven't contributed to Octoprint (just got into it last week), so I don't have the background knowledge to debug this at the moment.

@foosel
Copy link
Member

foosel commented Jan 22, 2018

@agribov That file imported just flawlessly over here into OctoPrint 1.3.7.dev (whose Cura Engine plugin is exactly the same as that of OctoPrint 1.3.6). However after taking another look at the log I realized it didn't hiccup on the file's contents but probably rather on its name, which so far had to be ASCII. I just pushed the above commit to solve this.

Will soon also be available on the devel and be released with 1.3.7.

@foosel foosel added bug Issue describes a bug done Done but not yet released and removed needs information More information is needed to further process this issue or PR triage This issue needs triage labels Jan 22, 2018
@foosel foosel added this to the 1.3.7 milestone Jan 22, 2018
@foosel foosel closed this as completed in 6700557 Apr 9, 2018
@wwwiesel
Copy link

wwwiesel commented Jul 29, 2018

Hi, I try to import a ini file in version 1.3.9 with the same behavior.

OctoPrint version : 1.3.9
OctoPi version : 0.15.0

Its not possible to import a profile...
image

EDIT:
I played around with that... there was one time a sucessful import... deleted and retried... did not help

@a5m0
Copy link

a5m0 commented Nov 5, 2018

I also had this issue trying to import cura profiles from a previous octoprint install, ended up just SCP'ing them and they were picked up ok.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue describes a bug done Done but not yet released
Projects
None yet
Development

No branches or pull requests

6 participants