Closed JimmyTheGreat1500 closed 2 years ago
now, seperately it is saying token_func = js_code[1] if len(js_code) > 1 else js_code[0] IndexError: list index out of range
Look at the Readme, you need to call list_servers()
since v0.6.
IndexError means Aternos changed html-page code again. I'm going to fix this soon.
Thank you very much.
It gives me an error when I do that too, or use any methods on Client to log in so to me it seems the wiki is out of date or something?
Get Outlook for iOShttps://aka.ms/o0ukef
From: Andrey @.> Sent: Wednesday, April 27, 2022 12:04:13 AM To: DarkCat09/python-aternos @.> Cc: JimmyTheGreat1500 @.>; Author @.> Subject: Re: [DarkCat09/python-aternos] list object not callable (Issue #14)
Look at the Readme, you need to call list_servers() since v0.6. IndexError means Aternos changed html-page code again. I'm going to fix this soon. Thank you very much.
— Reply to this email directly, view it on GitHubhttps://github.com/DarkCat09/python-aternos/issues/14#issuecomment-1110513085, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXJKI6RQAYDYWBOX2WM2INTVHC4D3ANCNFSM5UM2ON3A. You are receiving this because you authored the thread.Message ID: @.***>
Yes, I've removed the link to the wiki from Readme because I didn't update it.
Please, use the code from Examples and Readme until I create documentation.
I’ve tried that… is the pip version outdated? Also I may have found an unlisted dependency: js2py
On Wed, Apr 27, 2022 at 6:56 AM Andrey @.***> wrote:
Yes, I've removed the link to the wiki from Readme because I didn't update it. Please, use the code from Examples http:///examples and Readme until I create documentation.
— Reply to this email directly, view it on GitHub https://github.com/DarkCat09/python-aternos/issues/14#issuecomment-1110861761, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXJKI6RQBROB2EDYZXB6RYDVHEMO7ANCNFSM5UM2ON3A . You are receiving this because you authored the thread.Message ID: @.***>
-- Asher Clar
https://github.com/DarkCat09/python-aternos/blob/main/examples/start_example.py
aternos = Client.from_credentials(user, pswd)
srvs = aternos.list_servers()
print(srvs)
s = srvs[0]
s.start()
My code looked like that at one point and it gave me errors
Get Outlook for iOShttps://aka.ms/o0ukef
From: Andrey @.> Sent: Wednesday, April 27, 2022 6:58:50 AM To: DarkCat09/python-aternos @.> Cc: JimmyTheGreat1500 @.>; Author @.> Subject: Re: [DarkCat09/python-aternos] list object not callable (Issue #14)
https://github.com/DarkCat09/python-aternos/blob/main/examples/start_example.py
aternos = Client.from_credentials(user, pswd) srvs = aternos.list_servers() print(srvs) s = srvs[0] s.start()
— Reply to this email directly, view it on GitHubhttps://github.com/DarkCat09/python-aternos/issues/14#issuecomment-1110863294, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXJKI6RXEZSVOJK2T6MYYN3VHEMWVANCNFSM5UM2ON3A. You are receiving this because you authored the thread.Message ID: @.***>
What version do you use? Update python-aternos from pip:
pip install -U python-aternos
I may have found an unlisted dependency: js2py
No, it's specified as a dependency in setup.py and requirements.txt.
I was using the default version of pip with python, also I must have just missed that dependency
On Apr 27, 2022, at 7:04 AM, Andrey @.***> wrote:
I may have found an unlisted dependency: js2py
No, it's specified as a dependency in setup.py and requirements.txt.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
dang it might just be me but the error still is there... maybe i have an old version? trying to get this to work so i can make a discord bot and have a command to start my server... do i need to clone the repo or something? also if it helps im using the default pip on the default version of python on replit... id think thats the latest?
Look at the Readme, you need to call
list_servers()
since v0.6. IndexError means Aternos changed html-page code again. I'm going to fix this soon. Thank you very much.
how soon is "soon"? i need the discord bot before i start my smp and if i dont people will be too annoying to start the server themselves so itll die
also im gonna make the discord bot easily configurable so you can clone the repo and set up a config file so you type in the discord bot api key, and your aternos credentials, and then your good. would that be possible
A small changes in Aternos website break all code... I hope I'll do something about it.
Please, wait a while, I'm going to release the fix tomorrow at about 10:30 GMT+4.
Read this comment: https://github.com/DarkCat09/python-aternos/issues/15#issuecomment-1111296231
Just try to login one more time. This is the bug, it'll be fixed as I said before.
Update the module. If the error will appear again, host your bot on your PC or Heroku (it's free) instead of Replit.
when i try to get the servers it says that,
File "main.py", line 8, in <module> servs = aternos.servers()[0] TypeError: 'list' object is not callable