Maximo Open Forum

 View Only

 OS SYSTEM ATTRIBUTE ERROR

  • Everything Maximo
beneths maragkos's profile image
beneths maragkos posted 09-08-2022 07:19
hello,
I'm trying to use the system() function from the os library to print out system data and I get the following error:
AttributeError: type object 'os' has no attribute 'system'.
I've tried using other functions of the same library and I get the same error, the only content I can access from the os library is os.name.
I've tried updating the os library from the library's directory but it didn't work.
I'm using Maximo version 7.6.1 with python 2.7.
Does anyone know how to fix this or get the system info with another way?

Thank you.
Steven Shull's profile image
Steven Shull
The automation script framework is python syntax but it's not python. It's technically jython 2.7 (https://www.jython.org/). You should figure out how to do whatever you need with traditional Java or Maximo capabilities (including some of the third party libraries we embed). You can get some python libraries to work but others won't.