Hi, 

I am trying to debug my waf build scripts, works fine with Python 2.7, but with 
3.2 I get an error right at the beginning:

pydev debugger: starting
Traceback (most recent call last):
  File 
"/Applications/eclipse/plugins/org.python.pydev.debug_1.6.5.2011020317/pysrc/pydevd.py",
 line 1133, in <module>
    debugger.run(setup['file'], None, None)
  File 
"/Applications/eclipse/plugins/org.python.pydev.debug_1.6.5.2011020317/pysrc/pydevd.py",
 line 918, in run
    execfile(file, globals, locals) #execute the script
  File 
"/Applications/eclipse/plugins/org.python.pydev.debug_1.6.5.2011020317/pysrc/_pydev_execfile.py",
 line 26, in execfile
    stream = open(file, encoding=encoding)
TypeError: open() argument 4 must be str or None, not bytes

The waf script is encoded as ISO-8859-1 (rename the file linked to above to 
waf.py and the error should reproduce). Any suggestions? 

Thanks, 
Hans-Martin



MacOS 10.6

Eclipse IDE for C/C++ Developers
Version: Helios Service Release 2
Build id: 20110301-1815

PyDev 1.6.5.2011020317
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to