Skip to content

Syntax issues when i run ros_colour_node.py #4

@akshayacharya97

Description

@akshayacharya97

Should I run ros_color_node.py in python2 or python3? I have built detectron in python3 So its syntax is in python3 but im running ros_color_node in python2.

Traceback (most recent call last):
  File "ros_colour_node.py", line 26, in <module>
    from detectron2.engine import DefaultPredictor
  File "/home/akshay/catkin_ws/src/ROS-label-node/detectron2/engine/__init__.py", line 3, in <module>
    from .launch import *
  File "/home/akshay/catkin_ws/src/ROS-label-node/detectron2/engine/launch.py", line 43
    dist_url = f"tcp://127.0.0.1:{port}"
                                       ^
SyntaxError: invalid syntax

I am not able to convert ros_color_node to a ros package because theres no xml file and cmake file. This is not a part of the readme. What am i supposed to do?

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