getting error ModuleNotFoundError: No module named 'SmartApi' with python 3.12 and smartapi-python==1.4.8


  • from SmartApi import SmartConnect

    getting below error:

    *** TypeError: 'dict' object is not callable

    runfile('C:/Users/rohit/Documents/Aditi/angel_one/project/smartapi.py', wdir='C:/Users/rohit/Documents/Aditi/angel_one/project')
    Traceback (most recent call last):

    File ~\Anaconda3\envs\quant\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
    exec(code, globals, locals)

    File c:\users\rohit\documents\aditi\angel_one\project\smartapi.py:1
    from SmartApi import SmartConnect

    ModuleNotFoundError: No module named 'SmartApi'