You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
Using a java maven build for a bot designed specifically for a private server, I attempted to integrate this python aternos api using jython and somehow got an error within the library
Traceback (most recent call last):
File "<string>", line 1, in <module>
File ":\directory\to\project\repository\COMPILED.jar\Lib\python_aternos\__init__.py", line 15
def __init__(self, atconn:atconnect.AternosConnect) -> None:
^
SyntaxError: mismatched input ':' expecting RPAREN
I couldn't find any more way to execute a py script inside a compiled jar file so I was left with this very last option and was greeted by this result
Any feedback are much appreciated, thanks!
Snippet of Java code:
try (PythonInterpreterpyInit = newPythonInterpreter()) {
pyInit.exec("from python_aternos import Client");
pyInit.exec("aternos = Client.from_credentials('*****','*****')");
pyInit.exec("servs = aternos.list_servers()");
pyInit.exec("myserv = servs[0]");
pyInit.exec("myserv.start()");
pyInit.exec("print('Server has been pinged to start')");
}
The text was updated successfully, but these errors were encountered:
I've never used Jython, but, considering the error message, I think it doesn't support the mypy syntax.
The module is created for the original Python interpreter and I can't guarantee the proper work of python-aternos in other Python implementations.
The Problem
Using a java maven build for a bot designed specifically for a private server, I attempted to integrate this python aternos api using jython and somehow got an error within the library
I couldn't find any more way to execute a py script inside a compiled jar file so I was left with this very last option and was greeted by this result
Any feedback are much appreciated, thanks!
Snippet of Java code:
The text was updated successfully, but these errors were encountered: