#whats your code
1 messages · Page 1 of 1 (latest)
Well it was going to be the machine language one so I can do it on my pc and see if ChatGPT can edit and return it without having to trigger itself lol
no whats the code that doesnt reach google
ie. doing the edits without looking at them in english so to speak.. which I doubt would work but I was curious
hurm .
Enter the text to translate: Hello Welcome to Machine Talk Enter the text to translate: generate Traceback (most recent call last): File "C:\Users\Tim\OneDrive\Documents\AI\PYTHON\ttr_simulation.py", line 20, in <module> translation = translator.translate(input_text, dest=output_language).text ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\AppData\Local\Programs\Python\Python311\Lib\site-packages\googletrans\client.py", line 182, in translate data = self._translate(text, dest, src, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\AppData\Local\Programs\Python\Python311\Lib\site-packages\googletrans\client.py", line 78, in _translate token = self.token_acquirer.do(text) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tim\AppData\Local\Programs\Python\Python311\Lib\site-packages\googletrans\gtoken.py", line 194, in do self._update() File "C:\Users\Tim\AppData\Local\Programs\Python\Python311\Lib\site-packages\googletrans\gtoken.py", line 62, in _update code = self.RE_TKK.search(r.text).group(1).replace('var ', '') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'group'
yes, but whats the code, not the error
`# Required Libraries
import googletrans
from googletrans import Translator
Default Settings
input_language = "en"
output_language = "x86-64"
key = "DEFAULT KEY"
Initialize Translator
translator = Translator()
User Input Loop
while True:
text = input("Enter the text to translate: ")
if text == "exit":
break
if text == "generate":
translation = translator.translate(text, dest=output_language).text
print("Generated Translation: " + translation)
if "input language" in text:
input_language = text.split(" ")[-1]
print("Input Language Changed to: " + input_language)
if "output language" in text:
output_language = text.split(" ")[-1]
print("Output Language Changed to: " + output_language)
if "change key" in text:
key = text.split(" ")[-1]
print("Key Changed to: " + key)
if text.startswith("generate") and len(text.split(" ")) > 2:
input_text = text.split(" ", 2)[-1]
input_key = text.split(" ", 2)[1]
if input_key == key:
translation = translator.translate(input_text, dest=output_language).text
print("Generated Translation: " + translation)
else:
print("Invalid Key!")
`
hmmm
I use a vpn, so I was thinking maybe it's just not allowed to connect from it..
It looks like the issue isn't network related, from reading the error
this looks hard
Try this to test
yeah it isnt
maybe, try to disable your vpn

print(get('http://checkip.dyndns.org').text)```
:troll:
I'm not, it's just a fast way to test network connectivity
C:\Users\Tim\OneDrive\Documents\AI\PYTHON>from requests import getprint(get('http://checkip.dyndns.org').text)
'from' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Tim\OneDrive\Documents\AI\PYTHON>
u know u can add python before the brackets
print("hello")```
You have to save it as a Python file and then run that Python file. It looks like you tried to run it directly in shell
yes cause you just said "Try"
yes
try to run the code
output_language = "x86-64" what?
from his code lol
thats not a lamguage
C:\Users\Tim\OneDrive\Documents\AI\PYTHON>testip.py
Traceback (most recent call last):
File "C:\Users\Tim\OneDrive\Documents\AI\PYTHON\testip.py", line 1, in <module>
from requests import get
ModuleNotFoundError: No module named 'requests'
@glass crystal google translate api only works in human lamguages
btw
run python -m pip install requests
on ur shell
it was supposed to be a machine language for 64/84 intel chips or something AE 7V B1 etc
yeah its google translate
that wont work
google translate only works on human languages
I did what chatgpt said 😛 of course
you should probably read up a little on it https://www.intel.com/content/dam/develop/external/us/en/documents/introduction-to-x64-assembly-181178.pdf
k that libaray is in
well chatgpt is wrong sometimes
yes
I really am just trying to make a way to scramble and unscramble text, with an offset with a "key" to lock it, and unlock it.. that would maybe let ChatGPT look at some machine code, do edits and return as machine code again
and to run it in python so I can not have to always use chatgpt to do it
do it in without the google translate
as far as the transation and regeration goes ..
and if nothing works, then at least I would have a working python to do something with.. i guess
any other really common things I should have python install so if I try to make something it works or has a better chance?
no
well ok then, nice simple answer, thanks
Why would you lie about this? I don't understand the animosity, clearly ChatGPT knows all.