Comment 4 for bug 745634

Revision history for this message
Emiliano Parasassi (millallo) wrote : Re: [Bug 745634] Re: http proxy not supported

Hi Panagiotis,
your example script gave me the possibility to find the problem.

Your script works fine behind a proxy if it is called with the
environment variable 'http_proxy' and i can read the weather of New
York .

Unfortunately my indicator lives in an environment which doens't have
this variable because it is not set at login time.
To reproduce my indicator behaviour to the following:

- launch gnome-network-properties and set 'no proxy' globally.
- logout and login.
- ensure you doen't have the variable 'http_proxy' set in a terminal
(echo $http_proxy).
- launch gnome-network-properties a now set your proxy.
- Weather indicator doesn't works because his environment doesn't
changed, http_proxy isn't set! ...this is my case when i start working
and i change the proxy!

So, seems that the python interpreter search the proxy only in the
environment and doesn't check the gnome proxy like firefox or chrome
do...
Is possible in python retrieve proxy configuration in the gnome desktop session?

best regards
emiliano

On Fri, Apr 1, 2011 at 10:56, Panagiotis Skintzos
<email address hidden> wrote:
> Hi Emiliano,
> my proxy is in my server and I use the indicator from other machines in my lan.
>
> Please attach the log file (~/.cache/indicator-weather.log)
>
> You can run from the command line this:
> /usr/share/doc/python-pywapi/examples/pywapi-example.py
> Does it run successfully?
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/745634
>
> Title:
>  http proxy not supported
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/weather-indicator/+bug/745634/+subscribe
>