Issue setting pins for parallel port trigger

OS : Win 10
PsychoPy version: 2021.x
Standard Standalone?: yes
What are you trying to achieve?: I am trying to send triggers via a parallel port to BrainRecorder (EEG software). My issue is that I can read the pins but I am unable to set them. I get no errors when running:

from psychopy import parallel

port = parallel.ParallelPort(port_address)
port.readPin(2)

I can try to set the pins with:

port.setPin(2,1)

but nothing changes.

What did you try to make it work?: I have followed all of the steps found here: https://discourse.psychopy.org/t/sending-eeg-triggers-to-brain-vision-software/10261. Additionally, I have no issues with sending triggers via Presentation with all the same hardware configurations.

TL;DR I get no errors when trying to set the pins but they do not change.

In case someone in the future has the same issue.

This was eventually solved by running the PsychoPy coder with elevated admin privileges. After the first time doing this, it continues to work for all users.

Found the idea here: [win10] parallel port D010 no write from psychopy (but does w/ Eprime and Presentation)