Closed eikeime closed 5 years ago
Thank you so much @eikeime for reporting this bug. I don't have a NanoPi so I need your help to figure out where it is broken and how to fix.
Can you ssh to your OctoPi to run these commands and post here the output of these commands?
/home/pi/oprint/bin/python -c 'import distutils.util; print(distutils.util.get_platform());'
/home/pi/oprint/bin/python -c "print(open('/proc/cpuinfo', 'r').read())"
First, thank u for your great project.
my octoprint is located in "/tools/OctoPrint/venv/"
so i run those two command from there, the returned results are
linux-armv7l
and
`processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 29.71 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5
processor : 1 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 29.71 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5
processor : 2 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 29.71 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5
processor : 3 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 29.71 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5
Hardware : sun8i Revision : 0000 Serial : 02c00081e029938d `
It looks like Nano Pi is using exactly the same CPU modules as RPi and that's why the plugin failed to tell them apart. I do a bit more research to see what's the best way to reliably identify if the plugin is running inside a RPi but it may take a while... sorry! @eikeime
Same problem here on an Orange Pi Zero.
You should probably not just grep for armv6l/armv7l, because there's a lot of these platforms out there that are not Raspberry Pis ;)
As per [1], I'd suggest checking /sys/firmware/devicetree/base/model
(but note that this file exists on my system with the contents Xunlong Orange Pi Zero
), or the Hardware
line of /proc/cpuinfo
no hurry, already grabbed another raspberry pi zero for the project on hand.
Thank you so much your help and supportiveness. We just fixed it based on @thubot 's suggestion and released patch version 1.0.1. Please uninstall the plugin and install it again and it should work. I'll leave this issue open for a few days in case you still have problems with installation.
Just installed it again on the test board, total success, thank u for your quick response on this problem. :D
Cant successfully install plugins on none raspberry pi device due to unable to build picamera.
I am using a Nanopi Neo as a Octoprint server, when install from control panel, i get Error log: