Creating the eng2020-21 for the first time

40 views
Skip to first unread message

Nicky Hogg

unread,
May 11, 2021, 2:23:51 PMMay 11
to opensport
Hi Gerald, Im new to ruby and just got it installed and installed sportdb with gem, im running the command "sportdb new eng2020-21" shown in the example documentation on github, this does create a sport.db file on my computer however all this is created is the tables, and content has not been populated as get the command line error, shown in the photo attached. Im really new to this so I'm probably making some silly mistake but I can't get it to work please could you let me know what I'm doing wrong. Thanks : )
2021-05-08 19_10_59-Command Prompt.png

Gerald Bauer

unread,
May 11, 2021, 2:33:29 PMMay 11
to open...@googlegroups.com
Hello,
some days ago some reported as similar error while building the
world cup dataset. I know sorry it sounds like a joke it's working
over here on a test run / build.

Looks like the sportdb tool is installed (from your log printout). Try again:

$ sportdb help

Usually the recommendation is to start a build with new in an empty
directory. Thus, retry in an empty director such as:

$ mkdir eng # or such
$ cd eng
$ sportdb new eng2020-21

If it fails again - now you can debug a "local" build assuming
you have the downloaded zips in your directory.

Note: Everytime you try a new build you have to DELETE the local
sport.db file, thus, try:

$ del sport.db

And now start a "local" build using the download Datafile that you
should see in your directory.

$ sportdb build

If it fails again you can help with some more debug information and
the --verbose flag - that is, delete sport.db again and
try:

$ sportdb --verbose build

And see if this error message is more helpful - if you post it here
I might be able to find out more. Sorry for the trouble. Cheers.
Prost.



El mar, 11 may 2021 a las 20:23, Nicky Hogg (<nicky....@gmail.com>) escribió:
>
> Hi Gerald, Im new to ruby and just got it installed and installed sportdb with gem, im running the command "sportdb new eng2020-21" shown in the example documentation on github, this does create a sport.db file on my computer however all this is created is the tables, and content has not been populated as get the command line error, shown in the photo attached. Im really new to this so I'm probably making some silly mistake but I can't get it to work please could you let me know what I'm doing wrong. Thanks : )
>
> --
> You received this message because you are subscribed to the Google Groups "opensport" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opensport+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/opensport/ed2bac25-07cf-41da-bc35-2ea87f0eeaddn%40googlegroups.com.

Alex Spiers

unread,
Oct 14, 2021, 5:08:29 AMOct 14
to opensport
HI I am getting similar error message.

From within the cloned local england git repository, I've tried running sportdb --verbose build.

I get the following error message:

(auto config) try matching teams:
["Leeds United FC", "Middlesbrough FC"]
[debug] parsing round header line: >Matchday 1<
[debug]   find_round_header_name! line-before: >>Matchday 1<<
[debug]   find_round_name! line-after: >>Matchday 1<<
[debug]    name: >>Matchday 1<<
[debug]   line: >[ROUND.NAME]<
[debug] parsing game (fixture) line: >[Sat Aug/18]<
[debug]   no game match (two teams required) found for line: >[Sat Aug/18]<
[debug]    [parse_matchdata] hash: >{:day_name=>"Sat", :month_name=>"Aug", :day=>"18"}<
[debug]    [calc_year] ????-8-18 -- start: 2001-07-01
[debug]    date: >2001-08-18<
[debug] date header line found: >[[EN_DAY_MONTH_DD]]<
[debug]     date: 2001-08-18 with start: 2001-07-01
[debug] parsing game (fixture) line: >Charlton Athletic FC     1-2  Everton FC<
[debug]      match for team  >charltonathleticfc< >Charlton\ Athletic\ FC<
[debug]      match for team  >evertonfc< >Everton\ FC<
[debug]    team1: >charltonathleticfc<
[debug]    team2: >evertonfc<
[debug]   line: >[TEAM1]      [SCORE.EN__FT_(HT)?]  [TEAM2] <

*** error: wrong number of arguments (given 1, expected 0)
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-structs-0.1.2/lib/sportdb/structs/structs/match.rb:40:in `update'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-structs-0.1.2/lib/sportdb/structs/structs/match.rb:37:in `initialize'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/match/match_parser.rb:390:in `new'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/match/match_parser.rb:390:in `parse_game'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/match/match_parser.rb:313:in `try_parse_game'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/match/match_parser.rb:59:in `block in parse'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/match/match_parser.rb:43:in `each'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/match/match_parser.rb:43:in `parse'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers/match_reader.rb:109:in `block in parse'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers/match_reader.rb:44:in `each'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers/match_reader.rb:44:in `parse'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers/match_reader.rb:13:in `parse'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers.rb:24:in `parse_match'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers/package.rb:36:in `block in read_match'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/package.rb:244:in `block in each'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/datafile_package.rb:58:in `block in each'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/datafile_package.rb:52:in `each'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/datafile_package.rb:52:in `each'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/package.rb:242:in `each'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-formats-1.1.6/lib/sportdb/formats/package.rb:253:in `each_match'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers/package.rb:35:in `read_match'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-readers-1.1.2/lib/sportdb/readers/package.rb:54:in `read'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-2.3.2/lib/sportdb/cli/main.rb:123:in `block (2 levels) in <class:Toolii>'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/gli-2.20.1/lib/gli/command_support.rb:131:in `execute'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/gli-2.20.1/lib/gli/app_support.rb:296:in `block in call_command'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/gli-2.20.1/lib/gli/app_support.rb:309:in `call_command'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/gli-2.20.1/lib/gli/app_support.rb:83:in `run'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-2.3.2/lib/sportdb/cli/main.rb:16:in `run'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-2.3.2/lib/sportdb.rb:24:in `main'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sportdb-2.3.2/bin/sportdb:5:in `<top (required)>'
C:/Ruby30-x64/bin/sportdb:23:in `load'
C:/Ruby30-x64/bin/sportdb:23:in `<main>'

Any ideas how to fix? If not, please tell what version of Ruby/etc to install (i.e. what technical stack are you using) so at least I can replicate a working version

Thanks so much for your help!

best wishes,

Alex

Gerald Bauer

unread,
Oct 14, 2021, 5:12:01 AMOct 14
to open...@googlegroups.com
Hello,

thanks for trying football.db / sport.db.

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

Sorry for the trouble - I assume this is a ruby 3.x compabitiblity
error (about keyword arguments).
Sorry I am still running on the ruby 2.x series (I try to update /
upgrade later this year)
but for now - sorry - the only workaround is to downgrade your ruby
installation from the 3.x series to 2.x.

Cheers. Prost.

Alex Spiers

unread,
Oct 14, 2021, 6:12:57 AMOct 14
to opensport
Great thank you so much! Will try that now

Best wishes,

Alex

Reply all
Reply to author
Forward
0 new messages