markolofsen / py_translator

The end goal is a simple application for translating text in the terminal. Text can be generated interactively or programmatically in the shell environment.

Home Page:https://pypi.org/project/py-translator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thread error

HahaLun opened this issue · comments

I got threading error with below code

code:
TEXTLIB().translator(is_html=False, text='aplomb', lang_to='zh-TW', proxy=False)

error message:
image

commented

Try to use something like this:

from py_translator import Translator
s = Translator().translate(text='Hello my friend', dest='es').text
print(s)