Sorry, this works on Ubuntu Desktop 15.04. However, the error happens when I compile it on an ARM device like raspberry 2 device. I will send you the document about my setup on the Raspberry PI device (I remember I shared it with you already). I compiled it in a container inside the docker.
I just did it again, and it is reproducible.
Thanks & best regards,
XiaoGuo
ubuntu@a5ceb8ea0825:~/work/piglow2$ ls
icon.png snapcraft.yaml src
ubuntu@a5ceb8ea0825:~/work/piglow2$ ../snapcraft/bin/snapcraft
Traceback (most recent call last):
File "../snapcraft/bin/snapcraft", line 33, in <module>
snapcraft.main.main()
File "/home/ubuntu/work/snapcraft/snapcraft/main.py", line 149, in main
args.func(args)
File "/home/ubuntu/work/snapcraft/snapcraft/cmds.py", line 103, in assemble
snap(args)
File "/home/ubuntu/work/snapcraft/snapcraft/cmds.py", line 85, in snap
cmd(args)
File "/home/ubuntu/work/snapcraft/snapcraft/cmds.py", line 346, in cmd
config = _load_config()
File "/home/ubuntu/work/snapcraft/snapcraft/cmds.py", line 412, in _load_config
_config = snapcraft.yaml.Config()
File "/home/ubuntu/work/snapcraft/snapcraft/yaml.py", line 97, in __init__
self.data = _snapcraft_yaml_load()
File "/home/ubuntu/work/snapcraft/snapcraft/yaml.py", line 312, in _snapcraft_yaml_load
return yaml.load(fp)
File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 70, in load
loader = Loader(stream)
File "/usr/lib/python3/dist-packages/yaml/loader.py", line 34, in __init__
Reader.__init__(self, stream)
File "/usr/lib/python3/dist-packages/yaml/reader.py", line 85, in __init__
self.determine_encoding()
File "/usr/lib/python3/dist-packages/yaml/reader.py", line 124, in determine_encoding
self.update_raw()
File "/usr/lib/python3/dist-packages/yaml/reader.py", line 178, in update_raw
data = self.stream.read(size)
File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 91: ordinal not in range(128)
Sorry, this works on Ubuntu Desktop 15.04. However, the error happens when I compile it on an ARM device like raspberry 2 device. I will send you the document about my setup on the Raspberry PI device (I remember I shared it with you already). I compiled it in a container inside the docker.
I just did it again, and it is reproducible.
Thanks & best regards,
XiaoGuo
ubuntu@ a5ceb8ea0825: ~/work/ piglow2$ ls a5ceb8ea0825: ~/work/ piglow2$ ../snapcraft/ bin/snapcraft bin/snapcraft" , line 33, in <module> main.main( ) ubuntu/ work/snapcraft/ snapcraft/ main.py" , line 149, in main ubuntu/ work/snapcraft/ snapcraft/ cmds.py" , line 103, in assemble ubuntu/ work/snapcraft/ snapcraft/ cmds.py" , line 85, in snap ubuntu/ work/snapcraft/ snapcraft/ cmds.py" , line 346, in cmd ubuntu/ work/snapcraft/ snapcraft/ cmds.py" , line 412, in _load_config yaml.Config( ) ubuntu/ work/snapcraft/ snapcraft/ yaml.py" , line 97, in __init__ yaml_load( ) ubuntu/ work/snapcraft/ snapcraft/ yaml.py" , line 312, in _snapcraft_ yaml_load python3/ dist-packages/ yaml/__ init__. py", line 70, in load python3/ dist-packages/ yaml/loader. py", line 34, in __init__ __init_ _(self, stream) python3/ dist-packages/ yaml/reader. py", line 85, in __init__ determine_ encoding( ) python3/ dist-packages/ yaml/reader. py", line 124, in determine_encoding update_ raw() python3/ dist-packages/ yaml/reader. py", line 178, in update_raw read(size) python3. 4/encodings/ ascii.py" , line 26, in decode ascii_decode( input, self.errors)[0]
icon.png snapcraft.yaml src
ubuntu@
Traceback (most recent call last):
File "../snapcraft/
snapcraft.
File "/home/
args.func(args)
File "/home/
snap(args)
File "/home/
cmd(args)
File "/home/
config = _load_config()
File "/home/
_config = snapcraft.
File "/home/
self.data = _snapcraft_
File "/home/
return yaml.load(fp)
File "/usr/lib/
loader = Loader(stream)
File "/usr/lib/
Reader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
data = self.stream.
File "/usr/lib/
return codecs.
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 91: ordinal not in range(128)