Rylan-Meilutis / OctoPrint-Nozzle-Filament-Validator

Validate filament type and nozzle diameter before starting a print
GNU Affero General Public License v3.0
1 stars 0 forks source link

[BUG] plugin is disabled due to error #12

Closed dcorbin closed 1 month ago

dcorbin commented 1 month ago

Describe the bug 2024-04-19 10:07:14,656 - octoprint.plugin.core - ERROR - Exception while initializing plugin Nozzle_Filament_Validator, disabling it Traceback (most recent call last): File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint/plugin/core.py", line 1984, in initialize_implementation implementation.initialize() File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint/util/init.py", line 1686, in wrapper return f(*args, kwargs) File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint/util/init.py", line 1686, in wrapper return f(*args, *kwargs) File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint/util/init.py", line 1686, in wrapper return f(args, kwargs) [Previous line repeated 3 more times] File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint_nfv/init.py", line 347, in initialize self.extruders.update_data() File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint_nfv/extruders.py", line 203, in update_data num_extruders_in_db = len(self.fetch_extruders_from_database()) File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint_nfv/extruders.py", line 35, in fetch_extruders_from_database cursor.execute("SELECT id, nozzle_id, extruder_position FROM extruders") sqlite3.OperationalError: no such column: nozzle_id

To Reproduce Steps to reproduce the behavior:

  1. Install the plugin
  2. Restart Octoprint

Expected behavior I expect the plugin to load without errors.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Octoprint 1.9.3 SpoolManager Plugin 1.7.3 Nozzle Filament Validator 3.0.3

Rylan-Meilutis commented 1 month ago

I believe I have identified the issue, it will be resolved in the next few days.

Rylan-Meilutis commented 1 month ago

Fixed in current release

dcorbin commented 1 month ago

I continue to see this error in 3.1.0 2024-04-21 10:50:57,366 - octoprint.plugins.Nozzle_Filament_Validator - ERROR - Error adding extruder to the database: table extruders has no column named nozzle_id 2024-04-21 10:50:57,571 - octoprint.plugin.core - ERROR - Exception while initializing plugin Nozzle_Filament_Validator, disabling it Traceback (most recent call last): File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint/plugin/core.py", line 1984, in initialize_implementation implementation.initialize() File "/home/dcorbin/OctoPrint/venv/lib/python3.9/site-packages/octoprint/util/__init__.py", line 1686, in wrapper return f(*args, **kwargs)

dcorbin commented 1 month ago

It's possible I'm not installing the RC correctly.

Rylan-Meilutis commented 1 month ago

Have you tried uninstalling and cleaning up the plugin data and then reinstalling? If not, the database schema was messed up before and reinitializing the db would help. If you are comfortable with the command line you could go in and remove the db file and restart octoprint. Or you could go in and drop the extruders table from the db. Let me know if you need help with anything.

dcorbin commented 1 month ago

Tested and working.