Bug 35456 - Configure fails with Python 3 on MacOSX
Summary: Configure fails with Python 3 on MacOSX
Status: RESOLVED NOTABUG
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Mac OS X (All)
: medium normal
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-19 23:23 UTC by Gregory Ewing
Modified: 2011-06-17 05:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Gregory Ewing 2011-03-19 23:23:24 UTC
Environment: Python 3.1.2, MacOSX 10.6.4

% python3.1 waf --download configure
  ./set_options()
  ./init()
  ./configure()
Checking for program gcc or cc           : gcc -m32 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for gcc                         : ok  
Checking for program python              : /Library/Frameworks/Python.framework/Versions/3.1/Resources/Python.app/Contents/MacOS/Python 
Checking for Python version >= 3.1.0     : ok 3.1.2 
Traceback (most recent call last):
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Utils.py", line 446, in recurse
    txt=readf(file_path,m='rU')
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Utils.py", line 409, in readf
    f=open(fname,m)
IOError: [Errno 2] No such file or directory: '/Local/Build/Python/pycairo-1.8.10/wscript_configure'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Configure.py", line 105, in check_tool
    module=Utils.load_tool(tool,tooldir)
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Utils.py", line 404, in load_tool
    return __import__(tool)
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Tools/osx.py", line 68
    apptask.chmod=0755
                     ^
SyntaxError: invalid token

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "waf", line 158, in <module>
    Scripting.prepare(t, cwd, VERSION, wafdir)
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Scripting.py", line 105, in prepare
    prepare_impl(t,cwd,ver,wafdir)
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Scripting.py", line 98, in prepare_impl
    main()
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Scripting.py", line 133, in main
    fun(ctx)
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Scripting.py", line 172, in configure
    conf.sub_config([''])
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Configure.py", line 155, in sub_config
    self.recurse(k,name='configure')
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Utils.py", line 461, in recurse
    f(self)
  File "/Local/Build/Python/pycairo-1.8.10/wscript", line 35, in configure
    ctx.check_python_headers()
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Tools/python.py", line 122, in check_python_headers
    conf.check_tool('osx')
  File "/Local/Build/Python/pycairo-1.8.10/.waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752/wafadmin/Configure.py", line 141, in check_tool
    Logs.error('Could not load the tool %r or download a suitable replacement from the repository (sys.path %r)\n%s'%(tool,sys.path,e))
UnboundLocalError: local variable 'e' referenced before assignment
Comment 1 Steve Chaplin 2011-05-01 03:27:05 UTC
In this bug report you say waf configure does not work for you, and yet in bug 35458 you mention that pycairo has installed for you. So can I assume you have fixed your own problem and this bug report can be closed?
Comment 2 Steve Chaplin 2011-06-17 05:55:45 UTC
In the absence of any further information I'll assume the answer is yes.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.