-
Notifications
You must be signed in to change notification settings - Fork 41
Description
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
- 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.