Divya Jose
Divya Jose

Reputation: 389

Can I run PyCharm as Admin on windows?

I am trying to access STAF APIs on program running on PyCharm. Is there a way to run PyCharm as Admin?

ERROR:root:Error registering with STAF, RC: 21
Traceback (most recent call last):
File "C:\ucce_auto\TestAutomation\common\python\pystafBase.py", line 33, in getStafHandle
handle = STAFHandle(name)
File "C:\STAF\bin\PySTAFv3.py", line 157, in __init__
raise STAFException(rc)

I get an Error with code 21 and one of the way to deal with this is to run PyCharm as Admin. However I couldnot find any material that will help me do so.

Upvotes: 1

Views: 3814

Answers (1)

jurasource
jurasource

Reputation: 416

To run a program with Administrator privileges on a windows machine, you need to right click the program file and select "Run as Administrator"

enter image description here

Upvotes: 2

Related Questions