Ask Your Question
0

problem with roscreate-pkg

asked 2012-03-01 15:03:33 -0500

keira gravatar image

hi!

I have a problem in a terminal when I trying create a new package within the folder nxt. The message I get is:

Traceback (most recent call last): File "/opt/ros/electric/ros/bin/roscreate-pkg", line 35, in <module> roscreate.roscreatepkg.roscreatepkg_main() File "/opt/ros/electric/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 126, in roscreatepkg_main create_package(package, author_name(), depends, uses_roscpp=uses_roscpp, uses_rospy=uses_rospy) File "/opt/ros/electric/ros/tools/roscreate/src/roscreate/roscreatepkg.py", line 63, in create_package os.makedirs(p) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/opt/ros/electric/stacks/nxt/learning_nxt'

how I can solve?

edit retag flag offensive close merge delete

Comments

thanks,

I was just following the tutorial nxt, and as there are working on nxt folder, because I believed they were working with that of ros, but I see that I have to create one with the same name in my workspace, I'm right?

keira gravatar image keira  ( 2012-03-03 18:16:44 -0500 )edit

That should work. For clarity I might suggest that you not use things with the same name.

tfoote gravatar image tfoote  ( 2012-03-04 17:43:16 -0500 )edit

3 Answers

Sort by » oldest newest most voted
2

answered 2012-03-01 19:58:11 -0500

tfoote gravatar image

It is not recommended to work in /opt. Those packages are installed on your system and shared with all users, and the directories are read only except as root. If you follow the first few ROS Tutorials they will guide you through creating a package in an area where you can write.

edit flag offensive delete link more
0

answered 2012-04-02 14:20:46 -0500

I have the same problem. I'm not working in /opt and I followed the tutorial, but the same problem occurs. So, Any idea?

edit flag offensive delete link more
0

answered 2012-04-02 14:21:50 -0500

I have the same problem. I'm not working in /opt and I followed the tutorial, but the same problem occurs. So, Any idea?

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

Stats

Asked: 2012-03-01 15:03:33 -0500

Seen: 655 times

Last updated: Apr 02 '12