Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
0 votes
0 answers
87 views

get transliterated text Except translated text

Whenever I Used googletrans API to convert my English text to any Indian language like Gujrati, what happens is that, it gives me translated text except converted text. I'll give you an example like, ...
Vijay Bokade's user avatar
0 votes
0 answers
467 views

Auto-translate using Python

I'm doing an auto-translation script to convert all the data (mixed language) in my Excel file. My file is composed of 3000-4000 raw data with mixed language and I want to translate all the data to &...
user23367378's user avatar
0 votes
1 answer
48 views

How to keep UTF8 encoding during xml parse, attribute value change and file writing? (python)

I'm writing a programm in Python, my goal is to : read input xml file one line at a time for each line find "CH" attribute change attribute value : translate from french to portugese write ...
JB B's user avatar
  • 11
0 votes
0 answers
112 views

How to use googletrans to translate text attributes in xml parsed file in python?

I have a xml file with loads of lines containing this kind of elements: <?xml version="1.0" encoding="UTF-8"?> <PAGEOBJECT XPOS="553.544307086578" YPOS="...
JB B's user avatar
  • 11
0 votes
1 answer
1k views

How can I fix Openai and googletrans dependency error

googletrans 4.0.0rc1 requires httpx==0.13.3, but you have httpx 0.26.0 which is incompatible. openai 1.8.0 requires httpx<1,>=0.23.0, but you have httpx 0.13.3 which is incompatible. I am trying ...
Bad Gamer's user avatar
0 votes
1 answer
543 views

ModuleNotFoundError: No module named 'googletrans', but I did download it

I'm trying to test out googletrans every time I try to run the file I get this error message: from googletrans import Translator ModuleNotFoundError: No module named 'googletrans'. I have tried ...
Karem636's user avatar
1 vote
2 answers
112 views

Python module "googletrans" not working in windows system

I have written a python code that translates languages from tge following input types: text, inage and audio. I am using the googletrans api for translating but it is giving htis error on running : '...
Deepak's user avatar
  • 11
0 votes
1 answer
238 views

Googletrans not working with large datasets

I'm trying to translate a column of a Dataframe of shape (13815, 2), that are English sentences. I want to translate them to Persian('fa'). but since the size of the data is too much, every time I try ...
Majid wasiqi's user avatar
1 vote
3 answers
3k views

How to resolve "TypeError: the JSON object must be str, bytes or bytearray, not NoneType" error, while working on translating with googletrans?

How can I resolve TypeError while translating with googletrans? TypeError occurs on 'result = translator.translate(messages[i], dest='en')', and I can't understand because type of result is '...
Scarlet's user avatar
  • 75
0 votes
0 answers
441 views

Google Translate module randomly throws "the JSON object must be str, bytes or bytearray, not NoneType"

I use Google Translate in Python and found this bug in my code. I copy here a minimal reproducible example: import time from googletrans import Translator as google_Translator class Translator: ...
ginjaemocoes's user avatar
  • 4,652
0 votes
2 answers
873 views

Translating the whole dataframe with googletrans is taking too long

I'm trying to translate all the elements of a dataframe from Persian to English. I'm using the code below, but it takes long time to run. Is there any quick way? import pandas as pd exl_file = 'data....
Reza Bahmani's user avatar
0 votes
0 answers
75 views

AttributeError: 'NoneType' object has no attribute 'group' googletrans

I'm trying to translate the values of certain dataframe rows. The criteria is the language of the value. the column contains both English and French text. I want to translate the English text to ...
Moe_blg's user avatar
  • 121
1 vote
1 answer
2k views

Google Cloud Translate vs Python googletrans

I have been thinking about developing a new product which has to be capable of translating text to several different languages. While I was doing my research, I have found the Python library named &...
codeine's user avatar
  • 80
0 votes
1 answer
312 views

getting error as Exception in Tkinter callback and Attribute Error: 'NoneType' Object has no attribute 'group'

I am trying to create a translator with help of Tkinter and googletrans library but getting following error and I am confuse as I am not sure is this error due to library or a mistake from my side. ...
Tanvi's user avatar
  • 1
1 vote
0 answers
130 views

translating text from English into Hindi return translatex000

I have a problem when i am using googletrans as a library with my data frame. its not showing a translated course-title in Hindi and im trying to translate from English to Hindi and currently its not ...
teddy107 Van Weit's user avatar

15 30 50 per page
1
2 3 4 5