n3bojs4 / octoprint-LCD1602

15 stars 12 forks source link

Plugin not install #18

Open tr00nic opened 3 years ago

tr00nic commented 3 years ago

Hello thanks for your work.. The plugin not install give me this error Requirement already satisfied: numpy in /home/pi/oprint/lib/python2.7/site-packages (from fake-rpi->OctoPrint-Lcd1602==0.1.0) (1.16.6) ERROR: Could not find a version that satisfies the requirement build-utils (from fake-rpi->OctoPrint-Lcd1602==0.1.0) (from versions: none) ERROR: No matching distribution found for build-utils (from fake-rpi->OctoPrint-Lcd1602==0.1.0) Error! Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

GrooveServer commented 3 years ago

Hello,

I encountered this same issue. After installing the plugin and getting the error you can resolve it.

Follow these steps to remove references to fake_pi. I could not get the fake_pi dependency to install without more invasive and complicated steps. Once you complete the steps below, restart your pi and the plugin will be functioning and in your plug-in list. Let me know if you have any questions.

Connect to the pi via SSH or HDMI/KB and navigate to /oprint/local/lib/python2.7/site-packages/octoprint_LCD1602 (Command: cd /oprint/local/lib/python2.7/site-packages/octoprint_LCD1602)

Once in this folder edit the file _init_.py (Command: nano _init_.py)

Make the following changes: Remove the lines: from fake_rpi import printf import fake_rpi

Also, Remove: Remove the if-else statement in definit(self).

It should look like this when you're done.

def init(self): self.mylcd = CharLCD(i2c_expander='PCF8574', address=0x27, cols=16, rows=2, backlight_enabled=True, charmap='A00')

# create block for progress bar
self.block = bytearray(b'\xFF\xFF\xFF\xFF\xFF\xFF\xFF')
self.block.append(255)
self.mylcd.create_char(1,self.block)

# init vars
self.start_date = 0

# create block for progress bar
#self.mylcd.create_char(1,self.block)

def JobIsDone(self,lcd):

# create final anim
lcd.clear()
lcd.write_string('Job is Done')
tr00nic commented 3 years ago

But i can´t install

GrooveServer commented 3 years ago

But i can´t install

It will have installed. It just won't say that it did. So if you got that error message it should be in the plug-ns folder. (It just didn't load). Did you look in the folder I mentioned?