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

Missing requirements

Guy-Dipietro-Bose opened this issue · comments

When doing a translation you'll get an error because of uninstalled package:

File "/Users/guydipietro/PycharmProjects/CastleTestUtils/ctvenv/lib/python2.7/site-packages/CastleTestUtils/VoiceUtils/text_to_speech/text_to_speech.py", line 2, in
from py_translator import Translator
File "/Users/guydipietro/PycharmProjects/CastleTestUtils/ctvenv/lib/python2.7/site-packages/py_translator/init.py", line 8, in
from .html_connector import TEXTLIB
File "/Users/guydipietro/PycharmProjects/CastleTestUtils/ctvenv/lib/python2.7/site-packages/py_translator/html_connector.py", line 1, in
from .html_translator import superTranslator, massTranslator, setProxy
File "/Users/guydipietro/PycharmProjects/CastleTestUtils/ctvenv/lib/python2.7/site-packages/py_translator/html_translator.py", line 5, in
from langdetect import detect
ImportError: No module named langdetect

pip install langdetect

yes, but dependencies should be defined (setup.py, requirements.txt, pyenv).