ssut/py-googletrans

googletrans not translating English paragraph to French. Error is internal and inconsistent

Said-Ikki opened this issue · 0 comments

Googletrans version:

  • 4.0.0rc1

I'm submitting a ...

  • bug report

Current behavior:
Error occurs when translating English into French.

Expected behavior:
Translates English into French

Steps to reproduce:

It seems to work for some English phrases but not all. They do not seem to have a difference between them. Special characters do not seem to break the system either. Character count also seems to be a nonfactor.

Related Code

 translated_bbme = ts.translate(response_BBMME_no_history, dest='fr').text

Other information:

Stack Trace

Traceback (most recent call last):
File "/home/ubuntu/project/ping.py", line 325, in
translated_bbme = ts.translate(response_BBMME_no_history, dest='fr').text
File "/home/ubuntu/project/.venv/lib/python3.10/site-packages/googletrans/client.py", line 223, in translate
translated = (' ' if should_spacing else '').join(map(lambda part: part.text, translated_parts))
TypeError: sequence item 3: expected str instance, NoneType found

Text To Translate that seems to break

I'd be happy to help you with setting up your BlackBerry Messenger Enterprise (BBME) on your Android device. Here are the steps:

  1. Download the BBME App:
    * Open the Work profile app drawer on your phone (if applicable).
    * If BBME isn't available there, proceed to step 1b.
    * Search for "BlackBerry Messenger Enterprise."
    * If the app isn't found, proceed to step 1b.
    * 1b. Download from Google Play Store:
    + Open the Google Play Store app.
    + Search for "BlackBerry Messenger Enterprise."
    + Download and install the BBME app.

  2. Install BBME:
    * Once the download is complete, open the BBME app to begin installation.
    * Follow the on-screen prompts to install the app on your device.

  3. Launch BBME:
    * After installation, find the BBME app icon on your home screen and tap on it to launch the app.

  4. Sign Up or Sign In:
    * If you already have a BBME account, enter your email and password to sign in.
    * If you're new to BBME, tap "Sign Up" and follow the instructions to create a new account.

  5. Follow the On-Screen Prompts:
    * Complete the setup process by following the on-screen prompts.

Additional Tips:

  • Make sure you have an internet connection to complete the setup.
  • You can personalize your BBME experience by adding a profile picture and other details (optional).
  • Invite friends and colleagues to connect with you on BBME. You can do this by sending them an invitation via email or sharing your BBME PIN.

If you encounter any difficulties during the process, refer back to this guide or reach out to your IT administrator for assistance.

Please note that I've followed the provided documentation and guidelines to provide these steps. If you have any further questions or concerns, feel free to ask!