[SailfishDevel] Sailfish SDK: UnicodeEncodeError

Tomi Leppänen tomi.leppanen at wpower.fi
Tue Aug 12 09:55:59 UTC 2014


Hi

I got this error when trying to build a new project with ä in its path:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in 
position 13: ordinal not in range(128)

Compile output:
12:54:34: Running steps for project example_with_ä...
12:54:34: Starting: 
"/home/tomi/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-i486/qmake" 
/home/tomi/Ohjelmointi/example_with_ä/example_with_ä.pro -r -spec 
linux-g++-32 CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
Info Changing to working dir: 
/home/mersdk/share//Ohjelmointi/example_with_ä/rpm
Traceback (most recent call last):
   File "/usr/bin/specify", line 165, in <module>
     spec_fpath, newspec = specify.generate_rpm(yaml_fname, 
spec_fpath=out_fpath, download_new=not options.not_download, 
skip_scm=options.skip_scm)
   File "/usr/lib/python2.7/site-packages/spectacle/specify.py", line 
1767, in generate_rpm
     rpm_writer.parse()
   File "/usr/lib/python2.7/site-packages/spectacle/specify.py", line 
1285, in parse
     self._analyze_source()
   File "/usr/lib/python2.7/site-packages/spectacle/specify.py", line 
1028, in _analyze_source
     if os.path.exists(fpath) and os.path.getsize(fpath):
   File "/usr/lib/python2.7/genericpath.py", line 18, in exists
     os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in 
position 13: ordinal not in range(128)
Fatal: unable to convert yaml to spec
12:54:37: The process 
"/home/tomi/.config/SailfishAlpha4/mer-sdk-tools/MerSDK/SailfishOS-i486/qmake" 
exited with code 1.
Error while building/deploying project example_with_ä (kit: 
MerSDK-SailfishOS-i486)
When executing step 'qmake'
12:54:37: Elapsed time: 00:03.

Just that you know it.
Regards Tomi Leppänen


More information about the Devel mailing list