我玩snapcraft一點點,一切運行良好,但現在我得到下面的錯誤 - 我不知道是什麼原因造成的錯誤:snapcraft使用Python插件:返回非零退出狀態2
Successfully installed appdirs packaging pip-8.1.2 pyparsing-2.1.8 setuptools-26.1.1 six-1.10.0 wheel-0.29.0 /home/bla/bla/parts/myapp/install/usr/bin/python2 -m pip download --disable-pip-version-check --dest /home/bla/bla/parts/myapp/packages . setuptools /tmp/tmps75wvcfe: 10: export: distribution/linux/Snapping/myapp/stage/usr/share/perl5/: bad variable name Command '['/bin/sh', '/tmp/tmpseb6idqm', '/home/bla/bla/parts/myapp/install/usr/bin/python2', '-m', 'pip', 'download', '--disable-pip-version-check', '--dest', '/home/bla/bla/parts/myapp/packages', '.', 'sqlalchemy']' returned non-zero exit status 2
我的snapcraft.yaml文件:
name: myapp
version: "1.0"
summary: myapp snap test
confinement: devmode
grade: devel
apps:
myapp:
command: myapp
parts:
myapp:
plugin: python
python-version: python2
python-packages:
- setuptools
source: ./src/foo
source-type: git
stage-packages:
- python-pyqt5
- python-sqlalchemy
- python-setuptools
你有什麼想法可能會導致錯誤?
謝謝!這解決了我的問題! – joko1206100