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

Not getting a response while running tests #153

Open
martinezeth opened this issue May 24, 2023 · 0 comments
Open

Not getting a response while running tests #153

martinezeth opened this issue May 24, 2023 · 0 comments

Comments

@martinezeth
Copy link

martinezeth commented May 24, 2023

I imported mlbgame at the top of my file, used pip install mlbgame in my directory, and anytime I try to write a small bit of code to test it out, the code executes without anything being printed.
For example, if I run the sample code (taken from the Github page documentation)

from __future__ import print_function
import mlbgame

month = mlbgame.games(2015, 6, home='Mets')
games = mlbgame.combine_games(month)
for game in games:
    print(game)

my code runs and does not output a single line. This is also the same case when I try the other provided test code

from __future__ import print_function
import mlbgame

game = mlbgame.day(2015, 11, 1, home='Mets')[0]
stats = mlbgame.player_stats(game.game_id)
for player in stats.home_batting:
    print(player)

Am I doing something wrong? I'm pretty new to python from C++, so its entirely possible that I'm messing up a simple step, but I have retraced my steps and have not been able to find out what it may be that I could be messing up. I'm really looking forward to getting this issue resolved and utilizing this. Thanks a ton!

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

1 participant