samco-sdk / Python-SDK

Official Python SDK for accessing Stocknote API
MIT License
15 stars 11 forks source link

ModuleNotFoundError: No module named 'snapi_py_client' #24

Open SubhaBasu1979 opened 7 months ago

SubhaBasu1979 commented 7 months ago

I have written the below Code :

from snapi_py_client.snapi_bridge import StocknoteAPIPythonBridge import json samco=StocknoteAPIPythonBridge() login=samco.login(body={"userId":'xxxxxx','password':'xxxx','yob':'xxxx'}) print("Login details",login)

this will return a user details and generated session token

This is the Error Message I am getting

File "C:\Users\BASU\Documents\Python Scripts\SamcoAPI\SamcoAuthCode.py", line 1, in from snapi_py_client.snapi_bridge import StocknoteAPIPythonBridge ModuleNotFoundError: No module named 'snapi_py_client'

I have already installed SDK using pip install stocknotebridge

Pls Help

How to Rectify ?

jagatsingh commented 6 months ago

Are you able to confirm you are using correct Python environment where you installed this?

Start the shell in that venv and see if you are able to import snapi_py_client