Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Why is the plugin not showing up in the plugin manager? #36

Open
Boby71 opened this issue Nov 18, 2018 · 9 comments
Open

Why is the plugin not showing up in the plugin manager? #36

Boby71 opened this issue Nov 18, 2018 · 9 comments

Comments

@Boby71
Copy link

Boby71 commented Nov 18, 2018

The description says, I should use the built-in plugin manager - but I'm unable to find it there.
Running OptoPi on 1.3.9 and since yesterday 1.3.10 RC2. Something special I need to do to enable it?

@fraschetti
Copy link

fraschetti commented Jan 12, 2019

I ran into this same issue. For my particular case, here are the relevant OctoPrint log messages....

2019-01-12 16:19:57,477 - octoprint.cli.server - ERROR - Uncaught exception
ImportError: No module named _multiarray_umath
2019-01-12 16:19:57,478 - octoprint.plugin.core - ERROR - Error loading plugin PrusaMeshMap
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/core.py", line 847, 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 16, in <module>
    import matplotlib.pyplot as plt
  File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/pyplot.py", line 31, in <module>
    import matplotlib.colorbar
  File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/colorbar.py", line 32, in <module>
    import matplotlib.artist as martist
  File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/artist.py", line 16, in <module>
    from .path import Path
  File "/home/pi/oprint/local/lib/python2.7/site-packages/matplotlib/path.py", line 21, in <module>
    from . import _path, rcParams
ImportError: numpy.core.multiarray failed to import

It's worth noting that this is likely isn't an issue with PrusaMeshMap but rather Python+Pip and/or the Raspberry Pi (OctoPi) distribution I'm running.
I've been through various iterations of reinstalling packages via pip but have yet to find a solution.

@Boby71
Copy link
Author

Boby71 commented Jan 15, 2019

My PIP installation was corrupt; I reinstalled OctoPi from the scratch and now I was able to install PrusaMeshMap via the link from Github (zip-master). But it still doesn’t show up in the plugin manager...

@fraschetti
Copy link

I'd check your octoprint.log file ( ~/.octoprint/logs/octoprint.log for the OctoPi distributions) to see if it's reporting an error with the plugin.

To confirm my issue was specific to my local environment, I put a stock OctoPi image on a an SD card and ensured I installed mathplotlib and numpy via the provided command...
/home/pi/oprint/bin/pip --no-cache-dir install matplotlib numpy
That fresh install approach didn't enoucnter any errors which confirmed the issue had to be with my setup.

The most likely (although not confirmed) cause for my local instance was a conflicting version of pip from my Python 3.7 installation. Although Python + Pip for OctoPrint should be isolated, one of my reinstall attempts which ran against the out of the box Python+Pip failed on the matplotlib compilation and referenced Python 3.7 directories. As best I can tell, installing Python 3.7 dropped a pip3 and pip exeutable in /usr/local/bin/ and that may have erroneously been used instead of the intended pip during parts of the compilation process.

This numpy issue referenced here is all over the web and each fix is obviously unique to each root cause.
For my particular issue where I had installed Python 3.7 and may not have specifically used the provided pip command to install matplotlib and numpy, here was my solution:

  1. Delete /usr/local/bin/pip (this executable isn't there in the stock OctoPi build and equivalent to the duplicate pip3 in my setup)
    sudo rm usr/local/bin/pip
  2. Delete the existing matplotlib and numpy builds (just in case)
    rm -rf /home/pi/oprint/local/lib/python2.7/site-packages/matplotlib*
    rm -rf /home/pi/oprint/local/lib/python2.7/site-packages/numpy*
  3. And then install matplotlib and numpy per as suggested by the plugin devs
    pip install matplotlib numpy --no-cache-dir --upgrade --ignore-installed

My situatation and solution are likely unique to my setup so I'd suggest folks take a look at octoprint.log first to assess the root cause and then go from there.

Good luck!

@CoteRL
Copy link

CoteRL commented Feb 1, 2019

It doesn't appear for me or even using the web version of the plugin repository. https://plugins.octoprint.org/ Searching for the plugin returns no results.

@Arksine
Copy link

Arksine commented Feb 1, 2019

The plugin isn't part of Octoprint's repository, it has to be installed using the URL or archive method. Unfortunately the original creator sold his MK3 and moved on, and at the moment no one is available to maintain it. I'm doubtful that anyone will pick up development any time soon, if ever.

@dovecode
Copy link

dovecode commented Mar 9, 2019

@Arksine, do you know if anyone has picked up this project? I notice that @mcm001's fork has more activity than this repo...

@Arksine
Copy link

Arksine commented Mar 9, 2019

He was working on it for a time, but I believe he is busy with FRC. I don't know the status of his fork (ie: how close it is to merging) or if he has any plans to continue development after the competition is complete.

This project's status remains dormant. I'm leaving it open for the time being (along with all issues) in the event that someone decides to pick it up. If its still inactive this by the summer I will likely archive it.

@mcm001
Copy link

mcm001 commented Mar 9, 2019 via email

@dovecode
Copy link

dovecode commented Mar 9, 2019

Is everything covered in issues on your fork, @mcm001? I don't mind taking a look, but I'm in no way a Python or gcode veteran...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants