Не могу использовать amoshell в Python 3.6

У меня проблема с amoshell в python 3.6. Это мой код:

import amoshell
mo = amoshell.Amos()
#file_path = 'C:\\Users\Phuong Chi\Desktop\ip_database.txt'
rval, out, err = mo.moshell('MGWE3A', 'lt all; get 
tdmcrossconnection',ip_database='C:\\Users\Phuong 
Chi\Desktop\ip_database.txt')    #Amos.mobatch(nodes, command, kwargs),nodes can be a list
print (out)

И результат:

============== RESTART: C:\Users\Phuong Chi\Desktop\AMOSHELL.py ==============
Traceback (most recent call last):
  File "C:\Users\Phuong Chi\AppData\Roaming\Python\Python36\site-packages\amoshell\amoshell.py", line 32, in __init__
    self.moshellbin = self.__amos_location(self.bin_path)
  File "C:\Users\Phuong Chi\AppData\Roaming\Python\Python36\site-packages\amoshell\amoshell.py", line 137, in __amos_location
    raise
RuntimeError: No active exception to reraise

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Phuong Chi\Desktop\AMOSHELL.py", line 2, in <module>
    mo = amoshell.Amos()
  File "C:\Users\Phuong Chi\AppData\Roaming\Python\Python36\site-packages\amoshell\amoshell.py", line 34, in __init__
    raise RuntimeError('amos or moshell program not found')
RuntimeError: amos or moshell program not found

0 ответов

Другие вопросы по тегам