You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyESAPI is pythonnet wrapper over ESAPI/Eclipse and requires Eclipse installation to work. The exception tells that PyESAPI cannot find the requisite libraries in expected locations so try on machine with Eclipse installation at hand. ESAPI alone will not cut it because ESAPI, which is UI-less Eclipse client with some restrictions, relies on Eclipse proper.
(pyesapi) C:\Users\lolivares>python
Python 3.10.12 | packaged by Anaconda, Inc. | (main, Jul 5 2023, 19:01:18) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyesapi
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\lolivares\AppData\Local\anaconda3\envs\pyesapi\lib\site-packages\pyesapi\__init__.py", line 83, in <module>
from VMS.TPS.Common.Model.Types import *
ModuleNotFoundError: No module named 'VMS.TPS.Common.Model.Types'
My path to VMS...dll files is:
C:\Program Files (x86)\Varian\RTM\16.1\esapi\API
Additional info:
I am working in a TBOX, with Eclipse 16.1
I am usign a conda virtual environment (named pyesapi)
I have pyesapy 0.2.5, installed by pip install pyesapi
Activity
mvarsta commentedon Oct 5, 2023
PyESAPI is pythonnet wrapper over ESAPI/Eclipse and requires Eclipse installation to work. The exception tells that PyESAPI cannot find the requisite libraries in expected locations so try on machine with Eclipse installation at hand. ESAPI alone will not cut it because ESAPI, which is UI-less Eclipse client with some restrictions, relies on Eclipse proper.
fizxmike commentedon Jul 29, 2024
Hi @maksymfritsak,
Can you confirm if you are trying to run PyESAPI from an Eclipse TBOX or VIC environment?
LuisOlivaresJ commentedon Jul 31, 2024
Hi, I also have an
importproblem:My path to VMS...dll files is:
Additional info:
I am working in a TBOX, with Eclipse 16.1
I am usign a conda virtual environment (named pyesapi)
I have pyesapy 0.2.5, installed by
pip install pyesapiLuisOlivaresJ commentedon Jul 31, 2024
Adding a reference seems to solve the problem:
clr.AddReference('VMS.TPS.Common.Model.Types')I added it, next to line 74, and now I do not have the import error
PyESAPI/pyesapi/__init__.py
Line 74 in 2d5cd95
If it is possible, I would like to create a pull request with the addition.