带有Python插件的Snapcraft:subprocess.CalledProcessError:命令'['/ bin / sh']'返回了非零的退出状态1

时间:2018-08-15 09:44:41

标签: python subprocess snapcraft

使用 snapcraft --debug build 构建快照时,出现以下错误:

  

回溯(最近一次通话最后一次):文件“ /usr/lib/python3/dist-packages/snapcraft/internal/common.py”,行   67,在_run返回运行程序(['/ bin / sh'],stdin = run_file,** kwargs)文件中   check_output中的“ /usr/lib/python3.6/subprocess.py”,行336   ** kwargs).stdout文件“ /usr/lib/python3.6/subprocess.py”,行418,在运行output = stdout,stderr = stderr)子进程中。CalledProcessError:   命令'['/ bin / sh']'返回非零退出状态1。

snapcraft.yaml的相关部分:

...

grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
icon: images/fbuddy.png

apps:
  fbuddy:
    command: bin/facebookbuddy
    #desktop usr/share/applications/fbuddy.desktop
    #plugs [network, x11]

parts:
  fbuddy:
    source: .
    plugin: python 
    python-version: python2
    requirements: requirements.txt
    build-packages: [libc6, zlib1g, python-setuptools, python-pip, tk8.6, libtk8.6, tcl8.6, libtcl8.6]
    stage-packages: [python-gobject-2, python-notify]

在此处找到相同(未回答)的问题: snapcraft with python plugin: returned non-zero exit status 1

任何帮助将不胜感激。

0 个答案:

没有答案