malnvenshorn / OctoPrint-FilamentManager

OctoPrint plugin to manage your filament inventory
GNU Affero General Public License v3.0
131 stars 60 forks source link

Connection fail please help (pgadmin4 and psycopg2 connect script works) #159

Closed plug-it-in closed 5 years ago

plug-it-in commented 5 years ago

Describe the bug When I press the Test Connection button for the external database connection it turns red. I can connect to the database as per your setup in postgresql with both pgadmin4 from my Windows machine to the Raspbertry PI OctoPrint, and using a simple script (see screen shot below) connects to postgresql database fine as well.

Expected behavior Button to turn green

Did the same happen when all other 3rd party plugins are disabled? Yes

Log file Drag and drop the octoprint.log here. octoprint.log b Screenshots 2019-04-23_16-13-31 2019-04-23_15-45-50

malnvenshorn commented 5 years ago

2019-04-23 15:37:05,022 - octoprint.plugins.filamentmanager - ERROR - Failed to initialize database: No module named psycopg2

The psycopg2 module is missing.

plug-it-in commented 5 years ago

I am afraid yoiu didnt read the complete log and fixed on the first error. I saw that and fixed that issue already. Otherwise the tiny iof program would not have worked.

plug-it-in commented 5 years ago

How does one reopen an issue ?