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

Unable to install weblate.discovery.discovery #11795

Closed
2 tasks done
mnietz opened this issue Jun 6, 2024 · 1 comment
Closed
2 tasks done

Unable to install weblate.discovery.discovery #11795

mnietz opened this issue Jun 6, 2024 · 1 comment
Assignees
Labels
bug Something is broken.
Milestone

Comments

@mnietz
Copy link

mnietz commented Jun 6, 2024

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

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

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

@nijel nijel added the bug Something is broken. label Jun 10, 2024
@nijel nijel self-assigned this Jun 10, 2024
@nijel nijel added this to the 5.6 milestone Jun 10, 2024
@nijel nijel closed this as completed in 9c20c7a Jun 10, 2024
Copy link

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

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

nijel added a commit that referenced this issue Jun 10, 2024
Do not rely on self.instance.component, use passed object instead.

Issue #11795
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants