On Jan 27, 3:07 pm, Arnaud Delobelle arno...@googlemail.com wrote:
On 27 Jan, 14:41, D HANNEY spam2...@nney.com wrote:
[...]
See [1] for an explanation. Here is an idea: you could get round that
by generating a class on the fly, if you don't mind changing the class
of the object (untested):
On Jan 28, 1:31 pm, D HANNEY spam2...@nney.com wrote:
Your solution works if I change type(obj) to say obj.__class__.
If I don't make this change Python complains TypeError: Error when
calling the metaclass bases type 'instance' is not an acceptable base
type.
So, I've got something that
\nblah3\n))
Traceback (most recent call last):
File stdin, line 1, in module
File stdin, line 2, in show
AttributeError: StringIO instance has no attribute '__exit__'
#
# Oh dear ... I'll need to proxy it ...
#
class IterNoGuardProxy(object):
... def __init__(self, t
On 27 Jan, 14:41, D HANNEY spam2...@nney.com wrote:
[...]
class NoGuardProxy(object):
... def __init__(self, t):
... self.t = t
... def __enter__(self):
... return self
... def __exit__(self, type, value, traceback):
...
Hello All,
i was encoutered some problem while im using mechanize.Browser() with proxy
handling function.
i have working snippet of script about mechanize.urlopen, but i don't know
how to implement with mechanize.Brower module.
if anyone can show me some sample?
if anyone help me much
On Jan 4, 5:42 pm, elca high...@gmail.com wrote:
how can i add proxy support into my mechanize script?
i was look for some reference , but not so much good hint from google.
There are examples on using proxies with mechanize on the module's
home page:
http://wwwsearch.sourceforge.net/mechanize
alex23 wrote:
On Jan 4, 5:42 pm, elca high...@gmail.com wrote:
how can i add proxy support into my mechanize script?
i was look for some reference , but not so much good hint from google.
There are examples on using proxies with mechanize on the module's
home page:
http
On Jan 4, 9:25 pm, elca high...@gmail.com wrote:
that is only support mechanize.browser module.. actually
im looking mechanize.urlopen method.
From the docs:
In these examples, the workings are hidden inside the mechanize.urlopen
() function, which is an extension of urllib2.urlopen().
Hello All
Happy New Year!
i have some question about python mechanize 's proxy support.
im making some web client script, and i would like to insert proxy support
function into my script.
for example ,if i have such like following some script.
how can i add proxy support into my mechanize
Shinnosuke shinnosuke.g...@gmail.com added the comment:
I found a solution of the same errors from Windows, and my solution was
removed the double quote at HTTP_PROXY settings.
--
components: +Windows -Library (Lib)
nosy: +shinnosuke
versions: +Python 2.6
Changes by Nir Aides n...@winpdb.org:
--
nosy: +nirai
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
___
___
Python-bugs-list mailing list
Manuel Muradás mmura...@dieresys.com.ar added the comment:
Hi! 2.6 backport is missing an argument in _set_tunnel definition. It
should be:
def _set_tunnel(self, host, port=None, headers=None):
--
nosy: +dieresys
___
Python tracker
Manuel Muradás mmura...@dieresys.com.ar added the comment:
The patch fixes only when you pass the authentication info in the proxy
handler's URL. Like:
proxy_handler = urllib2.ProxyHandler({'https':
'http://user:p...@proxy-example.com:3128/'})
But setting the authentication using
Senthil Kumaran orsent...@gmail.com added the comment:
Thanks for the note, Manuel. Fixed it in revision 77013.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7291
___
Diez B. Roggisch wrote:
Klein Stéphane schrieb:
Hi,
I look for a tools to do proxy cache like apt-proxy (for Debian
Package) but for python eggs package.
Can a easy-install option perform this feature ?
No. But you might install EggBasket, which is a PyPI-like server.
http
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed and Committed revision 76908 in the trunk.
--
keywords: -needs review
resolution: accepted - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7291
Senthil Kumaran orsent...@gmail.com added the comment:
Fixed through reversions r76908, r76909, r76910, r76911
Thanks for the patch, Tatsuhiro Tsujikawa.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
Pete Hunt floydoph...@gmail.com added the comment:
UPDATE: this example WORKS if you remove authkey - so it seems to be a
problem with authentication.
--
type: - crash
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +jnoller
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
___
___
Python-bugs-list
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: - normal
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7503
___
New submission from Pete Hunt floydoph...@gmail.com:
When pickling a proxy object (such as a list) created on a client, an
exception is thrown. Example attached.
Python 2.6.4 Mac OS X 10.6
p
--
components: Library (Lib)
files: multiprocessing_bug.py
messages: 96371
nosy: peterhunt
Ronald Oussoren ronaldousso...@mac.com added the comment:
I agree that _scproxy should be ported to the 3.x trees. Such a port
should be fairly straightforward, but is harder than just copying files
over due to the str/unicode changes in the 3.x tree.
--
On 12/8/2009 8:43 AM, Rhodri James wrote:
def run(self):
result = func(*func_args) # matching run_in_thread param names
callback(result, *callback_args)
Neat, but I think you mean
if callback is not None:
callback(result, *callback_args)
for that last line.
how about:
import threading
def
Lie Ryan wrote:
On 12/8/2009 8:43 AM, Rhodri James wrote:
def run(self):
result = func(*func_args) # matching run_in_thread param names
callback(result, *callback_args)
Neat, but I think you mean
if callback is not None:
callback(result, *callback_args)
for that last line.
how about:
elca wrote:
Hello ALL,
i have some python proxy checker .
and to speed up check, i was decided change to mutlthreaded version,
and thread module is first for me, i was tried several times to convert to
thread version
and look for many info, but it not so much easy for novice python
r0g wrote:
elca wrote:
Hello ALL,
i have some python proxy checker .
and to speed up check, i was decided change to mutlthreaded version,
and thread module is first for me, i was tried several times to convert
to
thread version
and look for many info, but it not so much easy
r0g wrote:
The trick to threads is to create a subclass of threading.Thread, define
the 'run' function and call the 'start()' method. I find threading quite
generally useful so I created this simple generic function for running
things in threads...
Great idea. Thanks for posting this.
def
On Mon, 07 Dec 2009 18:21:23 -, Terry Reedy tjre...@udel.edu wrote:
r0g wrote:
The trick to threads is to create a subclass of threading.Thread, define
the 'run' function and call the 'start()' method. I find threading quite
generally useful so I created this simple generic function for
Rhodri James wrote:
On Mon, 07 Dec 2009 18:21:23 -, Terry Reedy tjre...@udel.edu wrote:
def run(self):
result = func(*func_args) # matching run_in_thread param names
callback(result, *callback_args)
Neat, but I think you mean
if callback is not None:
Terry Reedy wrote:
r0g wrote:
The trick to threads is to create a subclass of threading.Thread, define
the 'run' function and call the 'start()' method. I find threading quite
generally useful so I created this simple generic function for running
things in threads...
Great idea. Thanks
Terry Reedy wrote:
r0g wrote:
The trick to threads is to create a subclass of threading.Thread, define
the 'run' function and call the 'start()' method. I find threading quite
generally useful so I created this simple generic function for running
things in threads...
Great idea. Thanks
Rhodri James wrote:
On Mon, 07 Dec 2009 18:21:23 -, Terry Reedy tjre...@udel.edu wrote:
r0g wrote:
The trick to threads is to create a subclass of threading.Thread, define
the 'run' function and call the 'start()' method. I find threading quite
generally useful so I created this simple
Hello ALL,
i have some python proxy checker .
and to speed up check, i was decided change to mutlthreaded version,
and thread module is first for me, i was tried several times to convert to
thread version
and look for many info, but it not so much easy for novice python programmar
Senthil Kumaran orsent...@gmail.com added the comment:
HTTP Proxy Authentication works on Windows and has been verified. Under
the situation of failure, we do not enough details. Closing this bug as
out-of-date as the reporter informed it worked on py2.5 and problem was
with py2.4
Ronald Oussoren ronaldousso...@mac.com added the comment:
The patch looks good to me.
IMHO this should be backported to 2.6 as well.
--
keywords: +needs review
nosy: +ronaldoussoren
___
Python tracker rep...@bugs.python.org
Ronald Oussoren ronaldousso...@mac.com added the comment:
I've tested a backport of the patch to 2.6 (just replace set_proxy by
_set_proxy in the patch) and the resulting version of urllib2 can login to
the proxy (as expected).
Thanks for the patch
Changes by Senthil Kumaran orsent...@gmail.com:
--
assignee: - orsenthil
nosy: +orsenthil
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7291
___
Changes by Tatsuhiro Tsujikawa tsujik...@gp.hitachi.co.jp:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7291
___
___
New submission from Tatsuhiro Tsujikawa tsujik...@gp.hitachi.co.jp:
urllib2 cannot handle https with proxy requiring authorization.
After https_proxy is set correctly,
Python 2.6.4 (r264:75706, Oct 29 2009, 15:38:25)
[GCC 4.4.1] on linux2
Type help, copyright, credits or license for more
, in
AbstractHTTPHandler::do_open(),
if Proxy-Authorization header is found, pass it to set_tunnel().
It works fine for me.
--
keywords: +patch
Added file: http://bugs.python.org/file15296/https_proxy_auth.patch
___
Python tracker rep...@bugs.python.org
http
Ronald Oussoren ronaldousso...@mac.com added the comment:
Fixed in r75482 (trunk) and r75483 (2.6)
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7044
Senthil Kumaran orsent...@gmail.com added the comment:
Thanks for the comments.
Fixed and committed the changes trunk - 75478.
and merged into
release26-maint - 75479.
py3k - r75476
release31-maint - r75477
--
resolution: accepted - fixed
status: open - closed
Ronald Oussoren ronaldousso...@mac.com added the comment:
I've posted a patch for this in Issue7149.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7044
___
New submission from Ned Deily n...@acm.org:
On OS X, urllib.request in Python 3 is supposed to use the operating
system's proxy configuration by default, unless overridden by
environment variables or by the caller providing an explicit proxy
configuration.
In Python 2, urllib
New submission from Ned Deily n...@acm.org:
Several issues with urllib/urllib2 documentation regarding proxy usage:
1. The Macintosh proxy description in section 21.5.1 is out-of-date:
In a Macintosh environment, urlopen() will retrieve
proxy information from Internet Config
Senthil Kumaran orsent...@gmail.com added the comment:
I have attached a docs patch against the trunk.
Please provide your review comments. If its okay, I can commit it and
have the information (urllib2.rst) for the Python 3k too.
--
assignee: georg.brandl - orsenthil
keywords: +patch
Ned Deily n...@acm.org added the comment:
One comment:
+ :envvar:`protocol_proxy`. In a Windows environment, if no proxy
+ environment variables are set, proxy settings are obtained from the
+ registry's Internet Settings section. In a Mac OS X environment,
proxy
+ information
Ned Deily n...@acm.org added the comment:
See also Issue7149.
--
nosy: +ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7044
___
___
Changes by Senthil Kumaran orsent...@gmail.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7044
___
___
Python-bugs-list
I have a 2 processes:
the first process is manager.py and starts in backgroung:
from multiprocessing.managers import SyncManager, BaseProxy
from CompositeDict import *
class CompositeDictProxy(BaseProxy):
_exposed_ = ('addChild', 'setName')
def addChild(self,
urllib.urlopen using a
proxy:
File
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.
py, line 87, in urlopen
return opener.open(url)
File
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.
py, line 206, in open
return getattr(self, name)(url
jweber ja...@jacobweber.com added the comment:
Let me know if you need me to create a test caseit doesn't seem to
happen in all situations.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7044
I have written client-server programs in python. They seem to be working
fine in the same computer, even on two different computers when directly
connected through a Lan wire, but it wouldn't work in my college LAN. I
think it is due to the proxy server through which all the computers in our
LAN
Le Sun, 20 Sep 2009 18:33:10 +0200, Klein Stéphane a écrit :
Hi,
I look for a tools to do proxy cache like apt-proxy (for Debian Package)
but for python eggs package.
Can a easy-install option perform this feature ?
I found somethings to do that :
http://pypi.python.org/pypi
Hi,
I look for a tools to do proxy cache like apt-proxy (for Debian Package) but
for python eggs package.
Can a easy-install option perform this feature ?
Thanks for your help,
Stephane
--
http://mail.python.org/mailman/listinfo/python-list
Klein Stéphane schrieb:
Hi,
I look for a tools to do proxy cache like apt-proxy (for Debian Package)
but for python eggs package.
Can a easy-install option perform this feature ?
No. But you might install EggBasket, which is a PyPI-like server.
http://www.chrisarndt.de/projects
New submission from lplatypus l...@deller.id.au:
On Windows, the urllib2 module (renamed to urllib.request in python 3)
does not use the system web proxy for https URLs in the case where Use
the same proxy for all protocols is selected in the Internet Explorer
proxy settings.
Attached
Senthil orsent...@gmail.com added the comment:
Agreed to the suggestions made by Greg.
The fix is now backported.
For Py2.6 in the revision 74203.
For Py3k in the revision 74204.
Closing this issue.
--
status: open - closed
___
Python tracker
Senthil orsent...@gmail.com added the comment:
Well, the fix for this same as that for Issue1424152.
Closing this issue as it is already handled.
--
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
Gregory P. Smith g...@krypto.org added the comment:
*Rereads latest patch*
I'm happy with this being backported as a bugfix to 3.1 and 2.6 so long
as the set_tunnel method is hidden. Call it _set_tunnel() in the
backport (and don't document its existence).
--
Senthil orsent...@gmail.com added the comment:
Fixed for 3.2 in py3k branch revision 74198. Asked python-dev for
objections on back porting changes 2.6.
Shall back port changes to py2.6 and py3.1
--
___
Python tracker rep...@bugs.python.org
Changes by Senthil orsent...@gmail.com:
--
resolution: - fixed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
Personally I would like to see that happen, but I think you should
probably poll python-dev since it can be argued either way as to whether
it is a bug fix or a new feature. FWIW, from the feeder bug reports it
looks to me like the users
James Broadhead jamesbroadh...@gmail.com added the comment:
+1 to the above.
(imo, this is a bugfix, not a new feature)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
___
Hans Lellelid h...@velum.net added the comment:
Personally, I also think that this is a bugfix, though I realize that in
order to fix the bug an API addition had to be made. So +1 from me on
rolling into 2.6 (though my opinion is simply that of someone who's
eager to see it fixed).
--
R. David Murray rdmur...@bitdance.com added the comment:
Note that this bug is also of concern to Ubuntu. See for example
https://bugs.launchpad.net/python/+bug/94130.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Senthil orsent...@gmail.com added the comment:
This is actually fixed in Py2.7 and I am trying to get it Py3.2 before
marking this as fixed.
Based on the comments, should this be backported to Py2.6?
--
___
Python tracker rep...@bugs.python.org
Peter Funk p...@users.sourceforge.net added the comment:
I stumbled about this here because of testing the Ubuntuone project:
http://en.oreilly.com/oscon2009/public/schedule/detail/8843
The client for the ubuntuone cloud computing suffers from being
unable to connect through a HTTPS proxy
Senthil orsent...@gmail.com added the comment:
I noticed this one yesterday. There is a similar issue Issue1424152, the
fix for which is available in Py2.7. Would you try to that patch?
--
versions: +Python 3.1, Python 3.2
___
Python tracker
Changes by Senthil orsent...@gmail.com:
--
assignee: - orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1448934
___
___
Python-bugs-list
Jarek jarek@gmail.com added the comment:
+1 for mercurial inoperability from behind proxy
--
nosy: +jarek.jpa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
Benjamin Peterson benja...@python.org added the comment:
Senthil, are you still working on the 3.x version of the patch?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
Tarek Ziadé ziade.ta...@gmail.com added the comment:
merged in 3.2 in r73645
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6286
___
Senthil orsent...@gmail.com added the comment:
Senthil, are you still working on the 3.x version of the patch?
Sorry for the delay. I got to work on it. Shall start and shall try
to get it in soon.
--
___
Python tracker rep...@bugs.python.org
Craig McQueen ces-...@mcqueen.id.au added the comment:
@gregory.p.smith:
This change is not suitable for back porting as it arguably adds a new
feature.
Speaking as a Mercurial user who can't use Mercurial at work through a
proxy firewall... I beg you to consider that fixing
Senthil orsent...@gmail.com added the comment:
Craig McQueen comment:
Speaking as a Mercurial user who can't use Mercurial at work through a
proxy firewall... I beg you to consider that fixing this is not really
We might have to take this up at python-dev. I shall do that
to get other
Hi all,
Does anybody use libgmail with proxy? I met error here.
Below is code snip:
libgmail.PROXY_URL = G_PROXY # the proxy url
self.ga = libgmail.GmailAccount(account,pwd)
self.ga.login()
Error information:
ga.login
()
File C:\Python25\Lib\site-packages
On Jun 22, 3:33 pm, 马不停蹄的猪 sunrui...@gmail.com wrote:
Hi all,
Does anybody use libgmail with proxy? I met error here.
Below is code snip:
libgmail.PROXY_URL = G_PROXY # the proxy url
self.ga = libgmail.GmailAccount(account,pwd)
self.ga.login()
Error information
On 22 июн, 10:33, 马不停蹄的猪 sunrui...@gmail.com wrote:
Hi all,
Does anybody use libgmail with proxy? I met error here.
I wouldn't recommend to use this module at all. It was writtent at the
time when no IMAP was available at Google. Now there are POP and IMAP,
so it's better to use them.
--
http
Andrew Trick andrew.tr...@gmail.com added the comment:
With this patch, I continued to get the following error
SSL23_GET_SERVER_HELLO
Until my coworker finally found a fix posted by Philippe Biondi:
+++ b/mercurial/keepalive.py
@@ -237,6 +237,8 @@
else:
# no
Senthil orsent...@gmail.com added the comment:
AndrewTrick: I am assuming your last comment is more relevant to
mercurial's use of the set_tunnel, the facility provided by the patch,
that is solving the issue for you. You had earlier pointed out
mercurial's dependency upon this issue too.
The
Andrew Trick andrew.tr...@gmail.com added the comment:
I should have pointed out that my secondary problem was a mercurial
dependency on the urllib patch. I just wanted Mercurial users to get a
complete fix. I figure they will be looking for a fix in the python bug
report, and need to be told
New submission from Tarek Ziadé ziade.ta...@gmail.com:
upload is base on httplib and doesn't use the http_proxy envrionment
variable. So it's impossible to upload a file behind a firewall.
Let's change the command so it uses a proxy if set
--
assignee: tarek
components: Distutils
Changes by Tarek Ziadé ziade.ta...@gmail.com:
--
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6286
___
___
Tarek Ziadé ziade.ta...@gmail.com added the comment:
done in r73436. Will merge it into 3.2 after 3.1 is tagged.
I am leaving this issue open until the merge in 3.2 is done.
--
___
Python tracker rep...@bugs.python.org
Hello,
I am having trouble with an application running on a linux server. It keeps
reverting to old proxy settings and messing up the web application. I have
checked everything I can think of, and since the application is written in
Python and uses urllib to call a web service (which is where
Senthil orsent...@gmail.com added the comment:
Fixed for Py2x in the revision 72880. Tested it on a Squid Proxy setup
and found it working fine. Should this be backported?
For Py3k, the Request class has undergone changes since the patch was
developed, I am modifying the patch for Py3k
Gregory P. Smith g...@krypto.org added the comment:
I added a versionadded: 2.7 note to the docs in r72890.
This change is not suitable for back porting as it arguably adds a new
feature.
--
___
Python tracker rep...@bugs.python.org
James Broadhead jamesbroadh...@gmail.com added the comment:
Has there been any progress on this since January?
It is causing/affecting:
http://www.selenic.com/mercurial/bts/issue967
--
nosy: +jamesbroadhead
___
Python tracker
Hans L h...@velum.net added the comment:
These patches (well, the 2.6 patch) works for me. If there's something
I can do to help get this accepted/applied, I'd be happy to do it.
Obviously, I had no part in these patches, but I can take a stab at
updating documentation or something if that is
Facundo Batista facu...@taniquetil.com.ar added the comment:
Hans, please take a look to my comment 79573 in this same bug. If you
could do that, it'd be amazing...
Thank you!
--
___
Python tracker rep...@bugs.python.org
Hans Lellelid h...@velum.net added the comment:
Sure -- I will tackle that this week; I hope I can come up with
something satisfactory. As I have not provided doc patches before for
Python I may need to spin up a bit on that (and of course on the exact
meaning of the set_tunnel method in this
Senthil orsent...@gmail.com added the comment:
Sorry for the delay. I know that patches work and I had tested them as
well. I shall push those patches to trunk/p3k within this week.
--
___
Python tracker rep...@bugs.python.org
Senthil orsent...@gmail.com added the comment:
Facundo Batista facu...@taniquetil.com.ar added the comment:
Hans, please take a look to my comment 79573 in this same bug. If you
could do that, it'd be amazing...
Oops, had missed that one.. Shall update the patch, Facundo.
--
Gregory P. Smith g...@krypto.org added the comment:
reassigning to the volunteer to get this in :)
--
assignee: facundobatista - orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
Changes by Alexander Solovyov pira...@piranha.org.ua:
--
nosy: +piranha
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
___
___
Changes by Hans L h...@velum.net:
--
nosy: +hozn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
___
___
Python-bugs-list mailing list
which requires an http
authentication.
To reach the ws, I must pass from a proxy http. So in the whole I need
go through two authentications before getting the ws working. I am
using SOAPpy and I'm getting quite crazy.
I am able to arrange this problem with simple http calls using
pass from a proxy http. So in the whole I need
go through two authentications before getting the ws working. I am
using SOAPpy and I'm getting quite crazy.
I am able to arrange this problem with simple http calls using urllib2
but for the ws i dont see any way out.
Does anyone knows
Hi everyone,
I am trying to call a webservice which requires an http
authentication.
To reach the ws, I must pass from a proxy http. So in the whole I need
go through two authentications before getting the ws working. I am
using SOAPpy and I'm getting quite crazy.
I am able to arrange
601 - 700 of 1031 matches
Mail list logo