I am running a sample file for a Python Standalone Application, 'PythonStandalone_01_new_file_and_quickfocus.py' and the developer environment (Visual Studio Code) flags up 2 problems:
Unable to import 'ZOSAPI-NetHelper'
Unable to import 'ZOSAPI'
The relevant lines of code in the sample file are:
aKey = winreg.OpenKey(winreg.ConnectRegistry(None, winreg.HKEY_CURRENT_USER), r'Software\Zemax', 0, winreg.KEY_READ)
zemaxData = winreg.QueryValueEx(aKey, 'ZemaxRoot')
NetHelper = os.path.join(os.sep, zemaxData[0], r'ZOS-API\Libraries\ZOSAPI_NetHelper.dll')
winreg.CloseKey(aKey)
clr.AddReference(NetHelper)
import ZOSAPI_NetHelper
import ZOSAPI
I can see that the dll files are present at the filepath location.
The code does run and generates a zemax file. Do I need to worry about these problems?