openfootball / help

help & support incl. frequently asked questions (FAQs) and answers - let's keep all support question in one issue tracker, thanks
5 stars 2 forks source link

Ruby 3.x (Keyword Argument Compatibility) Error: *** error: wrong number of arguments (given 1, expected 0) #36

Open martynbiz opened 2 years ago

martynbiz commented 2 years ago

Hi,

I'm trying to create my database from starter-kit, here:

> sportdb new worldcup2018

It seems to output a lot to the terminal which seems like it's doing it's thing, but then it stops here:

...
[debug]    [calc_year] ????-6-24 -- start: 2018-01-01
[debug]    datetime: >2018-06-24 21:00<
(auto config) try matching teams:
["Poland", "Colombia"]
[debug]    [parse_matchdata] hash: >{:day_name=>"Thu", :month_name=>"Jun", :day=>"28", :hours=>"17", :minutes=>"00"}<
[debug]    [calc_year] ????-6-28 -- start: 2018-01-01
[debug]    datetime: >2018-06-28 17:00<
(auto config) try matching teams:
["Japan", "Poland"]
[debug]    [parse_matchdata] hash: >{:day_name=>"Thu", :month_name=>"Jun", :day=>"28", :hours=>"18", :minutes=>"00"}<
[debug]    [calc_year] ????-6-28 -- start: 2018-01-01
[debug]    datetime: >2018-06-28 18:00<
(auto config) try matching teams:
["Senegal", "Colombia"]

*** error: wrong number of arguments (given 1, expected 0)

If I run sportsdb stats I can see that nothing has been inserted into the table (confirmed by going into the sqlite terminal too and running select queries). Any ideas?

geraldb commented 2 years ago

Welcome to football.db. Sorry for the start-up trouble.

*** error: wrong number of arguments (given 1, expected 0)

That is a known ruby 3.x (keyword argument) compatibility bug - I assume you are running on ruby 3.x - please downgrade to the 2.x series for a workaround. Sorry once I get back I will update the sportdb machinery to the ruby 3.x series. Thank you for your understanding. Cheers. Prost.