Replies: 1 comment
-
well, after doing a bare metal installation everything is working as expected now. Something seems messed up in the docker container... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello world,
i'm currently developing a plugin for integrating the Niimbot Label Printers into InvenTree, but facing some issues.
I'm running the current stable docker container and install my plugin through pip. The plugin and its dependencies are installed into the python default path "/usr/local/lib/python3.11/site-packages/". But InvenTree is storing its dependencies at "/root/.local/lib/python3.11/site-packages/" and is expecting the plugins at "/home/inventree/data/plugins/".
I was expecting that inside the container, there would be some kind of venv configured for InvenTree, but there isn't.
This way, the plugins are not properly installed with just using pip. But same applies to the admin frontend. When i install a plugin via admin frontend (for example, the inventree-brother-plugin from the repository), it is downloaded and installed, but in the same wrong place.
I have to move the plugin directories manually to get the plugins to work. But then another problem arises: InvenTree can't manage to find the imports, although they are configured in the setup.py and installed. Of course in the wrong directory again, but even if i move them to the /root/.local/... path they aren't found. Thats weird and kinda frustrating. I can do everything manually but then how am i supposed to publish a working plugin, if i can't verify that the installation process is working?
Since it's happening with the plugins from the plugin repository as well, there must be something broken in my installation. But i follow the standard procedure for docker deployment and don't change the docker container. So is this a bug in the current stable release or did i miss something? I hope someone can give me a hint!
Thanks a lot,
Keivan
Beta Was this translation helpful? Give feedback.
All reactions