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

Error to build PDF file #19

Open
hellangleZ opened this issue Jun 12, 2024 · 2 comments
Open

Error to build PDF file #19

hellangleZ opened this issue Jun 12, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@hellangleZ
Copy link

Traceback (most recent call last):
File "/aml/FinRobot/finrobot/functional/reportlab.py", line 185, in build_annual_report
name = YFinanceUtils.get_stock_info(ticker_symbol)["shortName"]
File "/aml/FinRobot/finrobot/data_source/yfinance_utils.py", line 15, in wrapper
return func(ticker, *args, **kwargs)
File "/aml/FinRobot/finrobot/data_source/yfinance_utils.py", line 44, in get_stock_info
stock_info = ticker.info
File "/root/miniconda3/lib/python3.10/site-packages/yfinance/ticker.py", line 153, in info
return self.get_info()
File "/root/miniconda3/lib/python3.10/site-packages/yfinance/base.py", line 223, in get_info
data = self._quote.info
File "/root/miniconda3/lib/python3.10/site-packages/yfinance/scrapers/quote.py", line 561, in info
self._fetch_complementary(self.proxy)
File "/root/miniconda3/lib/python3.10/site-packages/yfinance/scrapers/quote.py", line 721, in _fetch_complementary
json_data = json.loads(json_str)
File "/root/miniconda3/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/root/miniconda3/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/root/miniconda3/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@hellangleZ
Copy link
Author

image

There are still 4 files, but due to this issue, could not create PDF, and the error is early to pop in other ipynb project

image

@BruceYanghy BruceYanghy added the bug Something isn't working label Jun 13, 2024
@SijiaLi0807
Copy link

I can't build pdf as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants