[MacPorts] #23219: py26-mechanize is currently unusable
#23219: py26-mechanize is currently unusable ------------------------------+--------------------------------------------- Reporter: yacoob@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: py26-mechanize ------------------------------+--------------------------------------------- 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> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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 ------------------------------+--------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => krischik@… * priority: High => Normal -- Ticket URL: <http://trac.macports.org/ticket/23219#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#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
#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 ------------------------------+--------------------------------------------- Comment(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. -- Ticket URL: <http://trac.macports.org/ticket/23219#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23219: py26-mechanize is currently unusable -------------------------------+-------------------------------------------- Reporter: yacoob@… | Owner: krischik@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Resolution: fixed | Keywords: Port: py26-mechanize | -------------------------------+-------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => fixed Comment: This was presumably fixed by r71797. -- Ticket URL: <https://trac.macports.org/ticket/23219#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts