Skip to content

ImportError: cannot import name 'TranslatedPart' from 'googletrans.models' #26

@jrabensc

Description

@jrabensc

Describe the bug
Import error when package is imported: Import Error: cannot import name 'TranslatedPart' from 'googletrans.models'

To Reproduce
Install and import pygoogletranslation

!pip install pygoogletranslation
import pygoogletranslation
ModuleNotFoundError: No module named 'googletrans'

Package googletrans seems to be missing.

Install googletrans

!pip install googletrans
import pygoogletranslation
ImportError: cannot import name 'TranslatedPart' from 'googletrans.models' (/usr/local/lib/python3.7/dist-packages/googletrans/models.py)

Expected behavior
No import error

Desktop (please complete the following information):

  • Happens both on Google Colab and local Arch Linux installation
  • Python 3.7.10 (Google Colab), Python 3.9.2 (local), pygoogletranslation 2.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions