[MacPorts] #39270: Python27 staging into destroot fails: AttributeError: 'module' object has no attribute 'GetQDGlobalsScreenBits'
#39270: Python27 staging into destroot fails: AttributeError: 'module' object has no attribute 'GetQDGlobalsScreenBits' -------------------------+-------------------------------- Reporter: d.schreij@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: python27 -------------------------+-------------------------------- Python27 (2.7.5) builds fine, but when staged into destroot, the process stops with the message: {{{ :info:destroot Traceback (most recent call last): :info:destroot File "./scripts/BuildApplet.py", line 16, in <module> :info:destroot import EasyDialogs :info:destroot File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.5/Lib /plat-mac/EasyDialogs.py", line 247, in <module> :info:destroot screenbounds = Qd.GetQDGlobalsScreenBits().bounds :info:destroot AttributeError: 'module' object has no attribute 'GetQDGlobalsScreenBits' :info:destroot make[1]: *** [install_BuildApplet] Error 1 }}} For further insight I have attached the main.log as well I am aware that I'm building with the i386 arch, but that is strict a requirement of the current project I'm working on -- Ticket URL: <https://trac.macports.org/ticket/39270> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: Python27 staging into destroot fails: AttributeError: 'module' object has no attribute 'GetQDGlobalsScreenBits' --------------------------+------------------- Reporter: d.schreij@… | Owner: jmr@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: python27 | --------------------------+------------------- Changes (by ryandesign@…): * cc: jmr@…, d.schreij@… (removed) * owner: macports-tickets@… => jmr@… -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: Python27 staging into destroot fails: AttributeError: 'module' object has no attribute 'GetQDGlobalsScreenBits' --------------------------+------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: python27 | --------------------------+------------------- Changes (by jmr@…): * owner: jmr@… => jwa@… -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: Python27 staging into destroot fails: AttributeError: 'module' object has no attribute 'GetQDGlobalsScreenBits' --------------------------+------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: python27 | --------------------------+------------------- Comment (by nad@…): http://bugs.python.org/issue18098 -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Changes (by larryv@…): * keywords: => mountainlion -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Comment (by macports.org@…): When installing a fresh copy of MacPorts on mountain lion, python27 can't be installed because of this bug. Since a lot of packages directly depend on python27, all those packages can't be installed neither (703 in total, without py27-* still 174). Counting also rdependent packages, many more are affected. It seems that the bug has been fixed upstream (see http://bugs.python.org/issue18098) but the fix will only be available with python 2.7.6. I think because so many packages are affected for mountain lion users, getting a work around for the bug would be appreciated very much by many. Maybe the fix can be backported to 2.7.5? Thank you, best regards, Adrian. -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Changes (by larryv@…): * cc: macports.org@… (added) Comment: Replying to [comment:6 macports.org@…]:
When installing a fresh copy of MacPorts on mountain lion, python27 can't be installed because of this bug.
I installed python27 from source on 10.8 just the other day and did not encounter this problem.
Since a lot of packages directly depend on python27, all those packages can't be installed neither (703 in total, without py27-* still 174). Counting also rdependent packages, many more are affected.
It seems that the bug has been fixed upstream (see http://bugs.python.org/issue18098) but the fix will only be available with python 2.7.6. I think because so many packages are affected for mountain lion users, getting a work around for the bug would be appreciated very much by many.
Given that this is literally the only ticket that has been filed, I have to conclude that MacPorts users are, by and large, not encountering this. I can only speculate as to why.
Maybe the fix can be backported to 2.7.5?
I suppose it wouldn’t hurt to apply the fix ourselves until 2.7.6 is out. Can you try the following? {{{ % sudo port clean python27 % curl https://trac.macports.org/raw-attachment/ticket/39270/skip-Build- Applet.patch | patch -d $(port dir python27) -p5 % sudo port install python27 }}} -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Comment (by macports.org@…): Replying to [comment:7 larryv@…]:
I installed python27 from source on 10.8 just the other day and did not encounter this problem.
I changed build_arch to i386; that might be the cause. Anyway sorry for claiming it is not working, when it does. The fix helps indeed. I could install python27 with your instructions, thank you very much. -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Comment (by larryv@…): I’ve changed the patch to revbump python27, because this change would remove `Build Applet.app` on 10.8, even for 64-bit builds. I’ll let jwa decide whether it’s worth committing, since the problem is uncommon, and 2.7.6 will fix it anyway. -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Comment (by d.schreij@…): The command: curl https://trac.macports.org/raw-attachment/ticket/39270/skip-Build- Applet.patch | patch -d $(port dir python27) -p5 give me the error: patch: **** Can't rename file Portfile to Portfile.orig : Permission denied even if I issue the command with sudo -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Comment (by larryv@…): Make sure you are running `curl | sudo patch` and not `sudo curl | patch`. -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#39270: python27: building "Build Applet.app" fails on 10.8 due to removed QuickDraw headers --------------------------+-------------------------- Reporter: d.schreij@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: mountainlion Port: python27 | --------------------------+-------------------------- Changes (by larryv@…): * status: new => closed * resolution: => fixed Comment: Should be fixed with 2.7.6 update in r113224. -- Ticket URL: <https://trac.macports.org/ticket/39270#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts