iis 7 - Python - CGI - (_urandom(16)), 16) WindowsError: [Error 5] Access is denied -


running simple script testing cgi setup.

#!/usr/bin/python  #import cgi print "content-type: text/plain\n\n"  gender = "female"  def display_vars (first_name, last_name, age):     print (first_name, last_name, age, gender)  def go_display():     gender = "male"     display_vars("john", "smith", 22)  go_display() 

it works , displays "('john', 'smith', 22, 'female')"

change above #import cgi import cgi

and fails.

the specified cgi application misbehaved not returning complete set of http headers.   (_urandom(16)), 16) windowserror: [error 5] access denied  

in random.py section-_urandom set except notimplementederror: except:

this works me. if have answer please let me know , try too.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -