Subash Poudyal

Results 18 comments of Subash Poudyal

FIX: Fixed it with `export FPL_TEAM_ID=______` But getting the log below for some reason 🤔 ``` Running optimization with fpl_team_id 1634671 Getting starting squad for 1634671 No existing squad or...

From my testing, error above only occurs when running without logging in and running individual steps rather than pipeline, hope that helps narrow things down 👍 exporting the team id...

Hey, `run_make_squad` in [`airsenal_run_pipeline.py`](https://github.com/alan-turing-institute/AIrsenal/blob/1ec68b33d7ddfa1fcc40343db852e1b52e7fb7df/airsenal/scripts/airsenal_run_pipeline.py#L214) uses pygmo however the function in [`squad_builder.py`](https://github.com/alan-turing-institute/AIrsenal/blob/1ec68b33d7ddfa1fcc40343db852e1b52e7fb7df/airsenal/scripts/squad_builder.py#L23) seems to have a try catch block to use "normal" algorithm instead, is it worth making a new invocation...

Coolio, I will get that done this weekend 👍

@jack89roberts, as the season hasn't yet started, I can't seem to test if `run_optimization` function works (I get transaction database error which I am guessing is expected at this point...

When you run optimization, it simply raises `ValueError` as below. I will see if we can raise error informing to run make squad instead if running for the first time...

On M1 mac, it's working for me when I do `export FPL_TEAM_ID=YOUR_ID && airsenal_update_db && airsenal_run_prediction --weeks_ahead 3 && airsenal_run_optimization --weeks_ahead 3`

This is all using poetry right? That's strange. My issue was #504 where it wasn't reading FPL team ID from file, using environment variable solved it all. Maybe try a...

Python version `Python 3.9.13` and requests version `2.28.1`. I use poetry so flow is something like - `git clone ` and `cd AIrsenal` - `poetry install` - `poetry shell` -...

I see, makes sense with #7356 but seeing it as "switching" between files, it seemed a bit inconvinient 😅