Forums

DeepL Module

Hi this seems like a separate question, so I am asking in here:

Is there any reason why the deepl Module is not working on PythonAnywhere?

I installed the package, however I get the following error when trying to translate something.

=> Code

translator = deepl.Translator(auth_key)

=> Error

/home/alexjeser/.virtualenvs/gpt3x/gcm_reviews_gpt3y.py", line 23, in <module> translator = deepl.Translator(auth_key) AttributeError: module 'deepl' has no attribute 'Translator'

According to the developer of the module, this error occurs if another file / script / folder / directory is also called "deepl". However this is not the case for me and I still get the same error.

Is there any other reason why this problem might occur?

Any advice?

What do you get if you run

import deepl
print(deepl.__file__)