Opened 15 years ago

Closed 14 years ago

#23219 closed defect (fixed)

py26-mechanize is currently unusable

Reported by: yacoob@… Owned by: krischik@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: py26-mechanize

Description (last modified by skymoo (Adam Mercer))

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.

Change History (6)

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to krischik@…
Priority: HighNormal

comment:2 Changed 15 years ago by skymoo (Adam Mercer)

Description: modified (diff)

comment:3 Changed 15 years ago by kngspook@…

Cc: kngspook@… added

Cc Me!

comment:4 Changed 15 years ago by kngspook@…

Cc: kngspook@… removed

Cc Me!

comment:5 Changed 14 years ago by michelle.lynn.gill@…

I can confirm this error still exists using Python 2.6.6 with mechanize 0.1.9. Any update on this? Thanks.

comment:6 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

This was presumably fixed by r71797.

Note: See TracTickets for help on using tickets.