sportdb / sport.db

sport.db - open sports database (e.g. football.db, formula1.db etc.) command line tool and libraries
Creative Commons Zero v1.0 Universal
221 stars 29 forks source link

Calling sportdb new en causes error... #10

Closed aaraia closed 5 years ago

aaraia commented 5 years ago

On Windows 10 + ruby 2.5, i get the below error when calling "sportdb new en"

*** error: undefined method `get_input_stream' for nil:NilClass

Can you help?

Heres the preceeding output...

[info] parsing data in zip 'setups/all' (eng-england-master/setups/all.txt)... [info] parsing data in zip (league) 'eng-england!/leagues' (eng-england-master/leagues.txt)... DEPRECATION WARNING: update_attributes! is deprecated and will be removed from Rails 6.1 (please, use update! instead) (called from load at C:/Ruby25-x64/bin/sportdb:23) DEPRECATION WARNING: update_attributes! is deprecated and will be removed from Rails 6.1 (please, use update! instead) (called from load at C:/Ruby25-x64/bin/sportdb:23) DEPRECATION WARNING: update_attributes! is deprecated and will be removed from Rails 6.1 (please, use update! instead) (called from load at C:/Ruby25-x64/bin/sportdb:23) DEPRECATION WARNING: update_attributes! is deprecated and will be removed from Rails 6.1 (please, use update! instead) (called from load at C:/Ruby25-x64/bin/sportdb:23) [info] parsing data in zip (team) 'eng-england!/clubs/1-premierleague' (eng-england-master/clubs/1-premierleague.txt)...

*** error: undefined method `get_input_stream' for nil:NilClass

geraldb commented 5 years ago

Hello, as posted on the other ticket / issue you opened:

Welcome to football.db. Sorry I'm (re)organizing, that is, trying to make the setup simpler / easier I will need some more weeks to get it all up-to-date. Thanks for the patience while things break. For questions and support, please use the forum https://github.com/openfootball/eng-england#questions-comments.

PS: If you try to fix it, the club setup gets reworked. In the meantime you can use the football.csv datasets, see https://github.com/footballcsv that are already up-to-date to the "new" system.

romeopt commented 4 years ago

Hi,I am new to Ruby,when launching the commande sportdb serve: it produces following erros: Connecting to db using settings: {:adapter=>"sqlite3", :database=>"./sport.db"} before add middleware ConnectionManagement

*** error: uninitialized constant SportDb::Service::Server

could you find a solution for this?

geraldb commented 4 years ago

@romeopt FYI: I uploaded a new sportdb version, that is, v2.3.0 that now includes the new service (HTTP JSON API) machinery. Update / restart / retry. For more docu, see https://github.com/sportdb/sport.db.service. Cheers. Prost.

romeopt commented 4 years ago

wow! that's great, thank you so much

romeopt commented 4 years ago

Hello; I have encountered a problem when access these endpoints /events, /event/france.2019/20/teams ... from the localhost:9292 or localhost:4567?how could it be.had I miss any steps?

geraldb commented 4 years ago

Hard to tell, please post the error to the (support) forum https://groups.google.com/group/opensport. and include what datasets you have read in (for testing). This issue is long closed :-). Try to change the season in the endpoint /event/france.2019/20/teams to /event/france.2019_20/teams

romeopt commented 4 years ago

ok, thank for your reply