[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2014-04-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: I agree. Having tell on a file descriptor of a URL request is not going to be of help. You can easily write to a local file and use all the local file features, if it is things like .tell is desired. -- resolution: -> not a bug stage: needs patch ->

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2014-04-17 Thread Christian Theune
Christian Theune added the comment: Not being an export on tar at all, but I tried getting anything working without tell() and seek() but couldn't. The code reads as if its supposed to support some tar formats that do not require seeking, but that would be rather hard to predict on a file-by-f

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2014-04-17 Thread Christian Theune
Christian Theune added the comment: I don't think this will be solved. File-like objects (in this case IO wrappers for the socket) may have different capabilities and tarfile is just expecting too much. My patch for #15002 relieved the situation somewhat by providing tell() but the IO stream

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: If you want to quickly solve this, do like this: import urllib import tarfile tarfile.open(urllib.urlretrieve('http://plugins.supybot-fr.tk/GoodFrench.tar')[0], mode='r:') # Works The problem is tarfile is expecting a "file-object" with a tell method for s

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-21 Thread ProgVal
ProgVal added the comment: This code : import urllib2 print urllib2.urlopen('http://plugins.supybot-fr.tk/GoodFrench.tar').read(500) Prints : data/75500017517511466030066011677 5ustar progvalprogval If the problem comes from networking libraries, I really don't have the

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-21 Thread ProgVal
ProgVal added the comment: Same result on all tested versions (2.5 -> 2.7) : -- import urllib2 import tarfile tarfile.open(fileobj=open('/home/progval/Downloads/GoodFrench.tar'), mode='r:') # Works tarfile.open(fileobj=urllib2.urlopen(urllib2.Request('h

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: 2.5 and 2.6 don’t get bug fixes anymore, only security fixes. If you want to try to fix the code, there are some guidelines at http://www.python.org/dev/patches/ -- ___ Python tracker

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Do you want to work on a patch? We need to had a test to reproduce the error and then fix the code. -- nosy: +orsenthil stage: -> needs patch type: -> behavior versions: +Python 3.1, Python 3.2 -Python 2.6

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-20 Thread ProgVal
ProgVal added the comment: I also have the bug with Python 2.7.1rc1 (from Debian 'Experimental' repo) -- nosy: +ProgVal versions: +Python 2.6 -Python 3.1, Python 3.2 ___ Python tracker

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: 2.6 only gets security fixes. Can you reproduce the bug with current versions? -- nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
ProgVal added the comment: Here is the new traceback: Traceback (most recent call last): ... File "/home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py", line 123, in extractData file = tarfile.open(fileobj=file_, mode='r:') File "/usr/lib/python2.6/tarfile.py", line 1671,

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm sure the traceback changed then? mode='r:' uses a different code path. -- ___ Python tracker ___

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
ProgVal added the comment: Thanks for your answer. Sorry, no change... -- components: +Library (Lib) versions: +Python 2.6 ___ Python tracker ___ __

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: With a socket file you cannot rely on autodetection of the format. I suggest to try tarfile.open(fileobj=file_, mode='r:') or tarfile.open(fileobj=file_, mode='r:gz') -- nosy: +amaury.forgeotdarc ___ Py

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-08 Thread ProgVal
New submission from ProgVal : Hello, I had this traceback: Traceback (most recent call last): ... File "/home/progval/workspace/Supybot/Supybot-plugins/Packages/plugin.py", line 123, in extractData file = tarfile.open(fileobj=file_) File "/usr/lib/python2.6/tarfile.py", line 1651, in o