Re: SCons and Python 3

Tim Jenness <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.devel
Message-ID <[email protected]>
Limited network access but does your file have a BOM?  If the first character in the file is something like that you can't use ascii to read it.

Sent from my iPhone

> On Jun 5, 2017, at 17:41, Russel Winder <[email protected]> wrote:
> 
> I updated to default/tip and tried using Python 2 – worked fine – and
> then Python 3:
> 
> 
> |> python3 /home/russel/Repositories/Mercurial/Forks/SCons/src/script/scons.py
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: *** [source/main.d] UnicodeDecodeError : 'ascii' codec can't decode byte 0x80 in position 0: ordinal not in range(128)
> scons: building terminated because of errors.
> 
> 
> As far as I am aware, source/main.d is a UTF-8 encoded file containing
> only ASCII characters. I am not sure how to debug this, but I can take
> a punt with some direction.
> 
> -- 
> Russel.
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip: sip:[email protected]
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: [email protected]
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
> _______________________________________________
> Scons-dev mailing list
> [email protected]
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
_______________________________________________
Scons-dev mailing list
[email protected]
https://pairlist2.pair.net/mailman/listinfo/scons-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.