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

problem with ros2cli #5

Closed
wjwwood opened this issue Jun 17, 2017 · 4 comments · Fixed by #8
Closed

problem with ros2cli #5

wjwwood opened this issue Jun 17, 2017 · 4 comments · Fixed by #8
Assignees
Labels
bug Something isn't working

Comments

@wjwwood
Copy link
Member

wjwwood commented Jun 17, 2017

I just setup the latest ros2.repos on my Windows desktop at home and when I run an unrelated ros2cli command I get an error from the create_permission verb in this repository:

C:\Windows\System32>ros2 topic list
Traceback (most recent call last):
  File "C:\dev\ros2\install\bin\ros2-script.py", line 11, in <module>
    load_entry_point('ros2cli==0.0.0', 'console_scripts', 'ros2')()
  File "C:\dev\ros2\install\Lib\site-packages\ros2cli\cli.py", line 44, in main
    hide_extensions=['extension_points', 'extensions'])
  File "C:\dev\ros2\install\Lib\site-packages\ros2cli\command\__init__.py", line 111, in add_subparsers
    command_parser, '{cli_name} {name}'.format_map(locals()))
  File "C:\dev\ros2\install\Lib\site-packages\sros2\command\security.py", line 26, in add_arguments
    add_subparsers(parser, cli_name, '_verb', verb_extensions)
  File "C:\dev\ros2\install\Lib\site-packages\ros2cli\command\__init__.py", line 111, in add_subparsers
    command_parser, '{cli_name} {name}'.format_map(locals()))
  File "C:\dev\ros2\install\Lib\site-packages\sros2\verb\create_permission.py", line 40, in add_arguments
    allowednames=('yaml'), directories=False)
TypeError: FilesCompleter() got an unexpected keyword argument 'allowednames'
@wjwwood wjwwood added the bug Something isn't working label Jun 17, 2017
@codebot
Copy link
Member

codebot commented Jun 17, 2017

I got that too, but it went away when I installed python3-argcomplete via apt (or something similarly named, can't remember exactly).

@mikaelarguedas
Copy link
Member

hmmm, I haven't tested this on Windows. Very likely related to #4 (comment). Does installing argcomplete through pip solve it for you as well ? (lyou'll likely need at least version 0.8.5)

@wjwwood
Copy link
Member Author

wjwwood commented Jun 17, 2017

I think argcomplete is supposed to be optional, so even if it would fix it, I think this needs to still work or fail more gracefully. I'll try it asap.

@dirk-thomas didn't you end up making argcomplete optional?

@wjwwood
Copy link
Member Author

wjwwood commented Jun 17, 2017

That does fix the issue, but I still think it should fixed so it is optional.

@dirk-thomas dirk-thomas self-assigned this Jun 17, 2017
@dirk-thomas dirk-thomas added in progress Actively being worked on (Kanban column) in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Jun 17, 2017
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Jun 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants