Open SANCLA opened 1 year ago
Hey SchrodingsGat, thanks for responding.
Just as a check, I just made a second VM with a clean install, same result. Steps taken:
During step 6, the installation of inventree, I did notice a peculiar error message:
# inv update| [PLUGIN] Encountered an error with django:
App registry isn't ready yet.
Hello I actually have the same problem. In Proxmox I created a CT with Debian 11. I can easily install plugins there. This doesn't work under VM with debian 11. Unfortunately, the CT is a bit slower. Greetings
Might be the case that you are not installing the plugins from within the python environment that inventree is running in.
@rieders @SANCLA have you tried installing the plugin from within the web interface?
@matmair any comments here, regarding installing plugins (via command line) for the native installer setup?
I really recommend using the install functions in the plugin settings area. Everything else is going to be complicated and dependent on the OS.
Might be the case that you are not installing the plugins from within the python environment that inventree is running in.
@rieders @SANCLA have you tried installing the plugin from within the web interface?
@matmair any comments here, regarding installing plugins (via command line) for the native installer setup?
Inventree -> Plugins -> Install plugin: Package name: inventree-brother-plugin Source URL: empty
Feedback that plugin was installed, but plugin still not visible, not even after a reboot
Created a third vm with a fresh installation:
Installation log step 6, installation of inventree: https://pastebin.com/L6ZZiA4q
Tried the same steps without running apt update and upgrade, same results
Still seeing this in the setup logs every time:
# inv update| Applying report.0016_auto_20210513_1303... OK
# inv update| Applying report.0017_auto_20230317_0816... OK
# inv update| Applying report.0018_returnorderreport... OK
# inv update| [PLUGIN] Encountered an error with django:
App registry isn't ready yet.
09:34:04 [Q] INFO Enqueued 1
Applying report.0019_returnorderreport_metadata... OK
# inv update| Applying sites.0001_initial... OK
# inv update| Applying sites.0002_alter_domain_unique... OK
# inv update| Applying socialaccount.0001_initial... OK
# inv update| Applying socialaccount.0002_token_max_lengths... OK
So just testing here, but I am suspecting this issue has nothing to do with the plugin itself.
Installing inventree-zebra-plugin with below command & reboot: pip install git+https://github.com/SergeoLacruz/inventree-zebra-plugin Result: Same result, plugin not visible in inventree, even after installing it afterward with the Inventree gui.
Installing inventree-bulk-plugin with the install plugin button in inventree, same results.
Do you want me to raise the issue in the inventree repro?
Tried to reproduce rieder setup with a CT (container) in Proxmox, based on Debian 11. Had to install sudo and gnupg before I could run the one line install command Using the install plugin option in Inventree, tried to install inventree-brother-plugin, didnt show up, even after a reboot. Next I run pip install inventree-brother-plugin with a reboot, same result, plugin not showing up
Ok, here is a fun fact I found out. reading the one line installer, I suspected that ubuntu 22.04 is already supported. So I created a new vm (doing that a log these days it seems) and run the one-line installer on it. After Inventree was running, installing the plugin with Inventree add plugin.
Now, I get a lot more feedback:
The Plugin was installed
Collecting inventree-brother-plugin Downloading inventree_brother_plugin-0.7.1-py2.py3-none-any.whl (5.8 kB) Collecting brother-ql-inventree Downloading brother_ql_inventree-1.0-py3-none-any.whl (49 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.2/49.2 kB 2.8 MB/s eta 0:00:00 Requirement already satisfied: pillow>=3.3.0 in ./.heroku/python/lib/python3.10/site-packages (from brother-ql-inventree->inventree-brother-plugin) (9.5.0) Collecting click Downloading click-8.1.6-py3-none-any.whl (97 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 826.3 kB/s eta 0:00:00 Collecting pyusb Downloading pyusb-1.2.1-py3-none-any.whl (58 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.4/58.4 kB 762.5 kB/s eta 0:00:00 Collecting packbits Downloading packbits-0.6.tar.gz (2.2 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Requirement already satisfied: attrs in ./.heroku/python/lib/python3.10/site-packages (from brother-ql-inventree->inventree-brother-plugin) (23.1.0) Collecting future Downloading future-0.18.3.tar.gz (840 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 kB 2.2 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: future, packbits Building wheel for future (setup.py): started Building wheel for future (setup.py): finished with status 'done' Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492025 sha256=75375e88b7ce35314468a9a118bff4e7ac84780823d1e76f8b5bde154ea1eb7c Stored in directory: /home/inventree/.cache/pip/wheels/5e/a9/47/f118e66afd12240e4662752cc22cefae5d97275623aa8ef57d Building wheel for packbits (setup.py): started Building wheel for packbits (setup.py): finished with status 'done' Created wheel for packbits: filename=packbits-0.6-py3-none-any.whl size=2663 sha256=683b893210f8960ba45c387eec13cc20815d4ae69e5e1509104ed55be1aa122e Stored in directory: /home/inventree/.cache/pip/wheels/0c/84/56/86155baf9260c9bddc0fe7699ecc419b24d360f6a86ebb9a50 Successfully built future packbits Installing collected packages: packbits, pyusb, future, click, brother-ql-inventree, inventree-brother-plugin Successfully installed brother-ql-inventree-1.0 click-8.1.6 future-0.18.3 inventree-brother-plugin-0.7.1 packbits-0.6 pyusb-1.2.1
Previously, with Ubuntu 20.04, I only received "The Plugin was installed" as feedback. The plugin is also listed now in the plugins.txt file, that's also new.
Did a reboot and everything, but plugin is still not visible in inventree. (yes, plugins are enabled in the config file)
Hello Glad it's not just me. I thought it was me or my Proxmox server. Maybe there is a clean solution. I recently tried ubuntu 22. But there were some dependencies missing during the installation. It seems that something has happened again. At the moment I haven't set up a system that runs without problems.
Greetings Andre
It may be that this is related to running in a VM setup.
@SANCLA
Still seeing this in the setup logs every time:
You are seeing database migrations every time you "setup"? What exactly do you mean by "setup" here? This would indicate that the database is volatile in your install setup.
Can you also share a screenshot of your plugin configuration screen in InvenTree?
Hi SchrodingersGat,
- Do you have the "Check Plugins on Startup" setting configured?
By default, this setting is not enabled. Enabling this (after trying to install the plugin) makes no difference.
- What is in your "plugins.txt" file?
With Ubuntu 20.04, this file is basically empty, no mention of the brother plugin. With Ubuntu 22.04, the plugin is mentioned in this file.
You are seeing database migrations every time you "setup"? What exactly do you mean by "setup" here? This would indicate that the database is volatile in your install setup.
I see this being mentioned in the console during installation of Inventree
Can you also share a screenshot of your plugin configuration screen in InvenTree?
Of course, but since I have tested several different environments, I wonder for a moment the relevance of taking screenshots of all those environments (as far as I haven't cleaned them up yet). What would be a good starting situation regarding operating system that we could test further with? According to the documentation, only Debian 11 and Ubuntu 20.04 LTS would be officially supported at this time: https://docs.inventree.org/en/latest/start/installer/
Hello I created a plugins.txt with the user inventree under /opt/inventree/InvenTree/ There I entered a plugin. Before that I had modified the config_template.yaml and enabled plugins. I had specified the phat. After restarting I could not find the plugin in the list. So I installed the plugins like this. I used inventorree as a user. cd /opt/inventory source ./env/bin/activate and the corresponding pip plugin.
How can I now transfer my data to the "new" system?
Greetings
Hi All,
I am seeing the same behaviour as well. No plugins will show in the UI via pip or via the UI. Suspecting this is an issue in Inventory and not this plugin.
Cheers Tim
@timmyhadwen what is your install method for InvenTree? Docker? Installer?
@SchrodingersGat I used the single line install script which installed 0.12.3 (see issue created in Inventree/Inventree)
Any update on this matter? Is there any action we can take or test for you? Or perhaps buy you a cup of coffee ;-)?
To get back up to speed on where we were with this, are you are still running 0.12.3
installed via the command-line installer?
Actually, I tossed the old environment away yesterday and was looking to a preferred setup. I prefer a baremetal configuration and based on this conversation, it seems that docker could be a better supported setup.
I can setup both for testing...
I run setups with both docker and bare-metal installs, both of which I have not had any issue installing the brother label plugin. It looks like you have been having issues getting any plugins to run at all?
I eventually got it running by manually entering the virtual env and installing it, however installing it via the website still doesn't work.
It's getting frustrating to the point where I am thinking about abandoning Inventree altogether. But okey then, build a brand new bare-metal setup...
If you need anymore information, please feel free to look at the previous comments. Thanks
@SANCLA I can understand your frustration, and sorry that we have not been able to work it out for you yet.
From the overall comments here it seems there is a general bug using plugins with the command line installed version of InvenTree. I will have to deep-dive into this to work out what is going on. I am away for the next few days, but will allocate some time to it next week.
If anyone works it out before then, great :)
I have found some circumstances in which installing the plugin via the web interface just does not work. However no "rhyme or reason" to it yet. Check out https://github.com/inventree/InvenTree/pull/5624
Hey everyone, I think I have worked out what is going on here. In latest stable version of InvenTree, sometimes if the plugin fails to install, it does not correctly capture the failure message and thinks it has installed correctly.
So, likely what has happened is that the plugin has not really installed at all, but we are not seeing why (because there is no error message).
I have a full refactor of the plugin code here - https://github.com/inventree/InvenTree/pull/5624
I will backport a much simpler version of this (just the bug fix, essentially) for the next stable release. Hopefully at least then we can see why the plugin is not installing correctly, and go from there
@timmyhadwen @SANCLA both master and stable now have the plugin installer fix applied - at the very least, installing via the web app should correctly show that the plugin install has failed, and the reason why. Please LMK if you have better luck, or more data to share, with the latest improvements.
Since i'm away and my vpn to the homelab, I created a small temporary digitalocean debian vm, debian 10. Executed the install script, but it seems not the be using the latest inventree version.
Will be checking it again in a few days.
Just tested this with a fresh new VM. OS: Ubuntu 22.04.3 LTS Inventree version: 0.12.8
Steps taken:
This gives a green feedback field that states no errors after installing the plugin. But the plugin still not visible in Inventree. I tried to install it again with "pip install inventree-brother-plugin", same result.
@SANCLA does the new version tell you where the plugin is installed? When you install via the server or should give you feedback including the path where the plugin was installed.
I have taken steps to install the plugin. Manually, including dependencies. And by adding the plugin to plugins.txt
However, I dont see any new option or even the plugin beeing active in Inventree. What am I missing here and what would be the steps to introduce a Brother labelprinter into inventree (Brother QL-810Wc)?
Environment is Ubuntu 20.04.6 LTS Invetree is version 0.12.3