Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run optimisation fails without FPL login credentials #626

Open
eddableheath opened this issue Aug 24, 2023 · 1 comment
Open

Run optimisation fails without FPL login credentials #626

eddableheath opened this issue Aug 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@eddableheath
Copy link

When running airsenal_run_optimization either post prediction, or as part of airsenal_run_pipeline the following is prompted:

Would you like to login to the FPL API? This is not necessary for most AIrsenal actions, but may improve accuracy of player sell values, and free transfers for your team, and will also enable AIrsenal to make transfers for you through the API. (y/n):

On giving n the following error is returned:

RuntimeError: Requested logging into the FPL API but no credentials provided.

With the following location reported as the source of the bug:

File "/opt/homebrew/Caskroom/miniconda/base/envs/airsenalenv/lib/python3.11/site-packages/airsenal/framework/data_fetcher.py", line 140

@eddableheath eddableheath changed the title Run optimtimisation fails without FPL login credentials Run optimisation fails without FPL login credentials Aug 24, 2023
@eddableheath
Copy link
Author

It now works, however asks for the login details twice before running.

@jack89roberts jack89roberts added the bug Something isn't working label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants