Skip to content

RosprologRestClient seems to needs shebang  #17

@JeremiasThun

Description

@JeremiasThun

The RosprologRestClient (https://github.com/knowrob/rosprolog/blob/master/scripts/RosprologRestClient.py) exists with weird errors on my machine:

import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/358.
from: can't read /var/mail/json_prolog_msgs.srv
/home/yyy/catkin_ws/src/rosprolog/scripts/rc.py: line 3: //import: No such file or directory
/home/yyy/catkin_ws/src/rosprolog/scripts/rc.py: line 5: class: command not found
/home/yyy/catkin_ws/src/rosprolog/scripts/rc.py: line 6: syntax error near unexpected token `('
/home/yyy/catkin_ws/src/rosprolog/scripts/rc.py: line 6: `	def __init__(self, name_space='rosprolog', timeout=None, wait_for_services=True):'

The reason seems to be, that it is missing the shebang at it's first line:
#!/usr/bin/env python

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions