| Summary: | Configure fails with Python 3 on MacOSX | ||
|---|---|---|---|
| Product: | pycairo | Reporter: | Gregory Ewing <greg.ewing> |
| Component: | general | Assignee: | Steve Chaplin <d74n5pohf9> |
| Status: | RESOLVED NOTABUG | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | unspecified | ||
| Hardware: | x86 (IA32) | ||
| OS: | Mac OS X (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
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? 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.
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