You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OSIsoft.AF.PI.PIConnectionException: [52] You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.
Description
I was running my code in a loop
While ...
with PI.PIServer(server=region) as server:
........
and I would get the error above. I can change the loop to only run the with three times but I still get the error.
real kicker is sometimes I will get the error right away if I try to rerun my code for a while. Anyway to make sure I am not still connected to the network?
To Reproduce
Steps to reproduce the behavior:
While ...
with PI.PIServer(server=region) as server:
........
Expected behavior
I want to connect to the PI server
Possible solutions
I need to make sure I am signed out or disconnect within my code
Screenshots
If applicable, add screenshots to help explain your problem.
System
OS: [e.g. Windows, Linux]
Python version: [Python 3.x]
PIconnect version: [e.g. 0.10.0]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
you could try calling server.connection.Disconnect() manually, although that should execute anyway once the with block ends. However, given the description on the exception I suspect a network configuration error which your IT department should look into..
Bug report
OSIsoft.AF.PI.PIConnectionException: [52] You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.
Description
I was running my code in a loop
While ...
with PI.PIServer(server=region) as server:
........
and I would get the error above. I can change the loop to only run the with three times but I still get the error.
real kicker is sometimes I will get the error right away if I try to rerun my code for a while. Anyway to make sure I am not still connected to the network?
To Reproduce
Steps to reproduce the behavior:
While ...
with PI.PIServer(server=region) as server:
........
Expected behavior
I want to connect to the PI server
Possible solutions
I need to make sure I am signed out or disconnect within my code
Screenshots
If applicable, add screenshots to help explain your problem.
System
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: