Comment 3 for bug 1518150

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

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)