|
Everything was running fine. I installed Pi Processbook on the machine I had the scripts running on and now I can't get the library to import. I uninstalled PIconnect and then reinstalled at the latest version and still didn't work. What can I do to remedy this???? The following is the error that it is throwing: OSIsoft(r) AF SDK Version: 2.10.5.9050
System.EntryPointNotFoundException: Unable to find an entry point named 'PIInterop_VersionCheck' in DLL 'PIInterop'.
at OSIsoft.PI.Net.UnsafeNativeMethods.PIInterop.VerifyPIInteropCompatibility(Int32 majorVersion, Int32 minorVersion, Int32 buildVersion)
at OSIsoft.PI.Net.ModuleInitializer.Run()
at .cctor()
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\rmauto\Pi_Calcs\Monorail\scale_check.py", line 47, in <module>
import PIconnect as PI
File "C:\Users\rmauto\AppData\Local\Programs\Python\Python311\Lib\site-packages\PIconnect\__init__.py", line 7, in <module>
from PIconnect.PI import PIServer
File "C:\Users\rmauto\AppData\Local\Programs\Python\Python311\Lib\site-packages\PIconnect\PI.py", line 42, in <module>
class PIServer(object): # pylint: disable=useless-object-inheritance
File "C:\Users\rmauto\AppData\Local\Programs\Python\Python311\Lib\site-packages\PIconnect\PI.py", line 61, in PIServer
servers = _lookup_servers()
^^^^^^^^^^^^^^^^^
File "C:\Users\rmauto\AppData\Local\Programs\Python\Python311\Lib\site-packages\PIconnect\PI.py", line 21, in _lookup_servers
for server in AF.PI.PIServers():
^^^^^^^^^^^^^^^^^
System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'PIInterop_VersionCheck' in DLL 'PIInterop'.
at OSIsoft.PI.Net.UnsafeNativeMethods.PIInterop.VerifyPIInteropCompatibility(Int32 majorVersion, Int32 minorVersion, Int32 buildVersion)
at OSIsoft.PI.Net.ModuleInitializer.Run()
at .cctor()
--- End of inner exception stack trace ---
at OSIsoft.AF.PI.PIServersGlobal.get_DirectoryProvider()
at OSIsoft.AF.PI.PIServersGlobal.Load(Boolean force)
at OSIsoft.AF.PISystemsGlobal.get_PIServers()
at OSIsoft.AF.PI.PIServers..ctor()
|
Replies: 2 comments
|
EntryPointNotFoundException Traceback (most recent call last) The above exception was the direct cause of the following exception: TypeInitializationException Traceback (most recent call last) File c:\ProgramData\anaconda3\Lib\site-packages\PIconnect_init_.py:6 File c:\ProgramData\anaconda3\Lib\site-packages\PIconnect\PI.py:42 |
|
Ended up, when Processbook was installed, it upgraded the SDK as well. That version was not compatible with the PIconnect library for some reason. I uninstalled Processbook and rolled back my SDK version to get everything talking again |
Ended up, when Processbook was installed, it upgraded the SDK as well. That version was not compatible with the PIconnect library for some reason. I uninstalled Processbook and rolled back my SDK version to get everything talking again