New Datafiles for Top Leagues (en,de,es,fr,it) and Austria (at) - e.g. use $ sportdb new top

22 views
Skip to first unread message

Gerald Bauer

unread,
Mar 4, 2015, 3:04:55 AM3/4/15
to open...@googlegroups.com
Hello,

I've added some more datafiles [1] that let you build your own
football.db with a single command e.g.

$ sportdb new fr2014-15

The new datafiles include:

- de.rb and de2014-15.rb
- es.rb and es2014-15.rb
- it.rb and it2014-15.rb
- fr.rb and fr2014-15.rb
- at.rb and at2014-15.rb
- top.rb and top2014-15.rb (includes top leagues e.g. en,de,es,fr,it)

That's it. As always if you run into any trouble or have questions
or comments, let us know. Cheers.

[1] github.com/openfootball/datafile

Joe Rapp

unread,
Mar 4, 2015, 8:35:10 AM3/4/15
to open...@googlegroups.com
Hi Gerald,

Thank you for the updates.
I'm still having an issue with the French data:  building DBs works fine for all leagues except for the French league.

Running sportdb new fr2014-15 crashes with the following:
...
[info] parsing data in zip 'setups/2014-15' (fr-france-master/setups/2014-15.txt)...
[info] parsing data in zip (league) 'fr-france!/leagues' (fr-france-master/leagues.txt)...
[info] parsing data in zip (team) 'fr-france!/clubs' (fr-france-master/clubs.txt)...

*** error: Validation failed: Key expected three or more lowercase letters a-z /\A[a-z]{3,}\z/

Same error, when I try sportdb new top2014-15

I'm running this on a MacBook Pro OSX10.10.2 and gem list sportdb gives:
*** LOCAL GEMS ***

sportdb (1.11.0)
sportdb-models (1.11.0)
sportdb-service (0.4.0)
sportdb-update (0.1.1)

Cheers

Gerald Bauer

unread,
Mar 4, 2015, 10:00:36 AM3/4/15
to open...@googlegroups.com
Hello,
Thanks for trying and reporting the error. Will try the fr2014-15
build and fix the dataset in the next days. Thanks for your patience.
Cheers.

PS: If you want to try to fix yourself, try the --verbose (debug) switch e.g.
$ sportdb --verbose new fr2014-15
to get more info for debugging. Might just be a spelling mistake/error
with a club (team) key.

Gerald Bauer

unread,
Mar 4, 2015, 11:02:03 AM3/4/15
to open...@googlegroups.com
Hello,
The fr-franche dateset is now fixed. Please retry it should now
work as advertised. There were two minor (breaking issues):

- club.txt started with a byte-order mark (BOM) - thank you Windows!
- club_2.txt included a trailing/misplaced t

Cheers.

Joe Rapp

unread,
Mar 4, 2015, 11:26:27 AM3/4/15
to open...@googlegroups.com
No more errors :-)
Thanks

Gerald Bauer

unread,
Mar 4, 2015, 12:19:50 PM3/4/15
to open...@googlegroups.com
Hello,
Great news. Thanks for retrying. Cheers.
Reply all
Reply to author
Forward
0 new messages