-
Notifications
You must be signed in to change notification settings - Fork 191
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
NFL Boxscore: Document is Empty #729
Comments
I am having same issue. Totally unable to get any stats for a given boxscore. |
I am also having this issue. Any solution yet? |
I am having similar issue. Pasting below. Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
If you all have not seen yet, this was fixed with the following commit |
I'm getting a similar error when attempting to access boxscores. File "src/lxml/etree.pyx", line 3252, in lxml.etree.fromstring @CodeeMcCoderson do you know how I can resolve this? |
@RichardSJTotten to fix the problem that I had, which seems almost identical to yours, is I changed the sportsipy module directly on my hard drive. I did not pull down the fix that I posted earlier. If you navigate to where you have your modules stored on your local machine, find the 'sportsipy' module and got into it. Then go into the 'nfl' module and click on the 'constants.py' scripts. Within that script navigate to line 81 and change this line of code: Next go to line 84 and change this line of code: After changing it, save the script, navigate to your script that was throwing the error and run it again. Let me know if anything was not clear or if it does not work, I will try and help more. |
Thanks @CodeeMcCoderson !! Really appreciate the response 👍 This fix worked for me after tinkering a little. Turns out I had to pip uninstall the package first and then install locally for it to work as expected. Do you know if @roclark is planning to merge any of the new commits that have been worked out that solve issues like this? Also @roclark - this package is great! Thanks for creating it. |
|
Thanks for the adjustment for the code @selvamshan and @CodeeMcCoderson. I am getting an empty document as well but this has an issue with the SCHEDULE_SCHEME in the constants file maybe? URL looks to be working still as well. I also switched lines 81 and 84 as well. Here is the code and error. Thanks. `from sportsipy.nfl.schedule import Schedule team_one_df_org = pd.DataFrame()
team_one_df_org` src/lxml/etree.pyx in lxml.etree.fromstring() src/lxml/parser.pxi in lxml.etree._parseMemoryDocument() src/lxml/parser.pxi in lxml.etree._parseDoc() src/lxml/parser.pxi in lxml.etree._BaseParser._parseUnicodeDoc() src/lxml/parser.pxi in lxml.etree._ParserContext._handleParseResultDoc() src/lxml/parser.pxi in lxml.etree._handleParseResult() src/lxml/parser.pxi in lxml.etree._raiseParseError() XMLSyntaxError: Document is empty, line 1, column 1 (, line 1) |
@CodeeMcCoderson It looks like this patch works for previous games that have already been played, but I am still getting this DocumentEmpty error for any games that have not been played yet |
The fix appears to work for all seasons prior to the current 2022 season. |
@CodeeMcCoderson is this fix still relevant, I tried it but am still getting the same error |
Describe the bug
Trying to pull boxscores for the 2021 NFL season and result is error saying "Document is empty"
To Reproduce
Sample code which causes an issue.
Expected behavior
would like to see the boxscores of the games played week 7 of the 2021 season
software
Using Google Colab on Chrome
The text was updated successfully, but these errors were encountered: