Kotak-Neo / kotak-neo-api

96 stars 80 forks source link

error for import neo_api_client #165

Open PARTHU2424 opened 1 month ago

PARTHU2424 commented 1 month ago

when i run import neo_api_client in jupyter notebook cell shows error :


ImportError Traceback (most recent call last) Cell In[7], line 1 ----> 1 import neo_api_client

File ~\AppData\Roaming\Python\Python311\site-packages\neo_api_client__init__.py:26 24 from .settings import stock_key_mapping 25 from neo_api_client.NeoWebSocket import NeoWebSocket ---> 26 from neo_api_client.HSWebSocketLib import HSWebSocket 27 from neo_api_client.HSWebSocketLib import HSIWebSocket 28 from neo_api_client.urls import WEBSOCKET_URL, PROD_BASE_URL, SESSION_PROD_BASE_URL, SESSION_UAT_BASE_URL, UAT_BASE_URL

File ~\AppData\Roaming\Python\Python311\site-packages\neo_api_client\HSWebSocketLib.py:5 2 import json 3 import ssl ----> 5 import websocket 7 # from neo_api_client.logger import logger 9 isEncyptOut = False

File ~\websocket.py:2 1 import neo_api_client ----> 2 from neo_api_client import NeoAPI 3 import pandas as pd 4 import datetime as dt

ImportError: cannot import name 'NeoAPI' from partially initialized module 'neo_api_client' (most likely due to a circular import) (C:\Users\DELL E7470\AppData\Roaming\Python\Python311\site-packages\neo_api_client__init__.py)

nprejit commented 1 month ago

your pip installation for neo_api_client not done correctly, it showing unable to load its supporting libraries. that is why showing this error.