Comments (4)
@daniel-fcm I've rerun the first block of code and got the following output of the 'AAPL' stock so it seems to be working. What is the output of your code when you run it, can you provide a copy and paste of the stacktrace or screenshot?
from yahoofinancials.
I am having a similar issue.
Running the three lines listed at the beginning of your reply to @daniel-fcm in VSCode on a MacBookPro, I get no output at all, and nothing showing in the Call Stack panel. If I insert a generic print command between lines 3 and 4, that command will run and output the specified print string, and then the program just hangs. There are no error messages, and no other output.
Update: I apparently left the program running overnight and it eventually came up with a TypeError:
TypeError: 'NoneType' object is not iterable
If I comment out line 4, the program runs and appears to terminate normally.
There seems to be some issue with the ".get_financial_data()" part. For that matter, the ".get_stock_profile_data()" method produces identical behavior: i.e. program hangs with no output.
I don't seem to have any problem using functions from the "yfinance" module, so the fetching of data from Yahoo is working in those instances.
Any ideas?
Any assistance or insight you can provide is greatly appreciated.
from yahoofinancials.
seems to be an issue with latest version, I tried version 1.17 and it worked
from yahoofinancials.
seems to be an issue with latest version, I tried version 1.17 and it worked
Thank you! (Now why didn't I think of that? ...facepalm...)
For the benefit of others who might be having similar issues:
Version 1.17 still gave me a type error.
line 190, in _request_handler
cur_url += "&crumb=" + self.crumb
~~~~~~~~~~^~~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str
I don't know whether this is related to leaving the dependencies from 1.20 in place, or if there is something else on my system that is different.
But version 1.18 seems to have worked.
from yahoofinancials.
Related Issues (20)
- KeyError: 'incomeBeforeTax
- Get the last trading hour
- get_stock_earnings_data always fails HOT 8
- .get_key_statistics_data() results in a HTTP 401 code HOT 9
- Error when running test script HOT 4
- .get_key_statistics_data() http 401 yahoofinancials version 1.19 HOT 2
- get_key_statistic_data: 401 error HOT 2
- Problem with Demo.py HOT 4
- TypeError: can only concatenate str (not "NoneType") to str HOT 2
- get_net_income() provides the Net Income of 9/29/2020 (for AAPL) HOT 1
- get_historical_price_data() end_date HOT 4
- Can't fetch anything HOT 1
- unsupported operand type(s) for -: 'datetime.datetime' and 'str' HOT 5
- sessions.py _get_crumb does not get the crumb, it's empty HOT 6
- TypeError: 'NoneType' object is not subscriptable
- Sleeping and retrying for a long time HOT 1
- get_historical_price_data() error HOT 1
- get_summary_data() freezes the application with a delisted stock symbol
- Unable to get any examples working.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yahoofinancials.