[MacPorts] #23219: py26-mechanize is currently unusable

MacPorts noreply at macports.org
Sun Jan 10 20:18:18 PST 2010


#23219: py26-mechanize is currently unusable
------------------------------+---------------------------------------------
 Reporter:  yacoob@…          |       Owner:  krischik@…           
     Type:  defect            |      Status:  new                  
 Priority:  Normal            |   Milestone:                       
Component:  ports             |     Version:  1.8.2                
 Keywords:                    |        Port:  py26-mechanize       
------------------------------+---------------------------------------------
Description changed by ram@…:

Old description:

> Current version of mechanize is 0.1.9. This version doesn't play too good
> with python 2.6:
>
> >>> from mechanize import Browser
> >>> br = Browser()
> >>> br.open("http://www.example.com/")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mechanize/_mechanize.py", line 206, in open
>     return self._mech_open(url, data)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mechanize/_mechanize.py", line 232, in _mech_open
>     response = UserAgentBase.open(self, request, data)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mechanize/_opener.py", line 175, in open
>     req = meth(req)
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mechanize/_http.py", line 450, in http_request
>     self.rfp.read()
>   File
> "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
> /site-packages/mechanize/_http.py", line 395, in read
>     robotparser._debug("allow all")
> AttributeError: 'module' object has no attribute '_debug'
> >>>
>
> This is known error which was fixed in next version. I've tested 0.1.11
> and it works fine. Can you please bump the version in macports?
>
> Thanks,
>
> KT.

New description:

 Current version of mechanize is 0.1.9. This version doesn't play too good
 with python 2.6:

 {{{
 >>> from mechanize import Browser
 >>> br = Browser()
 >>> br.open("http://www.example.com/")
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mechanize/_mechanize.py", line 206, in open
     return self._mech_open(url, data)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mechanize/_mechanize.py", line 232, in _mech_open
     response = UserAgentBase.open(self, request, data)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mechanize/_opener.py", line 175, in open
     req = meth(req)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mechanize/_http.py", line 450, in http_request
     self.rfp.read()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/mechanize/_http.py", line 395, in read
     robotparser._debug("allow all")
 AttributeError: 'module' object has no attribute '_debug'
 >>>
 }}}

 This is known error which was fixed in next version. I've tested 0.1.11
 and it works fine. Can you please bump the version in macports?

 Thanks,

 KT.

--

-- 
Ticket URL: <http://trac.macports.org/ticket/23219#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list