Skip to content
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

Plugin cannot be installed #7

Closed
ThorstenStr opened this issue Mar 19, 2024 · 14 comments · Fixed by #8
Closed

Plugin cannot be installed #7

ThorstenStr opened this issue Mar 19, 2024 · 14 comments · Fixed by #8
Labels
bug Something isn't working Fund

Comments

@ThorstenStr
Copy link

ThorstenStr commented Mar 19, 2024

Hello Matmair,
Thank you very much for the really great work. I would like to use the plugin in my InvenTree installation.
Ubuntu 20.04.6
InvenTree: 0.14.2
Python 3.9.2
Django 4.2.10

but I get the following error when adding it:
inventree_wled_locator cannot import name 'url' from 'django.conf.urls' (/opt/inventree/env/lib/python3.9/site-packages/django/conf/urls/init.py)
I have already tested older versions of Django.
Can you help me?
Thank you very much
Thorsten

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you
Fund with Polar
@matmair
Copy link
Member

matmair commented Mar 19, 2024

Hi, I am currently rewriting all of my plugins and processes, not sure when I will have time to revisit this as it is rather low in the number of requests. See

@ThorstenStr
Copy link
Author

Hello, thank you very much for the feedback. I would of course be very happy if there will be a future update, to be honest, I only switched to Inventree because of this function. I've been toying with the idea for a long time, I've also participated in one or two crowdfunding projects, but apart from PickbyLight they don't meet my requirements. Inventree is an all-in-one package after all ;)

@matmair matmair added the bug Something isn't working label Mar 22, 2024
@polar-sh polar-sh bot added the Fund label Mar 22, 2024
@matmair matmair moved this to Backlog in InvenHost Roadmap Mar 22, 2024
@matmair
Copy link
Member

matmair commented Mar 23, 2024

I have added it to the backlog but there is very low interest from the community so no promises on the timeline.

@PricelessToolkit
Copy link

PricelessToolkit commented Jun 29, 2024

I'm holding off on updating my server solely because of this module. Currently, I'm using Inventree version "0.12.7" with module version "0.3.0"
P.S. I hope funding will help speed up development a little bit.

@matmair
Copy link
Member

matmair commented Jun 30, 2024

@ThorstenStr @PricelessToolkit version 0.4.0 should resolve the issues and be available for update on your instances. Please report back if you encounter issues.

@PricelessToolkit thanks for the funding

@invenhost invenhost deleted a comment from invenhost-integration bot Jun 30, 2024
@PricelessToolkit
Copy link

Thank you very much! The installation now completes successfully. However, when I click on the locate icon, a new error notification appears: "Error object(xx)." All the configurations, such as IP and LED counts, remain the same. Is there a way to enable a debug mode?

@PricelessToolkit
Copy link

PS: "Turn off" from the plugin menu is working!

@ThorstenStr
Copy link
Author

Hi everyone, thanks for the update on the plugin, I'll do my part tomorrow too ;)
However, I still can't install it. when I do it via the package name "inventree-wled-locator", I still get the following message:

discovery | inventree_wled_locator | cannot import name 'url' from 'django.conf.urls' (/opt/inventree/env/lib/python3.9/site-packages/django/conf/urls/init.py)

It doesn't work via URL either, maybe I'm doing something wrong with the specification?

@invenhost invenhost deleted a comment from invenhost-integration bot Jul 1, 2024
@invenhost invenhost deleted a comment from invenhost-integration bot Jul 1, 2024
@invenhost invenhost deleted a comment from invenhost-integration bot Jul 1, 2024
@matmair
Copy link
Member

matmair commented Jul 1, 2024

@PricelessToolkit can you post the contents of the error in a new issue? You should get to the detailed traceback by clicking on the notification. If you already marked it as read you can click on the "Show all notifications" button and find it in the "history" section.

@matmair
Copy link
Member

matmair commented Jul 1, 2024

@ThorstenStr try to restart the server or reload the plugins from the plugins settings.

@invenhost invenhost deleted a comment from invenhost-integration bot Jul 1, 2024
@ThorstenStr
Copy link
Author

Hello,
I have restarted invenhost, reinstalled the plugin, then it was initially deactivated:

grafik

After I activated it, the page reloaded and I can no longer access the settings:
grafik

@PricelessToolkit
Copy link

@PricelessToolkit can you post the contents of the error in a new issue? You should get to the detailed traceback by clicking on the notification. If you already marked it as read you can click on the "Show all notifications" button and find it in the "history" section.

Hi, unfortunately when I click on the error page "http://192.168.40.123/admin/error_report/error/76/change/" it says "This site can’t be reached" When I click on the "Show all notifications" I can see all errors history but I can't open the errors.

@matmair
Copy link
Member

matmair commented Jul 3, 2024

@PricelessToolkit are you logged in as a superuser? This sounds like you are not an admin or have turned of admin pages fully. Can you open http://192.168.40.123/admin/error_report?

@PricelessToolkit
Copy link

ok that works!

File "/home/inventree/src/backend/InvenTree/InvenTree/tasks.py", line 212, in offload_task
task.run()

File "/root/.local/lib/python3.11/site-packages/django_q/tasks.py", line 727, in run
self.id = async_task(self.func, *self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/.local/lib/python3.11/site-packages/django_q/tasks.py", line 70, in async_task
pack = SignedPackage.dumps(task)
^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/.local/lib/python3.11/site-packages/django_q/signing.py", line 15, in dumps
return signing.dumps(
^^^^^^^^^^^^^^

File "/root/.local/lib/python3.11/site-packages/django/core/signing.py", line 152, in dumps
return TimestampSigner(key=key, salt=salt).sign_object(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/root/.local/lib/python3.11/site-packages/django/core/signing.py", line 250, in sign_object
data = serializer().dumps(obj)
^^^^^^^^^^^^^^^^^^^^^^^

File "/root/.local/lib/python3.11/site-packages/django_q/signing.py", line 35, in dumps
return pickle.dumps(obj, protocol=pickle.HIGHEST_PROTOCOL)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

AttributeError: Can't pickle local object 'View.as_view.<locals>.view'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Fund
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants