When using this code from https://stackabuse.com/text-translation-with-google-translate-api-in-python/ I get ‘AttributeError: ‘NoneType’ object has no attribute ‘group”, and i was wondering what is wrong, the error seems to be on the ‘result = tra…’ line, Thank you for any help Answer Ok, I was too getting this same error. I think there is a issue in the current release. But the new
Tag: google-translate
Translation in discord.py bot doesn’t work
I’ve been trying to make my discord bot translate texts using a module called googletrans. It seems fairly simple and it should have worked without any hassle, or so I thought. So after my import statements, I have translator = Translator(). My following cog code is: But it shows this error: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: ‘NoneType’ object has
Free API similar to google translate for python?
I am looking for a free API similar to google translate that can work with my python bot. Is there any similar API available or is there a way to use the google API for free? Answer First of all, you shouldn’t have to worry about the fact that you are using Python. You can use libraries like Requests to
PyInstaller file fails to execute script – DistributionNotFound
I’m trying to convert my python file to an executable using PyInstaller. The program uses the Google Cloud Translate API to translate given text between languages. When running python quicktrans.py in the terminal, the program works fine. Then I ran pyinstaller quicktrans.py, SHIFT + right-clicked the directory the executable was in, and ran the .exe file in the terminal. This