[Scons-dev] SCons and Python 3

Tim Jenness tjenness at lsst.org
Mon Jun 5 11:46:16 EDT 2017


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 <russel at winder.org.uk> 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:russel.winder at ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev


More information about the Scons-dev mailing list