Menu

COM interface with python

Beginners
Niwantha
2023-03-02
2023-03-02
  • Niwantha

    Niwantha - 2023-03-02

    Dear all,
    DSS is only support with python 2. But python 2.7 hasn't come with pip? how to import DSS to python script in python 2.
    Regards,
    Niwantha

     
  • wsunderm1

    wsunderm1 - 2023-03-02

    OpenDSS supports, through the COM interface DLL, any language that supports the Windows Component Object Model interface.

    OpenDSS supports current versions of python which are in the python 3 series. Python 2 was 'sunset' in April 2020 per the following press release: https://www.python.org/psf/press-release/pr20191220/

    It's suggested to use the python 3 series for any python scripting since it is being actively developed and supported by the Python Software Foundation. You will need to install something like the pywin32 package for COM interface support in python, to communicate with the COM interface of OpenDSS.

     

Log in to post a comment.