no such file to load -- robots

no such file to load -- robots
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone/core.rb:2:in `require'
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone/core.rb:2
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone.rb:2:in `require'
/usr/local/lib/ruby/gems/1.8/gems/anemone-0.6.1/lib/anemone.rb:2
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:68:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `each'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:66:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `each'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/runtime.rb:55:in `require'
/usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler.rb:120:in `require'

在ubuntu中运行anemone的例子时,出现这个错误,我现在发现有两种情况,一种是没有安装robots,解决:

sudo gem install robots

另一种情况是明明已经安装了robots,gem list也有,但还是出现no such file to load -- robots,这种情况是普通用户没有权限访问robots,以root权限运行就ok。
... logging to /home/tanye/.ros/log/1f577888-a8d4-11f0-8df8-8d03aeeec7c2/roslaunch-tanye-ubuntu-7452.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. Traceback (most recent call last): File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/__init__.py", line 347, in main p.start() File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/parent.py", line 305, in start self._start_infrastructure() File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/parent.py", line 254, in _start_infrastructure self._load_config() File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/parent.py", line 156, in _load_config self.config = roslaunch.config.load_config_default(self.roslaunch_files, self.port, File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/config.py", line 461, in load_config_default loader.load(f, config, argv=args, verbose=verbose) File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 763, in load self._load_launch(launch, ros_config, is_core=core, filename=filename, argv=argv, verbose=verbose) File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 735, in _load_launch self._recurse_load(ros_config, launch.childNodes, self.root_context, None, is_core, verbose) File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 681, in _recurse_load self._param_tag(tag, context, ros_config, verbose=verbose) File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 96, in call return f(*args, **kwds) File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/xmlloader.py", line 271, in _param_tag value = self.param_value(verbose, name, ptype, *vals) File "/opt/ros/noetic/lib/python3/dist-packages/roslaunch/loader.py", line 478, in param_value with open(textfile, 'r') as f: FileNotFoundError: [Errno 2] No such file or d
10-15
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值