Open insomaniac49 opened 3 years ago
Sigh.. Why do they keep breaking things in minor releases! The Python team seems to not really care all that much about backwards compatibility, unfortunately.
Yes I understand.... anytime I upgrade/update I begin to immediately flop sweat waiting for something to break.
This is copy/pasted from the other, less detailed issue report. I'm closing that one down and am going to invite everyone here.
I updated the code and have pushed to devel. Here is a link you can use to install via the plugin manager for testing:
https://github.com/FormerLurker/Octolapse/archive/d33011eda4bf1dead224d6a897927eaba117be2c.zip
There are a few new features in there too: Superslicer comment support for better quality. Fixed un-minified some JS to support OctoPrint's built in minification. Added customizable timestamp/elapsed time strings to support whatever format you like (rendering profile/overlay, I added help links).
Warning: I have NOT actually tested in python 3.10 yet, since this was a quick fix. Could be more problems. I'll try to get to that ASAP.
So far so good! Able to install via plugin manager and edit settings in Octolapse again with no errors, I will have to run some test prints and verify it's working as it should.
You can use teat mode to try a dry run (no extrusion, heating or fans) for quick and easy testing. A live print would also be nice.
I did forget about that, but I had some prints to do anyway. Both tests(1 on each printer) successfully generated an Octolapse as expected. As far as I can tell it is working like it was previously for me on Python 3.9.4. Again didn't test any new features just your basic Octolapse.
Fantastic! I tested on 3.7, so I am going to call this one closed! Will push to master ASAP
Fantastic! I tested on 3.7, so I am going to call this one closed! Will push to master ASAP
I tried this plugin link you provided because I'm having the same issue OP reported.
Upon trying to configure a new printer (I select my make and model - AnyCubic Mega-S), I get this error in the client JS console:
packed_plugins.js?be839fff:30689 Uncaught TypeError: this.charCodeAt is not a function. Exception occurred when checking element octolapse_printer_snapshot_command, check the 'octolapsePrinterSnapshotCommand' method.
at PrettyGCodeViewModel.String.hashCode (packed_plugins.js?be839fff:30689)
at i (packed_libs.js?1fe9f29c:13)
at Dt (packed_libs.js?1fe9f29c:13)
at Function.S.param (packed_libs.js?1fe9f29c:13)
at $.validator.remote (packed_plugins.js?be839fff:16327)
at $.validator.<anonymous> (packed_plugins.js?be839fff:17163)
at $.validator.check (packed_plugins.js?be839fff:15550)
at $.validator.checkForm (packed_plugins.js?be839fff:15227)
at $.validator.form (packed_plugins.js?be839fff:15214)
at packed_plugins.js?be839fff:19267
Prevents me from saving the printer profile, which prevents me from using octolapse.
This is def an issue with the jquery validator. I'll take a look ASAP.
This is def an issue with the jquery validator. I'll take a look ASAP.
Awesome, much appreciated!
@GossamerSolid, can you replicate the error, then clear the javascript console and re-replicate the error? The only place I can find the charCodeAt function is in Showdown.js (a markdown rendering library, which is super awesome by the way), which wouldn't be related to this issue, I don't think. However, I notice that the error was actually thrown by PrettyGCode. Can you also try disabling that plugin temporarily to see if it starts working again? This would go a LONG way towards narrowing down exactly what's happening. I appreciate it!
@GossamerSolid, can you replicate the error, then clear the javascript console and re-replicate the error? The only place I can find the charCodeAt function is in Showdown.js (a markdown rendering library, which is super awesome by the way), which wouldn't be related to this issue, I don't think. However, I notice that the error was actually thrown by PrettyGCode. Can you also try disabling that plugin temporarily to see if it starts working again? This would go a LONG way towards narrowing down exactly what's happening. I appreciate it!
I have 12 hours left on a print, so I can't right now, but I will when possible.
@GossamerSolid, can you replicate the error, then clear the javascript console and re-replicate the error? The only place I can find the charCodeAt function is in Showdown.js (a markdown rendering library, which is super awesome by the way), which wouldn't be related to this issue, I don't think. However, I notice that the error was actually thrown by PrettyGCode. Can you also try disabling that plugin temporarily to see if it starts working again? This would go a LONG way towards narrowing down exactly what's happening. I appreciate it!
Ok, so here's what I did:
For some information, I'm running on Windows 10 Pro x64 and have Python 3.10.1 installed, but I wouldn't think that'd have any bearing on this issue because this seems to be a client side issue.
I can't read the code from the stack prior to hashCode() being executed (because it's all minified and unreadable), but it looks like when it's trying to look over "this", the context of "this" is the window object rather than whatever "this" is actually supposed to be.
@FormerLurker did you have a chance to look into it? Just wondering if I should just try to downgrade my python or not.
Not yet, but it is on my agenda. Sorry for all the delays, but I am in the middle of a huge project for a client. Once the dust has settled, this will be my top priority, as I expect more and more users to run into it as things get upgraded.
I am having the same error that this thread started with, I had octolapse previously installed and I could pull up the UI, but I didn't have the dev tools installed, I deleted octolapes and redownloaded it, and now I get the settings load error from above. I am running Octoprint through a windows laptop turned server for the sake of saving college money.
I also just encountered this error, and after installing the updated file, it seems like everything is back to normal.
What were you doing when the problem occurred:
Operating System running OctoPrint and Octolapse OS Name: Mac OSX Os Version: 10.11.6
Printer model & used firmware incl. version Printer Model: AnyCubic i3 Mega S Printer Firmware Version: Custom Marlin 1.1.8
Browser and version of browser, operating system running browser Browser: FireFox/Chrome Browser OS: Mac OSX 10.11.6
octoprint-systeminfo-20220708200359.zip
my octoprint bundle
Buuuuuuuuuuump?
I'd love to be able to use OctoLapse again... :(
This is copy/pasted from the other, less detailed issue report. I'm closing that one down and am going to invite everyone here.
I updated the code and have pushed to devel. Here is a link you can use to install via the plugin manager for testing:
https://github.com/FormerLurker/Octolapse/archive/d33011eda4bf1dead224d6a897927eaba117be2c.zip
There are a few new features in there too: Superslicer comment support for better quality. Fixed un-minified some JS to support OctoPrint's built in minification. Added customizable timestamp/elapsed time strings to support whatever format you like (rendering profile/overlay, I added help links).
Warning: I have NOT actually tested in python 3.10 yet, since this was a quick fix. Could be more problems. I'll try to get to that ASAP.
@FormerLurker any chance we can get this version released official? We keep getting a fair amount of support overhead because of this 3.10 conflict.
Bump, got the same problem, Octolapse doesnt work anymore after upgrade to Python 3.8 or 3.10
Also experiencing this problem on 3.10. Would love an official release, but I can confirm the zip file release also works.
I had success with the fix by @FormerLurker Thanks!!
Is there installation instructions anywhere, I have been trying but haven't had any success yet?
@SteelTitan1010 Take the .zip link from above and paste it into the "install from link" field of the plugin manager. I'd also recommend uninstalling the broken Octolapse version first.
Would love to get these linked changes merged and released official @FormerLurker, python 3.10 compatibility is causing a good amount of support overhead with more and more people installing in windows and other OS, etc.
Having some issues myself with the plugin on python 3.10. The add profile button doesn't work at all. I have it hooked up to a zonestar but I think this is sided on the server, so that shouldn't matter
This is still an issue, I cannot use octolapse anymore. Please fix this
I fixed the problem by uninstalling octolapse and reinstalling it via the link provided by @FormerLurker
https://github.com/FormerLurker/Octolapse/archive/d33011eda4bf1dead224d6a897927eaba117be2c.zip
I can confirm using the version from the link provided by @FormerLurker works on Ubuntu on a x86 PC
https://github.com/FormerLurker/Octolapse/archive/d33011eda4bf1dead224d6a897927eaba117be2c.zip
If this is a feature request describe it here
_REPLACE_THISFEATURE_REQUEST_DESCRIPTION_GOES_HERE
Version of Octolapse
Octolapse Version: 0.4.1
Version of OctoPrint
OctoPrint Version: 1.7.2
When you ran into the problem, did you have diagnostic logging enabled?
Diagnostic Logging was Enabled: Yes
What were you doing when the problem occurred
What should have happened?
It should not have had any error popups
What happened instead?
Lots of error popups
Operating System running OctoPrint and Octolapse
OS Name: Windows 10 Os Version: 21H1
Printer model & used firmware incl. version
Printer Model: _REPLACE_THISPRINTER_MODEL_GOES_HERE Printer Firmware Version: _REPLACE_THISPRINTER_FIRMWARE_VERSION_GOES_HERE
Browser and version of browser, operating system running browser
Browser: FireFox/Chrome Browser OS: Windows 10
Link to the gcode file you were printing when the problem occurred
Link to Gcode File: _REPLACE_THISGCODE_FILE_LINK_GOES_HERE
Link to settings.json
Link to settings.json with all passwords removed: https://gist.github.com/insomaniac49/2cce03668c7582451edf9a9bd17de94c
Link to plugin_octolapse.log
Link to plugin_octolapse.log: https://gist.github.com/insomaniac49/c97f4aee1e31a42634cb37098626e544
Link to octoprint.log
Link to octoprint.log: https://gist.github.com/insomaniac49/94041c68cb1765c67792e5f740a77594
Link to contents of Javascript console in the browser
Link to javascript console output: https://gist.github.com/insomaniac49/c1dc1cba19531d438732a7546c13c960
Screenshots and/or videos of the problem:
Screenshot/Video Links: https://community.octoprint.org/t/settings-load-error/38005, found this while searching in regards to the error.
Please consider becoming a patron
If you like this project, please support my work by becoming a patron, and consider adding a 'star' to the repository. It takes a lot of time and effort to maintain the project and respond to issues. The cost of test prints, software, cameras, printer parts, etc. can quickly add up, so every bit helps.
You can find various videos and tutorials by subscribing to my Youtube channel. You can also follow me on Twitter.