PrusaOwners / OctoPrint-PrusaMeshMap

This plugin performs a mesh bed leveling operation then returns the results as an easy to read heatmap.
MIT License
133 stars 31 forks source link

MemoryError when installing on low memory systems (Pi) #3

Closed TheBrigandier closed 6 years ago

TheBrigandier commented 6 years ago

Received a report of pip returning "MemoryError" when installing this on a low memory Pi system. Adding this issue to document the eventual fix.

TheBrigandier commented 6 years ago

Seems this may be able to be fixed with --no-cache-dir added to the pip arguments in OctoPrint's Plugin Manager configuration. Awaiting feedback from tester.

TheBrigandier commented 6 years ago

Unable to fix. This is an issue with Pi Zero W and its memory constraints. Updated README.md with info on working around it.

andrelx commented 6 years ago

The solution is to pre-install the dependencies, as explained in the README.md file, BUT you need to tell pip not to read all the file in memory by using the --no-cache-dir :

/home/pi/oprint/bin/pip --no-cache-dir install matplotlib numpy

The MemoryError will disappear and the dependencies will be installed as needed.

The README.md file should be corrected accordingly.

André