TypeError:"Module" Object is not callable

How to fix this issue?

Hey @mrmanu,

Welcome to the Streamlit community! :tada: :tada: :tada: :tada: :tada: :tada: :partying_face:

Can you post your code (a minimum working example that causes this error would be good!). Im not sure what yf.ticker is!

Thanks,
Marisa

Greetings,

Uploaded the code. Anything you can do to assist would be greatly appreciated.
I am new to this and definitely looking to get projects under my belt.

Thank you

Per the yfinance docs, this is the proper syntax:

import yfinance as yf

msft = yf.Ticker("MSFT")

Your cell has yf.ticker, which is not correct capitalization.

Best,
Randy

Yeah, that’s it. It worked.

Thank u

FileNotFoundError: [Errno 2] No such file or directory: ‘dna-logo.jpg’

Certainly need help with this.

When you open a file with the name “filename.ext”; you are telling the open() function that your file is in the current working directory . This is called a relative path.

file = open('filename.ext') //relative path

In the above code, you are not giving the full path to a file to the open() function, just its name - a relative path. The error FileNotFoundError: [Errno 2] No such file or directory is telling you that there is no file of that name in the working directory. So, try using the exact, or absolute path.

file = open(r'C:\path\to\your\filename.ext') //absolute path

In the above code, all of the information needed to locate the file is contained in the path string - absolute path