WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.52k stars 1k forks source link

Unable to install weblate.discovery.discovery #11795

Closed mnietz closed 3 months ago

mnietz commented 3 months ago

Describe the issue

When i try to install the Component Discovery Plugin using the WebUI i get the Exception below.

Any Idea? Thanks in advance.

I already tried

Steps to reproduce the behavior

Go to: manage/addons/ and click install-buttonfor discovery addon

Expected behavior

No response

Screenshots

No response

Exception traceback

AttributeError at /manage/addons/
'NoneType' object has no attribute 'pk'
Request Method: POST
Request URL:    https://weblate.zeg.com/manage/addons/
Django Version: 5.0.4
Exception Type: AttributeError
Exception Value:    
'NoneType' object has no attribute 'pk'
Exception Location: /home/weblate/weblate-env/lib/python3.11/site-packages/weblate/addons/base.py, line 376, in pre_install
Raised during:  weblate.addons.views.AddonList
Python Executable:  /usr/bin/uwsgi-core
Python Version: 3.11.2
Python Path:    
['/home/weblate/weblate-env',
 '.',
 '',
 '/usr/lib/python311.zip',
 '/usr/lib/python3.11',
 '/usr/lib/python3.11/lib-dynload',
 '/home/weblate/weblate-env/lib/python3.11/site-packages']

How do you run Weblate?

PyPI module

Weblate versions

5.5.5

Weblate deploy checks

SystemCheckError: System check identified some issues:

ERRORS:
?: (weblate.E011) E-mail addresses for site admins is misconfigured
    HINT: https://docs.weblate.org/en/weblate-5.5.5/admin/install.html#production-admins

WARNINGS:
?: (security.W004) You have not set a value for the SECURE_HSTS_SECONDS setting. If your entire site is served only over SSL, you may want to consider setting a value and enabling HTTP Strict Transport Security. Be sure to read the documentation first; enabling HSTS carelessly can cause serious, irreversible problems.
?: (security.W008) Your SECURE_SSL_REDIRECT setting is not set to True. Unless your site should be available over both SSL and non-SSL connections, you may want to either set this setting True or configure a load balancer or reverse-proxy server to redirect all connections to HTTPS.
?: (security.W012) SESSION_COOKIE_SECURE is not set to True. Using a secure-only session cookie makes it more difficult for network traffic sniffers to hijack user sessions.
?: (security.W018) You should not have DEBUG set to True in deployment.
?: (weblate.W033.Subversion) Failure in loading VCS module for Subversion: git: 'svn' is not a git command. See 'git --help'.

The most similar commands are
    fsck
    mv
    show
 (1)
    HINT: https://docs.weblate.org/en/weblate-5.5.5/vcs.html

INFOS:
?: (weblate.I021) Error collection is not set up, it is highly recommended for production use
    HINT: https://docs.weblate.org/en/weblate-5.5.5/admin/install.html#collecting-errors
?: (weblate.I028) Backups are not configured, it is highly recommended for production use
    HINT: https://docs.weblate.org/en/weblate-5.5.5/admin/backup.html

System check identified 8 issues (1 silenced).

Additional context

No response

github-actions[bot] commented 3 months ago

Thank you for your report; the issue you have reported has just been fixed.