Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-01340// Views: AA-01340// Created: 2017-11-20 21:16:17// Last Updated: 2017-11-21 16:59:19
Problem & Solution
Error using ePHASORSIM API in Python 2.7 (64-bit)

Problem

If you are getting the following error when importing functions ( ex: import opal.ephasorsim ) in ePHASORSIM. This KB article will show you how to get around it.


Solution

This error will only appear if you are not using the python console that is already available in RT-LAB. 

RT-LAB uses a 32-bit version of Python. Therefore, RT-LAB (version 11.2 and below)  are only compatible with Python 32-bit.You can download the 32-bit version of Python from here 

The first error when the command "import opal.ephasorsim" is typed shows that there is a missing package called " requests". To install the package, you need to open cmd from C:\Python27. This article shows how to do it.  

The installation of the package is done with the following command,

  • C:\Python27>python.exe -m pip install requests
  • This is the message that you should see when the installation is happening.

               

After the successful installation of the package "requests". The above errors should not appear when doing the same commands in the 32-bit version of Python. If you have more questions, please contact support