Issues installing Python API in SACS 15.0

Product: SACS v15.0

Hello SACS community,

I am trying to install the Python API for SACS 15.0 per the instructions in the documentation. I get the following error (no module named SACS.Model.Error)

I have tried adding the SACS package into the site-packages folder of my Python installation, modifying the system path as well as the pythonpath, but no luck. Additionally, attempting a Python API installation on SACS 15.1 using pip also resulted in the same error. I am not sure how to proceed, has anyone faced this before? Thanks!

-Arun

Parents Reply Children
  • Hi Ricardo, the documentation for SACS 15.0 says the following

    Thus there was no command I could use to install the SACS API. I think that Python is able to find the .dlls as mentioned, since Python is able to find the __init__.py file. But it cannot run the code in __init__ successfully. I use Miniconda3 to run Python, and work with VS Code 1.78.2

  •  Good day  

    I recommended that you update it to version 15.1, in the next direction you will have the files to install Python API

    Depending on your version of Python, you have to install one of the files shown below, (version 3.7, 6.8 or 3.9)

    now, you can open a terminal and type the next command. you need to change the yellow highlighter by the pathway of your Python version, and the blue text with the pathway of the file .whl to install

    C:\Users\Ricardo.Alarcon\AppData\Local\Programs\Python\Python39\python.exe -m pip install  "C:\Program Files (x86)\Bentley\Engineering\SACS CONNECT Edition V15\SDK\Python\pkg\SACS-15.1-cp39-cp39-win_amd64.whl"

    if everything is well you can see the next process

    to know if you have installed the API version only have to type "pip list"

    Regards