adnaaan433 / Post-Match-Report-2.0

16 stars 4 forks source link

Getting an error trying to run the code in google collab #1

Open atreides616 opened 4 hours ago

atreides616 commented 4 hours ago

Getting the following error running the 3rd cell in the google collab ipynb file

JSONDecodeError Traceback (most recent call last)

in <cell line: 47>() 45 46 json_data_txt = extract_json_from_html(match_html_path) ---> 47 data = json.loads(json_data_txt) 48 events_dict, players_df, teams_dict = extract_data_from_dict(data) 49

2 frames

/usr/lib/python3.10/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None

JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 13 (char 46)

adnaaan433 commented 3 hours ago

Sorry for the inconvenience, please contact me in X messages, or WhatsApp/Telegram in this number: 01974275872

On Sat, 19 Oct 2024, 8:46 pm atreides616, @.***> wrote:

Getting the following error running the 3rd cell in the google collab ipynb file

JSONDecodeError Traceback (most recent call last)

https://localhost:8080/# in <cell line: 47>() 45 46 json_data_txt = extract_json_from_html(match_html_path) ---> 47 data = json.loads(json_data_txt) 48 events_dict, players_df, teams_dict = extract_data_from_dict(data) 49

2 frames

/usr/lib/python3.10/json/decoder.py https://localhost:8080/# in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None

JSONDecodeError: Expecting property name enclosed in double quotes: line 3 column 13 (char 46)

— Reply to this email directly, view it on GitHub https://github.com/adnaaan433/Post-Match-Report-2.0/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3W2W6RFX37ENLT6CIRZJJDZ4JWE5AVCNFSM6AAAAABQHRSF36VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU4TSMRVG42DCOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>