Closed sama2689 closed 1 day ago
you might try looking into current ESAPI version which is in init.py file of your pyesapi package:
ESAPI_PATH = os.environ.get('ESAPI_PATH')
if ESAPI_PATH is not None:
# optionally set ESAPI_PATH env var with location of DLLs
sys.path.append(ESAPI_PATH)
else:
# do some soul searching
rpaths = [os.path.join("esapi", "API"), "ExternalBeam"]
# versions = ["15.5", "15.6"] # this was originally in the file I changed it to 17.0 version to avoide doubles
versions = ["17.0"]
base = os.path.join("Program Files (x86)", "Varian", "RTM")
drives = ["C:", "D:"] # Could potentially list local drives, but Eclispe should be on C or D
For anaconda the file location is sth like: ...\anaconda3\envs\pyesapi38\lib\site-packages\pyesapi
The other question would be if you have .NET installed on your system?
WhGetting this error while installing pyesapi
C:\Users\varian.RADONC>pip install https://api.github.com/repos/VarianAPIs/PyESAPI/tarball Defaulting to user installation because normal site-packages is not writeable Collecting https://api.github.com/repos/VarianAPIs/PyESAPI/tarball WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='codeload.github.com', port=443): Max retries exceeded with url: /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)')))
What version of Python are you using?
You can try this before attempting to install again: python -m pip install —update pip
Best, Michael
From: DANDPANI @.> Sent: Tuesday, July 25, 2023 2:31:51 AM To: VarianAPIs/PyESAPI @.> Cc: Subscribed @.***> Subject: Re: [VarianAPIs/PyESAPI] PyESAPI: Getting Started (#16)
WhGetting this error while installing pyesapi
C:\Users\varian.RADONC>pip install https://api.github.com/repos/VarianAPIs/PyESAPI/tarball Defaulting to user installation because normal site-packages is not writeable Collecting https://api.github.com/repos/VarianAPIs/PyESAPI/tarball WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)'))': /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='codeload.github.com', port=443): Max retries exceeded with url: /VarianAPIs/PyESAPI/legacy.tar.gz/refs/heads/master (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1002)')))
— Reply to this email directly, view it on GitHubhttps://github.com/VarianAPIs/PyESAPI/issues/16#issuecomment-1649282082, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDJPXTW3U2APVAMUEIEJ7TXR5Y6PANCNFSM5FTK6BGQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
I am trying the first line of the getting started workshop script, but right away I am getting an error. The notebook says "Create one instance of the eclipse scripting application" by which I am assuming (could this be clarified?) they mean to open external beam planning and then open tools>scripts.
This is what I have done and I run
but then get the error
So I assume this means that the scripting application is an instance too many and needs to be closed, so I close out and run the same, but again I get the same error. When I run without ARIA or eclipse open in the background, I instead get the error
I think the script must be having trouble finding the Varian dlls, however these are stored in
C:\Program Files (x86)\Varian\RTM\15.6\esapi\API
which is in my PYTHONPATH variable.