ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Even with this guide, i still can not figure it out.
I have a workspace called happyspace. The path to the dist-packages is
/home/flo/happyspace/devel/lib/python3/dist-packages
so I added this to my workspace config:
{
"folders": [
{
"path": "."
}
],
"settings": {
"editor.fontSize": 15,
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
},
"python.formatting.provider": "none",
"editor.defaultFormatter": null,
"python.autoComplete.extraPaths": [
"/home/flo/happyspace/devel/lib/python3/dist-packages",
"/opt/ros/noetic/lib/python3/dist-packages"
],
"python.analysis.extraPaths": [
"/home/flo/happyspace/devel/lib/python3/dist-packages",
"/opt/ros/noetic/lib/python3/dist-packages"
]
}
}
however, upon imports of one package into another, like in
/home/flo/happyspace/src/fmp_tools/src/fmp_tools/execute_poses_record.py
the line
from fmp_tracepen_node.tracepen_node import TracepenNode
gets the error
Import "fmp_tracepen_node.tracepen_node" could not be resolvedPylancereportMissingImports (module) fmp_tracepen_node
while the file to be imported sits in
/home/flo/happyspace/src/fmp_tracepen_node/src/fmp_tracepen_node/tracepen_node.py
what am I doing wong?