Ask Your Question
0

Error when creating snaps for ros subscriber/publisher tutorial

asked 2017-04-28 11:26:37 -0500

prarobo gravatar image

I am very new to snaps. I am following this tutorial to get started with ros and snaps.

https://insights.ubuntu.com/2017/03/2...

I was successful in creating the ros-base snap that contains roscore and the basic ros packages. When I try creating a snap for ros-app, I get an error

Unable to find package path: "/home/user/snap-apps/ros-app/parts/ros-app/src/src"

The problem I guess is that, it is looking the sub-directory src/src instread of just src/. Do I need to edit the snapcraft.yaml file to change some paths?

edit retag flag offensive close merge delete

Comments

Which version of Snapcraft are you using?

kyrofa gravatar image kyrofa  ( 2017-04-28 11:35:42 -0500 )edit

Snapcraft version: 2.29

prarobo gravatar image prarobo  ( 2017-05-01 09:29:02 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-05-01 11:27:30 -0500

kyrofa gravatar image

updated 2017-05-01 11:28:34 -0500

It works for me, so it's possible you accidentally diverged from the tutorial somewhere along the line (e.g. the Snapcraft project isn't in the root of the workspace, etc.). That tutorial is actually a demo in the Snapcraft source tree, I suggest you start with that.

edit flag offensive delete link more

Comments

I will try again and let you know.

prarobo gravatar image prarobo  ( 2017-05-04 08:23:04 -0500 )edit
0

answered 2018-01-18 02:19:53 -0500

mbj gravatar image

I was experiencing the same problem. Is your "src" folder a symbolic link? In that case, check it's an absolute one (e.g.: /home/user/catkin_ws/src) instead of a relative one (e.g: ../catkin_ws/src) otherwise it won't work.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-04-28 11:26:37 -0500

Seen: 130 times

Last updated: Jan 18 '18