Replies: 3 comments
-
|
I am having the same issue too |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hello @tcharos and @clarence-ong, I have fixed the issue, it was a decoding error of the downloaded data. You can install the new release 0.8.1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
how can I get this code? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when trying to run sportsbet dataloader odds-types -c sports-betting/configs/main_leagues_ml.py i get the following error:
Traceback (most recent call last):
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/bin/sportsbet", line 8, in
sys.exit(main())
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/cli/_data.py", line 47, in odds_types
odds_types = pd.DataFrame(dataloader.get_odds_types(), columns=['Type'])
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_base.py", line 424, in get_odds_types
data = self._validate_data()
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_base.py", line 144, in _validate_data
data = self._get_data()
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_soccer/_data.py", line 482, in _get_data
_FDSoccerDataLoader(param_grids['footballdata'])._check_param_grid()._validate_data().reset_index()
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_base.py", line 144, in _validate_data
data = self._get_data()
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_soccer/_fd.py", line 543, in _get_data
csvs = _read_csvs([url for _, url in urls_params])
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_soccer/_utils.py", line 96, in _read_csvs
urls_content = _read_urls_content(urls)
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_soccer/_utils.py", line 91, in _read_urls_content
return asyncio.run(_read_urls_content_async(urls))
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_soccer/_utils.py", line 86, in _read_urls_content_async
return await asyncio.gather(*futures)
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/sportsbet/datasets/_soccer/_utils.py", line 75, in _read_url_content_async
with io.StringIO(await response.text()) as text_io:
File "/Users/thodorischaros/Documents/bet/sports-betting/.venv_sports_betting/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 1147, in text
return self._body.decode( # type: ignore[no-any-return,union-attr]
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position 90542: invalid start byte
i just try the sample config file, in order to get it running
i installed it with pip
btw great work, i am starting an MSc in AI & DL
Beta Was this translation helpful? Give feedback.
All reactions