Re: [Help Needed] Octoprint PrushMeshMap Plugin
Have you tried the --no-cache-dir option in the Plugin Manager? Instructions for this are a few of my posts back.
Just did, same problem. Anything else you'd like me to try?
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Have you tried the --no-cache-dir option in the Plugin Manager? Instructions for this are a few of my posts back.
Just did, same problem. Anything else you'd like me to try?
Hmm, might try what I recommended to RHD earlier, SSH in and run pip install matplotlib numpy and see what you get. Beyond that i'm not sure, can you fill me in on the Pi type you are running on? I have most types at home, will probably start testing them.
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Thanks for your attempt, I think I have a workaround. Please try the following:
--no-cache-dir
From what I am seeing, this error happens from time to time with pip on low memory systems (not specific to my plugin). The above argument seems to fix it in most cases I find. Also, if you find this fixes your issue, can you please confirm your experience on the following Github issue? https://github.com/ff8jake/OctoPrint-PrusaMeshMap/issues/3
Thanks!
Things changed, but still not successful. It sat at the "Downloading matplotlib..." line for a looong time - maybe 15 minutes and then failed with this log:
Installing plugin from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip...
/home/pi/oprint/bin/python -m pip install https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip --no-cache-dir
Collecting https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip
Downloading https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip
Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg (from OctoPrint-PrusaMeshMap==0.1.1)
Collecting matplotlib (from OctoPrint-PrusaMeshMap==0.1.1)
Downloading matplotlib-2.2.2.tar.gz (37.3MB)
Error!
Could not install plugin, unknown error, please consult octoprint.log for details
I then tried to download the octoprint.log file, but that also failed with a "504 Gateway Time-Out" error. I've come to think that maybe it's my Octoprint installation that somehow is "bad", and I'll take a deeper look at it.
Thanks for trying to help me out! Congrats on your plugin 🙂
Best regards
Hansen > Greetings from Denmark <
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Test what helped me and see if it helps you too. (A downloaded beta- image with OctoPrint)
sudo apt-get install pip
Bear MK3 with Bondtech extruder
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Not sure if it was someone here or a kind soul who found the plugin on their own, but I just merged a couple pull requests that address some pip issues (namely, a specific version of matplotlib and explicitly naming some dependencies for those who are running python installs that don't normally install them automatically).
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Hmm, might try what I recommended to RHD earlier, SSH in and run pip install matplotlib numpy and see what you get. Beyond that i'm not sure, can you fill me in on the Pi type you are running on? I have most types at home, will probably start testing them.
It's a Raspberry Pi B+. I did try that command earlier and got an error saying that pip wasn't a known command. Do I need to be in a specific directory to run it? I logged in as the "pi" user.
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Hmm, might try what I recommended to RHD earlier, SSH in and run pip install matplotlib numpy and see what you get. Beyond that i'm not sure, can you fill me in on the Pi type you are running on? I have most types at home, will probably start testing them.
It's a Raspberry Pi B+. I did try that command earlier and got an error saying that pip wasn't a known command. Do I need to be in a specific directory to run it? I logged in as the "pi" user.
If you're getting pip isn't a known command, follow RHD's instructions above to install it. I bet that's what is holding you up. 🙂
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
<snip>It sat at the "Downloading matplotlib..." line for a looong time <snip>
The delayed, long download happened for me as well though it failed with an error regarding 'numby', if I recall. That error did not show up in the log though I did find:
2018-04-02 06:56:20,887 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 06:56:21,212 - octoprint.plugins.pluginmanager - WARNING - The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.
2018-04-02 06:56:21,448 - octoprint.plugins.pluginmanager - INFO - Installing plugin from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip
2018-04-02 06:56:21,756 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 06:56:30,498 - octoprint.plugins.pluginmanager - INFO - Plugin to be installed from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip was already installed, forcing a reinstall
2018-04-02 06:56:39,639 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 06:56:39,812 - octoprint.plugins.pluginmanager - WARNING - The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.
2018-04-02 07:03:49,679 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.206
2018-04-02 07:24:26,197 - octoprint.plugins.pluginmanager - INFO - Installing plugin from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip
2018-04-02 07:24:26,531 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 07:24:35,077 - octoprint.plugins.pluginmanager - INFO - Plugin to be installed from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip was already installed, forcing a reinstall
2018-04-02 07:24:44,027 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 07:24:44,200 - octoprint.plugins.pluginmanager - WARNING - The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.
....And magically the plugin worked despite error.
Raspberry Pi 3, Octoprint 1.3.6, OctoPi 0.14.0
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Test what helped me and see if it helps you too. (A downloaded beta- image with OctoPrint)
sudo apt-get install pip
root@octopi:~# apt-get install pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pip
EDIT: PIP is part of the octoprint python. It can be found at... /home/pi/oprint/bin
So to install the libraries, you will run...
/home/pi/oprint/bin/python pip install matplotlib numpy
I am having issues still, will update this as I progress.
Hi, I'm Sean. I used to work on CNC machines.
I try to not make mistakes, but the decision is YOURS.
Please feel free to donate to my filament/maintance fund.
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Test what helped me and see if it helps you too. (A downloaded beta- image with OctoPrint)
sudo apt-get install pip
root@octopi:~# apt-get install pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package pip
Depending on your distro, it may be called differently. Try sudo apt-get install python-pip maybe.
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Okay, the kid just woke up... Ahh to be young and in college again, and ned the printer on for me. I ran the mesh leveling plug in and below are my results. I had hoped for much better...
heatmap.png
That constant dip right to left looks like you may be able to adjust much of it out by loosening your Y axis rods mounts and retightening them in better position. Once you get both sides even, if you can, you may be pretty spot on or only want small correction from wave/tpu springs under the screws. 🙂
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
<snip>It sat at the "Downloading matplotlib..." line for a looong time <snip>
The delayed, long download happened for me as well though it failed with an error regarding 'numby', if I recall. That error did not show up in the log though I did find:
2018-04-02 06:56:20,887 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 06:56:21,212 - octoprint.plugins.pluginmanager - WARNING - The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.
2018-04-02 06:56:21,448 - octoprint.plugins.pluginmanager - INFO - Installing plugin from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip
2018-04-02 06:56:21,756 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 06:56:30,498 - octoprint.plugins.pluginmanager - INFO - Plugin to be installed from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip was already installed, forcing a reinstall
2018-04-02 06:56:39,639 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 06:56:39,812 - octoprint.plugins.pluginmanager - WARNING - The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.
2018-04-02 07:03:49,679 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.206
2018-04-02 07:24:26,197 - octoprint.plugins.pluginmanager - INFO - Installing plugin from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip
2018-04-02 07:24:26,531 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 07:24:35,077 - octoprint.plugins.pluginmanager - INFO - Plugin to be installed from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip was already installed, forcing a reinstall
2018-04-02 07:24:44,027 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.6-py2.7.egg/octoprint/plugin/core.py", line 732, in _import_plugin
instance = imp.load_module(key, f, filename, description)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_PrusaMeshMap/__init__.py", line 14, in <module>
import matplotlib
File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/__init__.py", line 127, in <module>
from . import cbook
ImportError: cannot import name cbook
2018-04-02 07:24:44,200 - octoprint.plugins.pluginmanager - WARNING - The plugin was installed successfully, but couldn't be found afterwards to initialize properly during runtime. Please restart OctoPrint.
....And magically the plugin worked despite error.
Raspberry Pi 3, Octoprint 1.3.6, OctoPi 0.14.0
If cbook isn't working, you're likely missing the python-backports package that has functools_lru_cache. See https://github.com/matplotlib/matplotlib/issues/9344 for more info.
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Not sure if it was someone here or a kind soul who found the plugin on their own, but I just merged a couple pull requests that address some pip issues (namely, a specific version of matplotlib and explicitly naming some dependencies for those who are running python installs that don't normally install them automatically).
I dont know if its related, but I just tried to install the plugin again (both with and without '--no-cache-dir'. Now, I get this failure:
Installing plugin from https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip...
/home/pi/oprint/bin/python -m pip install https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip --no-cache-dir
Collecting https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip
Downloading https://github.com/ff8jake/OctoPrint-PrusaMeshMap/archive/master.zip (307kB)
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-BqUCmR-build/
Complete output from command python setup.py egg_info:
Found packages: ['octoprint_PrusaMeshMap']
error in OctoPrint-PrusaMeshMap setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
----------------------------------------
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output
Any ideas? 😉
Best regards
Hansen > Greetings from Denmark <
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Any ideas? 😉
Try one more time, looks like there was a typo in the pull request we just merged. Had => when it should have been >= I think. Tested the install after changing this and had no issues.
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Any ideas? 😉
Try one more time, looks like there was a typo in the pull request we just merged. Had => when it should have been >= I think. Tested the install after changing this and had no issues.
Oops, sorry about that!
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Any ideas? 😉
Try one more time, looks like there was a typo in the pull request we just merged. Had => when it should have been >= I think. Tested the install after changing this and had no issues.
Oops, sorry about that!
No way dude, those pulls helped two areas I was completely unaware of. I would take them with many more typos than that. 🙂
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Try one more time, looks like there was a typo in the pull request we just merged. Had => when it should have been >= I think. Tested the install after changing this and had no issues.
It installed flawlessly (without '--no-cache-dir') 🙂 Great plugin! Thanks again for all your help.
Not sure if you still want me to conclude anything in the GitHub issue? If so, not sure what to conclude 😀
Best regards
Hansen > Greetings from Denmark <
Re: [Help Needed] Octoprint PrushMeshMap Plugin
Try one more time, looks like there was a typo in the pull request we just merged. Had => when it should have been >= I think. Tested the install after changing this and had no issues.
It installed flawlessly (without '--no-cache-dir') 🙂 Great plugin! Thanks again for all your help.
Not sure if you still want me to conclude anything in the GitHub issue? If so, not sure what to conclude 😀
Nah enjoy it, maybe post a screenshot of your heatmap? I have only ever seen my own, curious how much variation there is. Also if you haven't already, your current setup (hardware, OS, octoprint/octopi version) are helpful. I am going to skim over this thread when I get home from work and start creating a troubleshooting guide.
My MK3 Parts: [Bowden] [New Shoes] [TPU Micro Springs]
Re: [Help Needed] Octoprint PrushMeshMap Plugin
I have the same issue with the install just hanging on downloading matlibplot. So i ran the pip install commands with verbose and i see that it fails when it tries to compile numpy. The official OctoPi image is based on Raspbian and it seems like that might come without setuptools and all that https://raspberrypi.stackexchange.com/questions/71127/how-can-i-install-numpy-and-pandapower
So that is probably why it got fixed when people installed pip as that will install wheel and setuptools as well.