Closed Bubu closed 2 years ago
Thank you for your report; the issue you have reported has just been fixed.
I am seeing a very similar problem with my freshly installed Weblate 5.1 instance:
?: (weblate.W039.AWSTranslation) Error importing module 'weblate.machinery.aws' in WEBLATE_MACHINERY: No module named 'boto3'
HINT: https://docs.weblate.org/en/weblate-5.1/admin/machine.html
?: (weblate.W039.GoogleV3Translation) Error importing module 'weblate.machinery.googlev3' in WEBLATE_MACHINERY: No module named 'google'
HINT: https://docs.weblate.org/en/weblate-5.1/admin/machine.html
?: (weblate.W039.MicrosoftTerminologyService) Error importing module 'weblate.machinery.microsoftterminology' in WEBLATE_MACHINERY: No module named 'zeep'
HINT: https://docs.weblate.org/en/weblate-5.1/admin/machine.html
After installing the three packages Iboto3
, google-cloud-translate
and zeep
via pip resolved the warnings and the components became available in the "Automatic suggestions" tag.
I did not expect to see warnings after installing Weblate from scratch. I would have expected to either see the plugin to be deactivated (but visible) with a hint to the missing dependency or the dependency to be installed automatically.
With he exception of zeep
, these are not listed under the optional dependencies list
It can also be confusing that the warning states that the google
module is missing, but one has to install the google-cloud-translate
module
I can also open a new issue for this if that is preferred
I've improved the docs in 2f855daf6266dfed27be8e54c7b1cd6711552a85, but yes a separate issue would be better.
Describe the issue
I've update https://weblate.bubu1.eu to version 4.13.1 and then started getting errors about missing
boto3
package:Error importing module weblate.machinery.aws in WEBLATE_MACHINERY: "No module named 'boto3'"
I have never configured/activated the aws machine translation backend in the settings.py before and not via the new UI way either.
The settings.py still contains this:
Is there a place I missed deactivating these backends?
I already tried
Steps to reproduce the behavior
/manage/performance/
but also got the error on/projects/searxng/searxng/de/
and/js/translate/weblate-translation-memory/201752/
I installed the missing packages (
boto3
,google-cloud-translate
andzeep
) which made everything work again.Expected behavior
A warning is produced in
weblate check
or in the UI but the unavailable translation backends are simply deactivated.Screenshots
No response
Exception traceback
Later for missing
google
:Additional context
No response