hydrosquall / tiingo-python

Python client for interacting with the Tiingo Financial Data API (stock ticker and news data)
https://pypi.org/project/tiingo/
MIT License
243 stars 51 forks source link

cannot import name 'TiingoClient' from 'tiingo' #913

Closed me1029134 closed 9 months ago

me1029134 commented 9 months ago

Description

Installed tiingo in Virtual Enviroment, using VS Code. "pip install tiingo" Trying to run the simple example below. Brakes on first line.

Trying to run first example

What I Did

Ran only the from / import statement. Getting Error "Exception has occurred: ImportError cannot import name 'TiingoClient' from 'tiingo' "

CODE:
"
from tiingo import TiingoClient
"

Outputs: 
"{'message': 'You successfully sent a request'}
[{'date': '2023-06-30', 'year': 2023, 'quarter': 4, 'statementData': {'balanceSheet': [{'dataCode': 'totalLiabilities', 'value': 205753000000.0}, {'dataCode': 'acctPay', 'value': 18095000000.0}, {'dataCode': 'liabilitiesCurrent', 'value': 104149000000.0}, {'dataCode': 'intangibles', 'value':"...............

I tried pip uninstalling tiingo and creating a new folder with new venv with no luck yet.

Thanks in Advance. I'm sure it's something I did wrong.

me1029134 commented 9 months ago

Nevermind, I had another file in the same folder named "tiingo.py". That was the problem.