-
Notifications
You must be signed in to change notification settings - Fork 32
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
IndexError: list index out of range #305
Comments
Hmm. It works fine for me on my computer with those settings. The issue that some users have which is fixed by I see that you are running the Do you know how to ssh or telnet to your device and run commands on the device? Can you try running this:
And let me know what happens. What's supposed to happen is that you get a long output that ends with lines like this:
Let me know what you see. If you don't know how to ssh nor telnet, let me know and I will try to help you with that, too. |
Im running octoprint in a docker container on a raspberry pi 4. The command returned the same issue. running: "/octoprint/plugins/lib/python3.8/site-packages/octoprint_PrintTimeGenius/analyzers/marlin-calc.aarch64" "/octoprint/octoprint/uploads/Spielzeug/Propeller/AG_Gear_petg.gcode" "M200 D1.75
M200 D0
M92 X80.12 Y80.12 Z399.78 E445.00
M203 X300.00 Y300.00 Z50.00 E40.00
M201 X2000 Y2000 Z100 E10000
M204 P800.00 R10000.00 T2000.00
M205 E5.00 S0.00 T0.00 X8.00 Y8.00 Z0.30"
Traceback (most recent call last):
File "/octoprint/plugins/lib/python3.8/site-packages/octoprint_PrintTimeGenius/analyzers/analyze_progress.py", line 98, in <module>
main()
File "/octoprint/plugins/lib/python3.8/site-packages/octoprint_PrintTimeGenius/analyzers/analyze_progress.py", line 71, in main
total_time = progress[-1][1]
IndexError: list index out of range |
I wanted you to try it from ssh or telnet. Are you able? |
This is the output from ssh
|
That doesn't look like the output from ssh. Hmm. Can you show me the ssh output of What is the command that you ran to start an ssh session? |
Oops, wait, nevermind, i sent you the wrong command. One moment... |
|
I run the command on ssh.
|
Okay, that's the problem. Can you try running the other versions of marlin-calc that are in that directory and tell me if one of them works? Also, run PTG is not correctly identifying which system you have. |
https://github.com/eyal0/OctoPrint-PrintTimeGenius/tree/master/octoprint_PrintTimeGenius/analyzers That file is supposed to exist on your computer. Why isn't it in the directory?
|
The command
the folder /home/pi/octoprint/plugins/lib/python3.8/site-packages/octoprint_PrintTimeGenius/analyzers
It works with "All gcode analyzers" |
I can see the aarch64 file in there. So how come when you ran the command, it said no such file or directory. |
I'm getting the same issue, running the exact same setup (Octoprint inside Docker on Pi4). I'm able to run the commands successfully inside SSH, but the analyze_progress returns "IndexError: list index out of range" error within Octoprint. EDIT: Tried with "analyze_gcode_comments" which worked within Octoprint, same as @ItsmeEng. Error with "analyze_progress":
|
Analyze those comments means that it's using the comments in addition to marlin calc. It's best if marlin calc works. Can you figure out why marlin calc is failing? It should work if you ssh to the device and run marlin calc. |
I can confirm that marlin-calc works through SSH.
I get the result
But still errors through OctoPrint. |
Do you also get any "Progress:" lines like I did above? |
1 similar comment
Do you also get any "Progress:" lines like I did above? |
Yeah it ran through all the progress lines then spat out the JSON response. |
Just tried it without using Docker on the Pi4 (using OctoPi) and it all works fine. So it would seem that could be the contributing factor. |
Can you figure out what's going on? I don't have rPi. If you know programming.... That script is not so complicated! |
I'm having the exact same issue with my setup (Octoprint running on RPi4 on Docker). Did someone found out the solution? @Jealy91 |
Unfortunately not sorry, I just left my RPi4 running OctoPi without Docker and moved some containers elsewhere. |
I'm running into the same issue in the same setup (RPI 4, 64-bit, Octoprint running in docker). Here's the output I get from the commands listed above:
If I modify the command to |
Maybe it's guess the wrong version of marlin-calc? |
I have installed the plugin an run the M503 command. I cannot analyze any files.
I get always the Error "IndexError: list index out of range".
I am using Cura 5.3.1, Octoprint 1.8.7, latest PTG.
Log attached. Also attached the gcode file.
plugin_PrintTimeGenius_engine.log
AG_Gear_petg.gcode.zip
The text was updated successfully, but these errors were encountered: