Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

pkg_resource.sort_pkglist raises TypeError: list indices must be integers, not str #22152

Closed
vieira opened this issue Mar 30, 2015 · 2 comments
Closed
Labels
Bug broken, incorrect, or confusing behavior Execution-Module P2 Priority 2 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around stale
Milestone

Comments

@vieira
Copy link

vieira commented Mar 30, 2015

When attempting to run an example from the documentation:

salt '*' pkg_resource.sort_pkglist '["3.45", "2.13"]'

a TypeError: "list indices must be integers, not str" is raised. The offending line as reported by Python is line 216 of pkg_resource.py.

Tested in salt-minion 2014.7.1, 2014.7.2 (Helium) and 2015.2 HEAD.

@jfindlay jfindlay added Bug broken, incorrect, or confusing behavior severity-low 4th level, cosemtic problems, work around exists labels Mar 30, 2015
@jfindlay jfindlay added this to the Approved milestone Mar 30, 2015
@jfindlay
Copy link
Contributor

@vieira, thanks for the report.

@ssgward ssgward added Execution-Module severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P2 Priority 2 and removed severity-low 4th level, cosemtic problems, work around exists labels Apr 16, 2015
@jfindlay jfindlay added the Platform Relates to OS, containers, platform-based utilities like FS, system based apps label May 26, 2015
@stale
Copy link

stale bot commented Nov 10, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

@stale stale bot added the stale label Nov 10, 2017
@stale stale bot closed this as completed Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Execution-Module P2 Priority 2 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around stale
Projects
None yet
Development

No branches or pull requests

3 participants