eyal0 / OctoPrint-TimeToFilament

Display time until next filament change and other time-until-whatever info in OctoPrint
3 stars 1 forks source link

Installation fails #41

Closed Youras closed 1 year ago

Youras commented 1 year ago

Hello,

my octopi has no intenet connection, thus I install all the plugins via the webapplication with uploading the zip folder. However, this plugin seems to require internet connection, since I get some HTTP request error

ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /eyal0/OctoPrint-PrintTimeGenius/archive/master.zip (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xb547d808>: Failed to establish a new connection: [Errno 111] Connection refused'))

Can this be resolved somehow?

Best, Raschid

eyal0 commented 1 year ago

The PrintTimeGenius plugin is required for the TimeToFilament plugin to work. Do you have PTG installed?

Youras commented 1 year ago

Yes, I successfully installed the PTG plugin a couple of weeks ago.

eyal0 commented 1 year ago

Okay, I have an idea. Let's try to remove the OctoPrint-PrintTimeGenius requirement check from TimeToFilament. You already have PTG installed so it should be fine.

Unzip the zipfile that you are installed. In the file setup.py on line 36 we see this: https://github.com/eyal0/OctoPrint-TimeToFilament/blob/master/setup.py#L36

plugin_requires = ["OctoPrint-PrintTimeGenius @ https://github.com/eyal0/OctoPrint-PrintTimeGenius/archive/master.zip",

Let's remove the github part so that it won't go to the internet to look for the latest version:

plugin_requires = ["OctoPrint-PrintTimeGenius",

After modification, rezip that file and try installation again.

If that doesn't work then let's remove the PTG requirement check entirely. This isn't as good because it will now register TTF without needing PTG and you won't get a warning if you try to remove PTG without first removing TTF.

plugin_requires = [

Like that. In both cases, we are only removing the requirement check. The requirement continues to exist, however. TimeToFilament will not work properly without PTG installed.

Let me what worked so that I can give this advice again as needed. Let me know if you need help with the zip files.

Youras commented 1 year ago

Your first advice did the job, thank you!