Closed jaytonic closed 3 years ago
I have the exact same isue.
Hey guys, if you are in a converted python 3 environment you may be able to get this working if you install the right system dependency. Try this and restart OctoPrint.
sudo apt install libatlas3-base
Helping a user in Discord, this is the error from octoprint.log that seems relevant.
2021-03-05 21:51:19,218 - octoprint.plugin.core - ERROR - Error loading plugin stats
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/core.py", line 1298, in _import_plugin
module = _load_module(module_name, spec)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/core.py", line 69, in _load_module
return imp.load_module(name, f, filename, details)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/vendor/imp.py", line 238, in load_module
return load_package(name, filename)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/vendor/imp.py", line 212, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 696, in _load
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_stats/__init__.py", line 18, in <module>
import pandas as pd
File "/home/pi/oprint/lib/python3.7/site-packages/pandas/__init__.py", line 29, in <module>
from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
File "/home/pi/oprint/lib/python3.7/site-packages/pandas/_libs/__init__.py", line 13, in <module>
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 44 from C header, got 40 from PyObject
It seems recent panda versions might need newer version of numpy, so you guys might try the following command via SSH. That worked for the person we were helping out.
~/oprint/bin/pip install --upgrade numpy>=1.20.1
I looks like you want at least 1.20.1 numpy since 1.19.4 showed the same issue.
It seems recent panda versions might need newer version of numpy, so you guys might try the following command via SSH. That worked for the person we were helping out.
~/oprint/bin/pip install --upgrade numpy>=1.20.1
@jneilliii: That worked for me, thanks! But I received follwing error message regarding your Bed Visualizer plugin during installation of numpy 1.20.1:
Installing collected packages: numpy Attempting uninstall: numpy Found existing installation: numpy 1.19.2 Uninstalling numpy-1.19.2: Successfully uninstalled numpy-1.19.2 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. bed-visualizer 1.0.1 requires numpy<=1.19.2,>=1.16.0, but you have numpy 1.20.1 which is incompatible. Successfully installed numpy-1.20.1
@fnsign yeah, I assumed that was going to happen and have already updated the plugin's dependencies. You can force reinstall by copying/pasting the URL below in Plugin Manager > Get More > ...from URL and clicking install over your existing version. I removed the version pinning.
https://github.com/jneilliii/OctoPrint-BedLevelVisualizer/archive/master.zip
@jneilliii Thanks for providing the change so quickly! I installed it and it works w/o problems.
Hey guys, if you are in a converted python 3 environment you may be able to get this working if you install the right system dependency. Try this and restart OctoPrint.
sudo apt install libatlas3-base
This is something I already did, if I run it, it says that 0 newly installed, 0 upgraded packages.
It seems recent panda versions might need newer version of numpy, so you guys might try the following command via SSH. That worked for the person we were helping out.
~/oprint/bin/pip install --upgrade numpy>=1.20.1
Then I did this, took a long time, but finished successfully.
Then I tried to install again the package. Still ended by saying the package "Unknown" has been installed, and I can't find the package anywhere.
Checking the logs files, I found this error:
2021-03-07 18:11:48,298 - octoprint.plugin.core - ERROR - Error loading plugin stats
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/core.py", line 1298, in _import_plugin
module = _load_module(module_name, spec)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/core.py", line 69, in _load_module
return imp.load_module(name, f, filename, details)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/vendor/imp.py", line 238, in load_module
return load_package(name, filename)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/vendor/imp.py", line 212, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 696, in _load
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_stats/__init__.py", line 18, in <module>
import pandas as pd
File "/home/pi/oprint/lib/python3.7/site-packages/pandas/__init__.py", line 29, in <module>
from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
File "/home/pi/oprint/lib/python3.7/site-packages/pandas/_libs/__init__.py", line 13, in <module>
from pandas._libs.interval import Interval
File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 44 from C header, got 40 from PyObject
What is returned as versions for numpy/pandas when you run ~/oprint/bin/pip freeze
?
My bad. In fact I did a
pip install --upgrade numpy>=1.20.1
And not
~/oprint/bin/pip install --upgrade numpy>=1.20.1
Now it works
where I must run this command ?
where I must run this command ?
you have to login with SSH to the raspberry.
Closing due to inactivity
Describe the bug I wanted to install your plugin, so I upgraded my install to python 3. Then I installed your plugin dependencies and then the plugin. After reboot, no stats tab is present and I don't find the plugin in the plugin list
To Reproduce Steps to reproduce the behavior:
sudo apt install libatlas-base-dev
I also tried to install the plugin from the link, no luck either
Expected behavior Plugin is installed, tab is present and unable to reinstall
Screenshots If applicable, add screenshots to help explain your problem. Once installed, the reboot message is weird:
Environment information:
Additional context The install log: