[BioPython] Scripts cannot connect

Peter biopython at maubp.freeserve.co.uk
Mon Oct 22 12:48:52 UTC 2007


João Rodrigues wrote:
> Everytime I try to run it, it gets me a timeout. I solved the problem in
> Windows by setting up env_variables. Here, the bash can access the web (it
> has its env_var http_proxy set) but my scripts can't.. any help?

What does this do if you add it to your script?

import os
print os.environ.keys()
try :
     print os.environ["http_proxy"]
except KeyError :
     print "http_proxy environment variable not setup"

How have you setup the environment variables in Linux? Via your .bashrc 
file?

Peter




More information about the Biopython mailing list