waf is incompatible with Python 3

Bug #674809 reported by TIT
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Postler
Confirmed
Low
Unassigned

Bug Description

I can't run Postler.

[tit@office postler]$ ./waf
/home/tit/labs/mail/postler/wscript: error: Traceback (most recent call last):
  File "/home/tit/labs/mail/postler/.waf3-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Utils.py", line 197, in load_module
    exec(compile(code,file_path,'exec'),module.__dict__)
  File "/home/tit/labs/mail/postler/wscript", line 19
    print 'Incompatible Waf, use 1.5'
                                    ^
SyntaxError: invalid syntax

[tit@office postler]$ uname -a
Linux office 2.6.35-ARCH #1 SMP PREEMPT Sat Oct 30 21:22:26 CEST 2010 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux

[tit@office postler]$ python -V
Python 3.1.2

Revision history for this message
Allen Lowe (lallenlowe) wrote : Re: [Bug 674809] [NEW] waf crashes on install

You are using python 3, you need to be using python 2

On Nov 13, 2010 12:45 AM, "TIT" <email address hidden> wrote:

Public bug reported:

I can't run Postler.

[tit@office postler]$ ./waf
/home/tit/labs/mail/postler/wscript: error: Traceback (most recent call
last):
 File
"/home/tit/labs/mail/postler/.waf3-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Utils.py",
line 197, in load_module
   exec(compile(code,file_path,'exec'),module.__dict__)
 File "/home/tit/labs/mail/postler/wscript", line 19
   print 'Incompatible Waf, use 1.5'
                                   ^
SyntaxError: invalid syntax

[tit@office postler]$ uname -a
Linux office 2.6.35-ARCH #1 SMP PREEMPT Sat Oct 30 21:22:26 CEST 2010 x86_64
AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux

[tit@office postler]$ python -V
Python 3.1.2

** Affects: postler
    Importance: Undecided
        Status: New

--
waf crashes on install
https://bugs.launchpad.net/bugs/674809
You received this bug notification because you are a member of Postler
Dev Team, which is the registrant for Postler.

Status in Postler Desktop Mail Client: New

Bug description:
I can't run Postler.

[tit@office postler]$ ./waf
/home/tit/labs/mail/postler/wscript: error: Traceback (most recent call
last):
 File
"/home/tit/labs/mail/postler/.waf3-1.5.16-e6d03192b5ddfa5ef2c8d65308e48e42/wafadmin/Utils.py",
line 197, in load_module
   exec(compile(code,file_path,'exec'),module.__dict__)
 File "/home/tit/labs/mail/postler/wscript", line 19
   print 'Incompatible Waf, use 1.5'
                                   ^
SyntaxError: invalid syntax

[tit@office postler]$ uname -a
Linux office 2.6.35-ARCH #1 SMP PREEMPT Sat Oct 30 21:22:26 CEST 2010 x86_64
AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux

[tit@office postler]$ python -V
Python 3.1.2

Allen Lowe (lallenlowe)
Changed in postler:
status: New → Invalid
Revision history for this message
Cris Dywan (kalikiana) wrote :

It should be possible to address this, hence I'm re-opening the report. However I don't consider it urgent since the workaround is trivial.

Changed in postler:
status: Invalid → Confirmed
summary: - waf crashes on install
+ waf is incompatible with Python 3
Changed in postler:
importance: Undecided → Low
Revision history for this message
Bernd Prünster (jesusmccloud) wrote :

just issue

postler$ sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|g" ./waf

as a workaround in a *bash* shell, zsh does not work

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.