Comments (7)
Nevermind, I see my error -- my file is named finnhub.py and it's trying to import that
from finnhub-python.
Hi @PLAYER69 I can execute it just fine.
- Can you check what is the version of
finnhub-python
on your machine viapip show finnhub-python
? Make sure you have the latest version which is 2.0.0. - Try to uninstall and install again if you don't have the latest version.
from finnhub-python.
from finnhub-python.
I am closing this issue now. If you need more helps, let's us know
from finnhub-python.
I'm seeing what appears to be this same issue again with finnhub-python 2.4.0
Here is the simple script I'm running
(finnhub) aaronevans@macbook:finnhub $ cat finnhub.py
import finnhub
import os
# Setup client
FINNHUB_API_KEY = os.environ.get('FINNHUB_API_KEY')
finnhub_client = finnhub.Client(api_key=FINNHUB_API_KEY)
# Stock candles
res = finnhub_client.stock_candles('AAPL', 'D', 1590988249, 1591852249)
print(res)
(finnhub) aaronevans@macbook:finnhub $ python finnhub.py
Traceback (most recent call last):
File "finnhub.py", line 1, in <module>
import finnhub
File "/Users/aaronevans/scratch/finnhub/finnhub.py", line 6, in <module>
finnhub_client = finnhub.Client(api_key=FINNHUB_API_KEY)
AttributeError: partially initialized module 'finnhub' has no attribute 'Client' (most likely due to a circular import)
(finnhub) aaronevans@macbook:finnhub $ pip show finnhub-python
Name: finnhub-python
Version: 2.4.0
Summary: Finnhub API
Home-page: https://finnhub.io/docs/api
Author: Finnhub
Author-email: [email protected]
License: Apache-2.0
Location: /Users/aaronevans/.pyenv/versions/3.8.2/envs/finnhub/lib/python3.8/site-packages
Requires: requests
Required-by:
(finnhub) aaronevans@macbook:finnhub $ pip freeze
certifi==2020.12.5
chardet==4.0.0
finnhub-python==2.4.0
idna==2.10
requests==2.25.1
urllib3==1.26.3
Am I doing something wrong?
from finnhub-python.
Nevermind, I see my error -- my file is named finnhub.py and it's trying to import that
This helped me, thanks!
from finnhub-python.
Hi, Im having the same issue but cant uninstall it. I installed today with the updated pip install for the newest version but it wont install that version and i cant find/get any uninstall to work?
I cant find any commands to let me install a specific version or update the version i have? it wont let me use .Client or any of the calls? Can you give me the uninstall/install commands? im using the lastest ones from
(https://pypi.org/project/finnhub-python/). and it only installs the old version??
I found where to change the version but it still doenst not work...
I get the same errors.. no .Client
from finnhub-python.
Related Issues (20)
- "goodwill" missing from financials endpoint?
- Internal Server Error when testing technical indicator endpoint
- Missing 1 month of data on candles endpoint
- Why not wrapping stock_candles results into a pandas.DataFrame?
- Earning Calendar
- Could I use this API to get daily stock price everyday?
- symbol lookup is not returning useful results HOT 3
- QQQ 2021-06-15 13:30 data missing HOT 1
- Feasability of using endpoint: stock/symbol?exchange=US to create/update a masterfile
- META (Facebook) 2022-01-31 ~ 2022-06-08 1 minute bars missing
- any plans to add futures data?
- raise Key Error
- Just curious... HOT 1
- marketcap
- #stock_candle not clear HOT 1
- [Question] About the type `PUBLIC` in stock_symbols
- Multiple symbols request.
- crypto_candles is giving data of wrong length and dates HOT 1
- financials_reported not getting last report of 2023 on aapl stock
- [Enhance] Add peers to TS
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 finnhub-python.