Coder Social home page Coder Social logo

Comments (4)

datatalking avatar datatalking commented on June 12, 2024

@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?

Screen Shot 2024-02-27 at 2 49 32 AM Screen Shot 2024-02-27 at 2 51 32 AM

from yahoofinancials.

GRM65 avatar GRM65 commented on June 12, 2024

@datatalking,

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.

rtginfinity avatar rtginfinity commented on June 12, 2024

seems to be an issue with latest version, I tried version 1.17 and it worked

from yahoofinancials.

GRM65 avatar GRM65 commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.