Comments (16)
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
from python-aternos.
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.
from python-aternos.
from python-aternos.
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.
from python-aternos.
from python-aternos.
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()
from python-aternos.
from python-aternos.
What version do you use? Update python-aternos from pip:
pip install -U python-aternos
from python-aternos.
I may have found an unlisted dependency: js2py
No, it's specified as a dependency in setup.py and requirements.txt.
from python-aternos.
from python-aternos.
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?
from python-aternos.
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
from python-aternos.
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
from python-aternos.
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.
from python-aternos.
Read this comment: #15 (comment)
Just try to login one more time. This is the bug, it'll be fixed as I said before.
from python-aternos.
Update the module. If the error will appear again, host your bot on your PC or Heroku (it's free) instead of Replit.
from python-aternos.
Related Issues (20)
- Unable to bypass Cloudflare protection
- Unable to parse lastStatus object
- Download an aternos Drive backup HOT 1
- Documentation HOT 2
- Getting server domain/address/subdomain doesn't work HOT 4
- Login with username and password doesn't work HOT 5
- Aternos detects using this HOT 5
- A way to possibly Change user permissions?
- Check username and password HOT 3
- Check your username and password
- 503 Service unavaliable HOT 2
- 400 error at /players HOT 6
- Unable to parse lastStatus object HOT 5
- How to get dymanic ip? HOT 2
- Unable to start server. HOT 2
- :( HOT 1
- bruh im banned from aternos after 1 day -_- HOT 1
- ServerStartError fails to import HOT 1
- Error in Client() HOT 3
- Aternos responding `This username doesn't exist` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-aternos.