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

Googletrans Not Working #4528

Open
1 task done
JayasuryaDaikoku opened this issue Dec 9, 2024 · 0 comments
Open
1 task done

Googletrans Not Working #4528

JayasuryaDaikoku opened this issue Dec 9, 2024 · 0 comments

Comments

@JayasuryaDaikoku
Copy link

Duplicate Check

Describe the bug

The installation of googletrans_4.0.0rc1 build fails. The package does not install properly.

Code sample

Code
 [def audiomessagetotranslate(self):   
        if not self.audio_message.value:
            self.show_notification(f"Audio message is empty or not set.", color="red")
            return
        selected_language = self.language_dropdown.value 
        print(selected_language)
        self.target_language_code = next((code for code, lang in self.language_codes.items() if lang == selected_language), None)
        self.translated_text = self.translator.translate(self.audio_message.value, dest=self.target_language_code)
        self.translatedtext.value = f"assistant: {self.translated_text.text}"
        print(self.translatedtext.value)
        self.voioce_translation_send()]

To reproduce

googletrans==4.0.0rc1

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Windows

Operating system details

windows11

Flet version

flet==0.25.1

Regression

Yes, it used to work in a previous Flet version (please specify the version in additional details)

Suggestions

No response

Logs

Logs
(env) C:\Users\hello\OneDrive\Desktop\fletstorage\app>flet build apk --include-packages flet_webview flet_audio_recorder flet_lottie
[12:36:07] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.25.1 ✅
           Customized app icons and splash images ✅
[12:36:15] Generated app icons ✅
[12:36:19] Generated splash screens ✅
[12:36:37] Running package command
           Extra PyPi indexes:
           Creating asset directory: C:\Users\hello\OneDrive\Desktop\fletstorage\app\build\flutter\app
           Created temp directory: C:\Users\hello\AppData\Local\Temp\serious_python_tempbf6e247e
           Copying Python app from C:\Users\hello\OneDrive\Desktop\fletstorage\app to a temp directory
           Cleanup app
           Configured Android/arm64-v8a platform with sitecustomize.py
           Installing  with pip command to C:\Users\hello\OneDrive\Desktop\fletstorage\app\build\site-packages\arm64-v8a
           Downloading Python distributive from
           https://github.com/indygreg/python-build-standalone/releases/download/20240909/cpython-3.12.6+20240909-x86_64
           -pc-windows-msvc-shared-install_only_stripped.tar.gz to a build directory
           Extracting Python distributive

           ERROR: Could not find a version that satisfies the requirement googletrans==4.0.0rc1 (from versions: none)
           ERROR: No matching distribution found for googletrans==4.0.0rc1

           Error building Flet app - see the log of failed command above.
[12:36:44] Doctor summary (to see all details, run flutter doctor -v):
           [√] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.26100.2454], locale en-IN)
           [√] Windows Version (Installed version of Windows is version 10 or higher)
           [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
           [√] Chrome - develop for the web
           [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
           [√] Android Studio (version 2024.2)
           [√] VS Code (version 1.95.3)
           [√] Connected device (3 available)
           [√] Network resources

           • No issues found!

Additional details

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant