Opened 15 years ago
Last modified 14 years ago
#23219 closed defect
py26-mechanize is currently unusable — at Version 2
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 (2)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Owner: | changed from macports-tickets@… to krischik@… |
---|---|
Priority: | High → Normal |
comment:2 Changed 15 years ago by skymoo (Adam Mercer)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.