Yep, that seems to be it. Explains the syntax error as well. The two changes necessary are to specify python2 as the python version for bar-pip
, and to change the stage
filter accordingly. Here’s the YAML that works for me:
name: robot-base
version: '0.1'
summary: base snap
description: |
This snap includes all of the ROS modules and other code to run the base of the
robot.
grade: devel
confinement: devmode
parts:
bar-pip:
plugin: python
python-version: python2
python-packages: [ds4drv]
stage-packages: [
bluez,
]
bar-base:
plugin: catkin
rosdistro: kinetic
rosinstall-files: [ros_navigation.rosinstall]
stage-packages: [
fluid,
python-boto3,
python-requests,
python-rosdep,
python-ipdb,
chrony,
ros-kinetic-pcl-ros,
ros-kinetic-desktop-full,
]
catkin-packages: [
amcl,
]
stage:
- -usr/bin/2to3-2.7
- -usr/bin/pydoc2.7
- -usr/lib/python2.7/UserString.py
- -usr/lib/python2.7/base64.py
- -usr/lib/python2.7/cProfile.py
- -usr/lib/python2.7/cgi.py
- -usr/lib/python2.7/encodings/rot_13.py
- -usr/lib/python2.7/ensurepip/__init__.py
- -usr/lib/python2.7/keyword.py
- -usr/lib/python2.7/lib2to3/pgen2/token.py
- -usr/lib/python2.7/mimify.py
- -usr/lib/python2.7/pdb.py
- -usr/lib/python2.7/platform.py
- -usr/lib/python2.7/profile.py
- -usr/lib/python2.7/pydoc.py
- -usr/lib/python2.7/quopri.py
- -usr/lib/python2.7/sitecustomize.py
- -usr/lib/python2.7/smtpd.py
- -usr/lib/python2.7/smtplib.py
- -usr/lib/python2.7/symbol.py
- -usr/lib/python2.7/tabnanny.py
- -usr/lib/python2.7/test/pystone.py
- -usr/lib/python2.7/test/regrtest.py
- -usr/lib/python2.7/timeit.py
- -usr/lib/python2.7/trace.py
- -usr/lib/python2.7/uu.py
- -usr/lib/python2.7/webbrowser.py
- -usr/share/python/dh_python2
- -usr/share/python/pyversions.py
apps:
bash:
command: bash
ds4drv:
command: ds4drv