-
Notifications
You must be signed in to change notification settings - Fork 26
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
UnicodeDecodeError #76
Comments
It could be the contents of the file you are printing? If so, please put somewhere and share a link here. If you weren't printing, what action did you take? Connect? |
The most common cause is that you're trying to print an x3g through OctoPrint. GPX translates from gcode to x3g on the fly, so to print from OctoPrint, you want to print gcode. To print from the SD card in the printer, you want x3g. |
Hi. I only got this error after i applied the latest update when trying to connect to my printer. |
I may need verbose logs, but first, what printer? |
I pushed a new release 2.6.5 that may fix this. I'm guessing here, but perhaps changes to GPX and OctoPrint for Python 2/3 caused this. |
Unexpected error while reading serial port, please consult octoprint.log for details: UnicodeDecodeError: ''ascii' codec can't decode byte 0xeb in position 11: ordinal not in range(128)' @ comm.py:_readline:2823 |
But I have a Flashforge Creator Pro with Sailfish 7.8 and it doesn't occur. Perhaps the GPX plugin gets disabled on upgrade for some reason? You can tell by the GPX panel disappearing from settings. Also octoprint.log would be helpful. |
I got the same Error here after Update to GPX 2.6.5 with FF Creator Pro. Quick Workaround: Remove SD-Card. On my SD-Card there are some Manuals for the Creator-Pro with Chinese Characters in Filename, I think they are provided by FlashForge by default on the SD-Card shipped with the Creator Pro. |
Aha! Thank you for the info. I'll be able to reproduce and fix that. |
Shoot. It doesn't reproduce the error for me. The code I put in 2.6.5 to filter out non-ascii characters effectively filters out the non-ascii characters for me. @spagatticode could you copy and paste the non-ASCII filenames you've got on your SD card here? I could use those to test. |
I can do that, but I'm not in office until next monday. |
Hi @markwal, As I renamed the files with the chinese characters already (solves the problem), I reproduced the Bug today by just putting an empty File named
|
FWIW I had this exact same issue. Brand install on 3B+; Brand new FFCP. I was only trying to connect, but kept coming up against the exact same message. I installed my only two updates, which were GPX and v2.6.5. Still no dice. The simple fix was to unseat the SD card. |
Just occurred to me that I might not be seeing this problem because I use a FlashAir SD card. Maybe its doing something to the filename in firmware... Just a conjecture. I'll see if I can find another SD card to test with. |
OK. I have a repro now with @spagatticode 's most recently posted filename. Should be able to fix now. |
I believe this is fixed in 2.6.6, hopefully |
FYI: 2.6.6 has fixed this for me! 👍 |
Thank you @spagatticode for finding the repro and for verifying the fix. I should point out though, that the fix keeps it from disconnecting immediately on connection, it doesn't allow you to actually print SD files with non-ASCII filenames. 😟 |
Hi, I am getting the following error :
State: Offline (Error UnicodeDecodeError: ''ascii' codec can't decode byte 0xf6 in position 13: ordinal not in range(128)' @ comm.py:_readline:2823)
Any idea what the problem could be? I have a FFCP connected via USB.
Thanks
The text was updated successfully, but these errors were encountered: