Python:无法导入Visualization模块

时间:2018-03-10 13:22:01

标签: python-2.7 visualization

我正在尝试在Python中使用Chameleon的算法实现。 https://github.com/giovannipcarvalho/PyCHAMELEON/blob/master/README.md

我还下载了需要的模块,但是一个名为“可视化”的模块给了我警告信息。

    import pandas as pd
from visualization import *
from chameleon import *

    # get a set of data points
df = pd.read_csv('/path to/two_squares.csv', delimiter=' ', header=None, names=['x', 'y'])

    # create knn graph
graph = knn_graph(df, 6, verbose=True)

    # partition graph
graph = part_graph(graph, 6, df)

    # merge clusters
while merge_best(graph, df, 1, verbose=True):
 plot_data(df)

结果:

WARNING:root:Failed to import geometry msgs in rigid_transformations.py.
WARNING:root:Failed to import ros dependencies in rigid_transforms.py
WARNING:root:autolab_core not installed as catkin package, RigidTransform ros methods will be unavailable
WARNING:root:autolab_perception is not installed as a catkin package - ROS msg conversions will not be available for image wrappers
WARNING:root:autolab_perception is not installed as a catkin package - ROS msg conversions will not be available for image wrappers

***Repl Closed***

我正在使用Python 2.7。

如果你知道导致问题的原因并最终解决了这个问题。

0 个答案:

没有答案