Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ERROR: Rosdep experienced an error: list index out of range in debian stretch (installation from source) #589

Closed
justdoGIT opened this issue Mar 1, 2018 · 8 comments

Comments

@justdoGIT
Copy link

justdoGIT commented Mar 1, 2018

rosdep version: 0.12.1

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 140, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 388, in _rosdep_main
    return _package_args_handler(command, parser, options, args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 484, in _package_args_handler
    return command_handlers[command](lookup, packages, options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 706, in command_install
    installer.install(uninstalled, **install_options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 525, in install
    verbose=verbose, quiet=quiet)
  File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 588, in install_resolved
    if isinstance(sub_command[0], list):  # list of alternatives
IndexError: list index out of range

while installing ros on my beagleboneblack(armhf) with debian stretch, from source this issue was found

@wjwwood
Copy link
Contributor

wjwwood commented Mar 1, 2018

Can you please tell us what rosdep command you ran exactly and also rerun it with --simulate on and provide the complete console output, not just the error. Thanks.

@justdoGIT
Copy link
Author

justdoGIT commented Mar 4, 2018

rosdep install --from-paths src --ignore-src --rosdistro lunar -y was the command
this is the output after putting --simulate:

#[apt] Installation commands:

ERROR: Rosdep experienced an error: list index out of range
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep

rosdep version: 0.12.1

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 140, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 388, in _rosdep_main
    return _package_args_handler(command, parser, options, args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 484, in _package_args_handler
    return command_handlers[command](lookup, packages, options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 706, in command_install
    installer.install(uninstalled, **install_options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 525, in install
    verbose=verbose, quiet=quiet)
  File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 564, in install_resolved
    if isinstance(sub_command[0], list):
IndexError: list index out of range

@flixr
Copy link
Contributor

flixr commented Mar 12, 2018

I'm getting the same error on xenial/kinetic:

$ rosdep install --from-paths . --ignore-src -r -y
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  ros-kinetic-xacro
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 40.9 kB of archives.
After this operation, 155 kB of additional disk space will be used.
Get:1 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-xacro amd64 1.11.2-0xenial-20171117-013356-0800 [40.9 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 40.9 kB in 0s (0 B/s)
Selecting previously unselected package ros-kinetic-xacro.
...
(Reading database ... 87945 files and directories currently installed.)
Preparing to unpack .../ros-kinetic-xacro_1.11.2-0xenial-20171117-013356-0800_amd64.deb ...
Unpacking ros-kinetic-xacro (1.11.2-0xenial-20171117-013356-0800) ...
Setting up ros-kinetic-xacro (1.11.2-0xenial-20171117-013356-0800) ...

ERROR: Rosdep experienced an error: list index out of range
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep

rosdep version: 0.12.1

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 140, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 388, in _rosdep_main
    return _package_args_handler(command, parser, options, args)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 484, in _package_args_handler
    return command_handlers[command](lookup, packages, options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/main.py", line 706, in command_install
    installer.install(uninstalled, **install_options)
  File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 525, in install
    verbose=verbose, quiet=quiet)
  File "/usr/lib/python2.7/dist-packages/rosdep2/installers.py", line 588, in install_resolved
    if isinstance(sub_command[0], list):  # list of alternatives
IndexError: list index out of range

executing command [apt-get install -y ros-kinetic-xacro]

@flixr
Copy link
Contributor

flixr commented Mar 12, 2018

Seems this regression was introduced in #521

flixr added a commit to flixr/rosdep that referenced this issue Mar 12, 2018
flixr added a commit to flixr/rosdep that referenced this issue Mar 12, 2018
should fix ros-infrastructure#589

- check if sub_command is not empty
- make sure result exists
- fix enumeration of sub_command
@mathias-luedtke
Copy link
Contributor

@flixr: I cannot reproduce this error with a test package that depends on xacro.
Can you provide me an example workspace, please?

@ArcEye
Copy link

ArcEye commented Mar 21, 2018

Exactly the same here on a fresh install of Stretch

Command:
$rosdep install --from-paths src --ignore-src --rosdistro kinetic -y -r --os=debian:stretch

Error Output:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rrbot_control: No definition of [effort_controllers] for OS version [stretch]
simulators: No definition of [stage_ros] for OS version [stretch]
rrbot_gazebo: No definition of [gazebo_ros_control] for OS version [stretch]
Continuing to install resolvable dependencies...

ERROR: Rosdep experienced an error: list index out of range
Please go to the rosdep page [1] and file a bug report with the stack trace below.
[1] : http://www.ros.org/wiki/rosdep

rosdep version: 0.12.1

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 140, in rosdep_main
    exit_code = _rosdep_main(args)
  File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 388, in _rosdep_main
    return _package_args_handler(command, parser, options, args)
  File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 484, in _package_args_handler
    return command_handlers[command](lookup, packages, options)
  File "/usr/local/lib/python2.7/dist-packages/rosdep2/main.py", line 706, in command_install
    installer.install(uninstalled, **install_options)
  File "/usr/local/lib/python2.7/dist-packages/rosdep2/installers.py", line 525, in install
    verbose=verbose, quiet=quiet)
  File "/usr/local/lib/python2.7/dist-packages/rosdep2/installers.py", line 588, in install_resolved
    if isinstance(sub_command[0], list):  # list of alternatives
IndexError: list index out of range

@flixr
Copy link
Contributor

flixr commented Mar 21, 2018

@ArcEye should be fixed when #585 is merged.

@wjwwood
Copy link
Contributor

wjwwood commented Mar 21, 2018

Closed by #585 and 0.12.2 is being released now with that fix.

@wjwwood wjwwood closed this as completed Mar 21, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants