TypingCat / spatial-topology-teleoperation

Teleoperation for Mobile Robot using Semantics
GNU General Public License v3.0
4 stars 0 forks source link

Cannot resolve the import of local python file #4

Closed TypingCat closed 3 years ago

TypingCat commented 3 years ago

Vscode debugger and intellisense have different interpretations of import.

I'd like to separate the graph class into a new file. However, there was a problem in importing a new file from an existing file. The followings are error messages according to the import method.

TypingCat commented 3 years ago

https://github.com/finiel/wheel/issues/13#issuecomment-743711514 works for me. In my case,

from waffle_topology.graph import Graph

The imported module is specified to avoid confusion between graph.Node and rclpy.Node.