Replies: 3 comments
-
That is a strange issue, because |
Beta Was this translation helpful? Give feedback.
-
I had the same issue and it fixed after I installed the PI-AF-Client and PISDK. I noticed one of them was missing because I wasnt getting the PIConnect message when importing it's module "OSIsoft(r) AF SDK Version: 2.10.9.593" on python. |
Beta Was this translation helpful? Give feedback.
-
Ah, another case of the weird bugs caused by my heuristic "if I can't find the SDK I must be in testing mode"... PIconnect 0.10, which I just released, should prevent a lot of these issues by using more specific heuristics, and raising an error if the SDK is not found instead of silently failing. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm experiencing problems while including username and password calling PiConnect.
As an example:
with PIconnect.PI.PIServer(server=None, username="test", password="test", authentication_mode=AuthenticationMode.PI_USER_AUTHENTICATION, timeout=None) as server: print(server.server_name)
The error returned is:
Connect() takes 2 positional arguments but 3 were given
If I remove the user and pass args, it seems to work properly. I've tried from a new conda env, and also including a server name but the problem persists.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions