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

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

Open
martynbiz opened this issue Nov 3, 2021 · 1 comment

Comments

@martynbiz
Copy link

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
Copy link
Member

geraldb commented Nov 3, 2021

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.

@geraldb geraldb changed the title Error: *** error: wrong number of arguments (given 1, expected 0) Ruby 3.x (Keyword Argument Compatibility) Error: *** error: wrong number of arguments (given 1, expected 0) Nov 3, 2021
@geraldb geraldb transferred this issue from openfootball/quick-starter Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants