Re: [Tutor] AttributeError: 'str' object has no attribute, 'geturl'

2005-10-11 Thread Joseph Quigley
> You are welcome. This time I would like to help you but the code is > incomplete > (import error for Image) and I have never used urllib2 so I don't really know > what to > do. > Again, try to debug it with pdb. Place "import pdb; pdb.set_trace()" where > you want > the break point and see

Re: [Tutor] AttributeError: 'str' object has no attribute 'geturl'

2005-10-10 Thread Javier Ruere
Joseph Quigley wrote: > Ok, new version (sorry to bug you). > This time I've edited the program so that you can only download todays > (it won't work for any other date). Now I can connect to the server but > it sticks on "Downloading image!" > > Thanks for your prevoius help. > Joe You are w

Re: [Tutor] AttributeError: 'str' object has no attribute 'geturl'

2005-10-09 Thread Joseph Quigley
Ok, new version (sorry to bug you). This time I've edited the program so that you can only download todays (it won't work for any other date). Now I can connect to the server but it sticks on "Downloading image!" Thanks for your prevoius help. Joe #! /usr/bin/env python ###

Re: [Tutor] AttributeError: 'str' object has no attribute 'geturl'

2005-10-09 Thread Joseph Quigley
Javier wrote: > Class Data has a class attribute, 'f', defined as an empty string. Check if > Data.f is initialized before calling getImg. > Also, why initialize with an empty str? Put a None in there or don't define > the attribute at all. > A tip: in line 126 there is a print Data.f. This

Re: [Tutor] AttributeError: 'str' object has no attribute 'geturl'

2005-10-08 Thread Javier Ruere
Joseph Quigley wrote: > Well, I'm back to coding more on my comic downloader and viewer and I > keep getting this error: > > Traceback (most recent call last): > File "F:\Gacor\getgarf.py", line 244, in ? > getImg(Data.todayStrip) > File "F:\Gacor\getgarf.py", line 127, in getImg > Da

[Tutor] AttributeError: 'str' object has no attribute 'geturl'

2005-10-08 Thread Joseph Quigley
Well, I'm back to coding more on my comic downloader and viewer and I keep getting this error: Traceback (most recent call last):   File "F:\Gacor\getgarf.py", line 244, in ?     getImg(Data.todayStrip)   File "F:\Gacor\getgarf.py", line 127, in getImg     Data.f.geturl() AttributeError: 'str' obj