Closed murray484 closed 1 year ago
@murray484 with the given information no. What version of InvenTree are you running, what plugin verison, on what OS and with what deployment method?
@matmair I'm running Inventree v0.8.3, plugin version is the latest on pip, running using docker-compose (with the production docker-compose file from the install tutorial) on Ubuntu 22.04.
ValueError: '/usr/local/lib/python3.9/importlib/metadata.py' is not in the subpath of '/usr/local/lib/python3.9/site-packages' OR one path is relative and the other is absolute.
@matmair looks like an issue relating to python venv pathing perhaps?
@SchrodingersGat could be a bug we fixed in 0.8.x release regarding error detection and path traversal. Depends on the executing environment though.
I can reproduce this pretty simply, by adding inventree-brother-plugin
to plugins.txt
It looks like the importlib metadata (added recently) errors out, most likely due to pathing if the plugins are installed within the venv context?
I will have a look after work.
It looks like the importlib metadata (added recently) errors out, most likely due to pathing if the plugins are installed within the venv context?
Could be 🤷
Ok on dev I can reproduce, but not in production. The solution I thought of is not working, might have to dig deeper.
@murray484 I have raised an issue in the InvenTree code base, I believe that this is a fundemental error not linked just to this plugin:
Hi, I'm trying to install this plugin on a fresh instance of Inventree. When I add the plugin 'inventree-brother-plugin' to my plugins.txt file, the server fails to start and I see this log in my 'inventree-worker' container:
Any ideas on how to resolve this?