[MacPorts] #35332: py-keyring will not install

MacPorts noreply at macports.org
Fri Aug 24 06:03:54 PDT 2012


#35332: py-keyring will not install
---------------------------------------+------------------------------------
 Reporter:  pavel.hlavnicka@…          |       Owner:  and.damore@…           
     Type:  defect                     |      Status:  assigned               
 Priority:  Normal                     |   Milestone:                         
Component:  ports                      |     Version:  2.1.2                  
 Keywords:                             |        Port:  py-keyring             
---------------------------------------+------------------------------------

Comment(by pavel.hlavnicka@…):

 SOLVED

 ok... I did following, I have manually edited the latest patch

 {{{
 --- setup.py.orig       2011-08-03 22:08:15.000000000 +0200
 +++ setup.py    2012-08-03 11:17:49.000000000 +0200
 @@ -21,7 +21,9 @@
  if sys.platform == 'darwin' and os.path.exists('/usr/bin/xcodebuild'):
      # XCode 4.0 dropped support for ppc architecture, which is hardcoded
 in
      # distutils.sysconfig
 -    version = runcmd(['/usr/bin/xcodebuild', '-version'],
 {})[0].splitlines()[0]
 +    commandResult, err = runcmd(['/usr/bin/xcodebuild', '-version'], {})
 +    print(err)
 +    version = commandResult[0].splitlines()[0]
      # Also parse only first digit, because 3.2.1 can't be parsed nicely
      if (version.startswith('Xcode') and
          StrictVersion(version.split()[1]) >= StrictVersion('4.0')):
 }}}

 ... to see the error returned by runcmd - and I got following:

 {{{
 DEBUG: Executing command line:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 keyring/py27-keyring/work/keyring-0.6.2" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 setup.py --no-user-cfg build

 You have not agreed to the Xcode license agreements, please run
 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild
 -license' (for system-wide acceptance) from within a Terminal window to
 review and agree to the Xcode license agreements.

 Traceback (most recent call last):
   File "setup.py", line 26, in <module>
     version = commandResult[0].splitlines()[0]
 }}}

 after running the stated command as root {{{sudo xcodebuild -license}}}
 and agreed with the license all works just fine.

 This must somehow relate to my upgrade to Mac OS X 10.8 and XCode 4.4.1 -
 I just wonder how it's possible it seems it was only me having this issue.
 Many thanks for all your support and I hope this will help someone.
 Perhaps the setup.py might be more descriptive on the error.

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


More information about the macports-tickets mailing list