PyESAPI icon indicating copy to clipboard operation
PyESAPI copied to clipboard

How to use the pyesapi with the pythonnet 3.0.3

Open vinaysaini94 opened this issue 1 year ago • 2 comments

When I run the command import pyesapi on my test box system, I get the following error message:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Varian\anaconda3\envs\Python18062024\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'

Any solutions for this issue? I am using the .NET Framework 4.3 and Eclipse version 15.6. Any suggestions for running pyesapi with pythonnet 3.0.3?

Thanks.

vinaysaini94 avatar Jun 25 '24 13:06 vinaysaini94

Hi @vinaysaini94, I've updated PyESAPI to include pywin32 as a dependency... perhaps this might help? Try re-installing PyESAPI using pip and it should get installed automatically: pip uninstall pyesapi pip install --upgrade pyesapi

fizxmike avatar Jul 29 '24 15:07 fizxmike

See https://github.com/VarianAPIs/PyESAPI/issues/26#issuecomment-2261377820

LuisOlivaresJ avatar Jul 31 '24 20:07 LuisOlivaresJ