ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

IOError: [Errno 13] Permission denied: 'params.yaml'

asked 2020-04-05 22:30:44 -0500

Dean gravatar image

updated 2020-04-06 02:49:00 -0500

gvdhoorn gravatar image

http://wiki.ros.org/ROS/Tutorials/Und...

$ rosparam dump params.yaml

Traceback (most recent call last):
  File "/opt/ros/melodic/bin/rosparam", line 35, in <module>
    rosparam.yamlmain()
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosparam/__init__.py", line 620, in yamlmain
    _rosparam_cmd_get_dump(command, argv)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosparam/__init__.py", line 444, in _rosparam_cmd_get_dump
    dump_params(arg, script_resolve_name(NAME, ns), verbose=options.verbose)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosparam/__init__.py", line 299, in dump_params
    f = open(filename, 'w')
IOError: [Errno 13] Permission denied: 'params.yaml'

Where is params.yaml? Need I create it before this command?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-04-05 23:49:51 -0500

Dean gravatar image

updated 2020-04-06 02:49:42 -0500

gvdhoorn gravatar image

Replace <distro> with the name of your ROS distribution (e.g. indigo, jade, kinetic, lunar...):

$ sudo apt-get install ros-<distro>-rqt ros-<distro>-rqt-common-plugins ros-<distro>-turtlesim

NOTE: you may have already built rqt and turtlesim for one of the previous tutorials. If you are not sure, installing them again will not hurt anything.

edit flag offensive delete link more

Comments

Is this an answer? Or an update?

It's unclear to me how installing rqt solves a permission problem.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-06 02:49:29 -0500 )edit
0

answered 2023-06-07 00:55:31 -0500

When the current user lacks the necessary permissions to access a file or directory. To resolve this issue, you can check the file or directory permissions, ensuring that the user has appropriate read, write, or execute permissions. Verify ownership, making sure the user is the owner or belongs to a group with sufficient permissions. If accessing system files, run the program or script with administrative privileges. Check if the file is currently in use by another process and close any applications that might have it locked. Ensure that the parent directory allows write access if you are creating or modifying a file within it. Antivirus or security software can also restrict access, so temporarily disable or configure it accordingly.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-04-05 22:30:44 -0500

Seen: 333 times

Last updated: Apr 06 '20