John J Lee | 19 Mar 2009 20:27
Picon
Favicon

Re: reraise_unmasked_exceptions()

On Thu, 19 Mar 2009, James Cameron wrote:
[...]
> ValueError: invalid literal for int() with base 10: '"1"'
[...]

This was fixed in mechanize 0.1.10 (I don't know which version, if any, 
of twill that corresponds to).

John
James Cameron | 8 Apr 2009 01:16
Picon
Favicon

Re: reraise_unmasked_exceptions()

On Thu, Mar 19, 2009 at 07:27:07PM +0000, John J Lee wrote:
> On Thu, 19 Mar 2009, James Cameron wrote:
> [...]
> > ValueError: invalid literal for int() with base 10: '"1"'
> [...]
> 
> This was fixed in mechanize 0.1.10 (I don't know which version, if any, 
> of twill that corresponds to).

Bypassing twill-sh and using mechanize directly allowed me to create an
exception handler that would ignore this condition.  I'm happy.
Mechanize is still 0.1.7b on Debian.  Also, Debian's Twill uses Debian's
mechanize, not the mechanize inside Twill.  I think.

--

-- 
James Cameron
http://ftp.hp.com.au/sigs/jc/
C. Titus Brown | 8 Apr 2009 03:43
Picon
Favicon

Re: reraise_unmasked_exceptions()

On Wed, Apr 08, 2009 at 09:16:33AM +1000, James Cameron wrote:
-> On Thu, Mar 19, 2009 at 07:27:07PM +0000, John J Lee wrote:
-> > On Thu, 19 Mar 2009, James Cameron wrote:
-> > [...]
-> > > ValueError: invalid literal for int() with base 10: '"1"'
-> > [...]
-> > 
-> > This was fixed in mechanize 0.1.10 (I don't know which version, if any, 
-> > of twill that corresponds to).
-> 
-> Bypassing twill-sh and using mechanize directly allowed me to create an
-> exception handler that would ignore this condition.  I'm happy.
-> Mechanize is still 0.1.7b on Debian.  Also, Debian's Twill uses Debian's
-> mechanize, not the mechanize inside Twill.  I think.

mechanize will be updated in twill 0.9.2, coming Any Day Now.

cheers,
--titus
--

-- 
C. Titus Brown, ctb@...
James Cameron | 19 Mar 2009 05:31
Picon
Favicon

reraise_unmasked_exceptions()

Something of mine has stopped working, it looks like the cookies sent by
the peer have changed or something ... any ideas?

$ twill-sh --version
twill version 0.9.
$ dpkg --list python-mechanize
... 0.1.7b-3 ...
$ twill-sh

 -= Welcome to twill! =-

current page:  *empty page* 
>> go https://my.bigpond.com/mybigpond/myaccount/myusage/daily/default.do
/usr/lib/python2.5/site-packages/mechanize/_clientcookie.py:1388: UserWarning: mechanize bug!
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/mechanize/_clientcookie.py", line 1386, in make_cookies
    parse_ns_headers(ns_hdrs), request)
  File "/usr/lib/python2.5/site-packages/mechanize/_clientcookie.py", line 1337, in _cookies_from_attrs_set
    cookie = self._cookie_from_cookie_tuple(tup, request)
  File "/usr/lib/python2.5/site-packages/mechanize/_clientcookie.py", line 1256, in _cookie_from_cookie_tuple
    if version is not None: version = int(version)
ValueError: invalid literal for int() with base 10: '"1"'

  reraise_unmasked_exceptions()
==> at https://signon.bigpond.com:443/login?goto=https%3A%2F%2Fmy.bigpond.com%3A443%2Fmybigpond%2Fmyaccount%2Fmyusage%2Fdaily%2Fdefault.do
current page: https://signon.bigpond.com:443/login?goto=https%3A%2F%2Fmy.bigpond.com%3A443%2Fmybigpond%2Fmyaccount%2Fmyusage%2Fdaily%2Fdefault.do
>> 

--

-- 
James Cameron
(Continue reading)


Gmane