-
Notifications
You must be signed in to change notification settings - Fork 87
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
sqlite3.DatabaseError #251
Comments
Hi @RajeshTailor1 , this seems to be happening more often so we should definitely figure out the cause and fix it properly. Could you try installing and running AIrsenal with the system python rather than in a conda environment? This has fixed it for other Linux users (e.g. see here #81 (comment)) |
Thanks for this info - but you mention to install airsenal to the system Python how is that done? Also once that is done are the commands to populate the database etc the same as in your readme? |
Sorry I should have explained. You can follow the installation instructions in the readme but ignore the conda parts basically. You already have the repo now so the following should work (run from the AIrsenal directory):
You should then be able to run all the commands as normal (but without doing P.S. The above will work assuming you have python 3.5, 3.6 or 3.7, which you can check by doing |
So looks like python --version didn't work however python3 --version returns Python 3.8.2 Would I need to install Python v3.7? |
Apologies I also don't have pip but pip3 seems to work fine. |
Yes you can replace the install above with |
I think one thing we can try here is have an option that doesn't use the multiprocessing... |
So branch The previous multiprocessing behaviour can be accessed (for those on other systems) with the |
This is an awesome development 👍🏽 What would be the optimal setup for the fastest processing time? 4cores? |
The points prediction is done with one thread per position (GK, DEF, MID, FWD) maximum, so you won't get much/any benefit from having more than 4 cores for that. The transfer optimisation will benefit from having as many cores as possible though - it should continue to get faster with up to 27 threads for the 3 week optimisation (one thread per possible transfer strategy)! |
Hi @nyutuml I also saw this on an Ubuntu VM, caused by the sqlite3 error "database disk image is malformed". |
@nbarlowATI I misunderstood things then. Instead of an issue, branch bugfix/251-db-error-linux is the solution, isnt it? So how do i apply this bugfix? |
@nyutuml if you do (from the main AIrsenal/ directory)
then retry, it should use the code on this branch, that should fix the issue for Ubuntu. |
i also experienced issue #257 |
Hi @nyutuml , for #257 we will look to have a proper fix implemented in the next weeks, but in the meantime, if your team was created for gameweek 2, you could make the temporary change suggested by @samscnp in that issue (change the argument in However, the above is still not even getting as far as the optimization - the prediction still isn't working :( |
yes, there was I also have tried on Mac, but i got error due to bpl like @jack89roberts has mentioned in #81 . I have tried using Thanks a lot for helping out, really appreciate it. |
Hi @nyutuml could you copy/paste in the lines just above the sqlite3 error? I'm interested in whether there are any lines like the
in the original error message above - these would suggest that multiprocessing is still running, which it shouldn't be if that branch is working correctly... (Also, just to check, you're not adding the |
It might be worth a try to run the same command but run it with the --num_thread 1 command so forcing it to use a single thread, this may resolve the DB errors. |
@nyutuml I think for some reason it's not picking up the (We can see if it's running single threaded - there shouldn't be any Unfortunately there is a bug in Were there any errors when you did the |
Hi @RajeshTailor1 , did add the |
Hi @nyutuml this is very strange - I don't know how/why it's still doing multithreading when using that branch.
If that works without any trouble, it will have added all the predictions for FWDs to the database - you can then repeat with "GK", "MID", "DEF" in place of "FWD" in the call to Basically this is just doing the steps in the |
So maybe try the following git checkout bugfix/251-db-error-linux followed by git pull followed by pip install --upgrade --force-reinstall . Then try removing the database rm /tmp/data.md Then try rebuilding the database with the normal command Then try running the prediction. |
@nbarlowATI @RajeshTailor1 Guys it worked! Have you just rolled the update? |
@nyutuml - thats great to hear what did you do to get it working? |
just reinstalled it. tried to pull branch |
@nyutuml Excellent news! :) I think when you run the optimization ( |
lol, just encountered the issue when i ran the optimization. saw |
Hi - Firstly this is a great project keep up the good work!
I seem to be encountering one issue during the following command:
airsenal_run_prediction --weeks_ahead 3
I get the following error:
sqlite3.DatabaseError: database disk image is malformed.
I have included a screen shot if this helps. Also I am attempting to run this in RHEL (Red Hat Enterprise).
The text was updated successfully, but these errors were encountered: