-
-
Notifications
You must be signed in to change notification settings - Fork 666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Label printer plugin does not work #7245
Comments
Are you trying to print via the web interface? Or via an external API call? Where are you seeing the error message. |
Yes we are trying to print from the web interface and the error message comes from the inventree worker |
Hmmm... |
It could be that the printer plugin is simply not installed on the worker, therefore the plugin cannot be found when the worker is trying to load it. |
I noticed however that yesterday the label was not printed, so I tried to download the label in pdf format and send this to the printer. this however did not work either. |
I am a co-worker of @HannesMorre. /home/inventree # pip3 install inventree-zebra-plugin
Requirement already satisfied: inventree-zebra-plugin in /usr/local/lib/python3.11/site-packages (0.5.2)
Requirement already satisfied: zpl>=0.1.11 in /usr/local/lib/python3.11/site-packages (from inventree-zebra-plugin) (0.1.11)
Requirement already satisfied: Pillow in /root/.local/lib/python3.11/site-packages (from zpl>=0.1.11->inventree-zebra-plugin) (10.2.0)``` |
@SchrodingersGat @wolflu05 @SergeoLacruz |
Try to install the brother printer. This is very similar and should work. I cannot reproduce it here |
so the brotherprinter plugin should work with the zebra printer? |
Of course not. |
Still happening |
Sorry, it's really hard, I cannot reproduce this. Are you sure, that:
If all of the above is true, please enable debug logs and provide the full log output from the server and the worker container (redact any sensitive values) |
This will be A) potentially hard to track down and debug Please try and provide the log / debug information as requested by @wolflu05 above. I don't have any time right now to look into this but if it is still open next week I can jump in and try to reproduce |
Could #6733 be a possible fix? |
@lqdmist can you provide the requested logs/debug information? |
The plugins are installed in the worker container: tcit@docker:/opt/deployment/inventree$ docker exec -it inventree-worker ash
/home/inventree # pip freeze | grep brother
brother-ql-inventree==1.1
inventree-brother-plugin==0.9.0 /home/inventree # pip freeze | grep zebra
inventree-zebra-plugin==0.5.2 |
@HannesMorre I have just rolled back to This indicates that the plugin code is running. Have you tried stopping and restarting the "background worker" docker container? |
Please verify that this bug has NOT been raised before.
Describe the bug*
We installed the inventree-zebra-plugin and it seems to have been installed correctly, but when we try to print a label we get this error:
This is the plugins.txt file:
And the config:
The plugin was installed through the settings page first, but we also tried to install it with pip install.
Steps to Reproduce
Expected behaviour
The label is printed from the zebra printer.
Deployment Method
Version Information
Version Information:
InvenTree-Version: 0.14.4
Django Version: 4.2.11
Commit Hash: 35fc954
Commit Date: 2024-03-22
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.10.0-28-amd64-x86_64-with
Installer: DOC
Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.0.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.0.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}, {'name': 'SupplierCart', 'slug': 'suppliercart', 'version': '0.4.0'}, {'name': 'RapidocPlugin', 'slug': 'inventree-rapidoc', 'version': '1.1'}, {'name': 'Zebra', 'slug': 'zebra', 'version': '0.5.2'}]
Please verify if you can reproduce this bug on the demo site.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: