-
Notifications
You must be signed in to change notification settings - Fork 113
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
XML #24
Comments
@gman2691 can you please provide a direct example of where this occurs |
The teaser code that you posted to find all of the scores in the Mets games. |
@gman2691 I'm not getting any error, can you please post the error response you are getting? |
I get this error lxml.etree.XMLSyntaxError: Start tag expected, '<' not found, line 1, column 1 |
full copy: Traceback (most recent call last): Process finished with exit code 1 |
@jimluke827 I'm not getting that error at all, it could be an issue with lxml. Can you try updating both mlbgame and lxml to the latest version? |
@zachpanz88 I am at the latest version of each. |
@zachpanz88 I was using Python 3, I used python 2 and had a ton of trouble getting libxml2 to install, but once I got that all set everything is working @gman2691 see above if you are using wrong version of python |
Again, I do not seem to get the error when I am testing with python 3.
@jimluke827 Is there any way you could fill in part of that "......" so I can diagnose what day the information is coming from? I just need the "month_06/day_xx/" part. Just to be clear, we are talking about this example, correct? 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) |
@zachpanz88 I don't have the error anymore, but I just used the exact examples that were shown in the readme, neither worked and both gave the same error. |
@jimluke827 I noticed from your error messages that you are using Windows. I have been testing everything on Linux, which handles .gz files much better than Windows. The problem could have arisen from Windows not being able to handle the compressed files, so I'll run some tests on Windows. |
Expanding on this, I also had the same issue. I believe it is related to the .gz compressed xml files in a windows environment. I was eventually able to remedy the issue by moving the archived gameday-data to a backup folder which forced the wrapper to make calls to the server instead of using the archived xml data. I unfortunately don't have a better work around to offer at this time, other than moving the saved data. |
@rhoffer21 I will try to find a better compression format for windows (probably zip). I will also build a delete function into the update module that will allow you to remove all downloaded data. |
Released in 2.3.2. |
The examples of your program on GitHub have an XMLSyntax Error
The text was updated successfully, but these errors were encountered: