On Thu, Mar 24, 2011 at 4:20 AM, Hans-Martin v. Gaudecker
<hmgaudec...@gmail.com> wrote:
> 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?

Seems this was changed in Python 3.2 (Python 3.1 accepted it), so, now
please edit the failing line in _pydev_execfile.py to add a
encoding.decode('ascii'), which should make it work there already
(just fixed that in PyDev and it'll be available in the next nightly
build).

Cheers,

Fabio

------------------------------------------------------------------------------
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