getting error while running program. init() got an unexpected keyword argument ‘client_id’
Hi Sunil, are you running latest version of fyers-apiv2 which is 2.0.5?
Hi vikram, fyer-apiv2 2.0.5 is installed. error is init() got an unexpected keyword argument ‘client_id’
hello i’m also getting same error. I tried all possible ways installed new API v2 fyers-apiv2 – 2.0.6. but If i uninstall old fyers_api then the code gives me the error for these lines “from fyers_api import fyersModel, from fyers_api import accessToken”. saying there is no fyers_api found… whats going on guys it became so complicated with new api versions. my code stopped working. please help asap. TypeError: SessionModel.init() got an unexpected keyword argument ‘client_id’" This is the error message I get.
Hi @kusumka55-alz
please try using venv to create a new python environment then install SDK on the new environment and try running your code on new environment.
https://realpython.com/python-virtual-environments-a-primer/#create-it
this would help on how to create new environments and how to activate and use them.
Hi Sunil and @kusumka55-alz ,
Can you please Uninstall both and install new one only.
Uninstall Both:
pip uninstall fyers-api
pip uninstall fyers-apiv2
Install:
pip install fyers-apiv2
Please let me know after this you are getting error or not.
It worked. Thanks