habitat-api 快速启动运行不正常 – qt.qpa.plugin: 在””中找不到Qt平台插件”cocoa”

我目前正在尝试运行habitat-api中的示例,但当我运行示例时,它无法正常运行。

我修复了一个代码中未更新的问题("pointgoal"应为"pointgoal_with_gps_compass"

这是我在运行python testActions.py后终端给我的信息:

2020-03-13 17:29:37,024 Initializing dataset PointNav-v12020-03-13 17:29:37,217 initializing sim Sim-v0WARNING: Logging before InitGoogleLogging() is written to STDERRI0313 17:29:37.234107 303062464 SceneGraph.h:92] Created DrawableGroup: Renderer: Intel(R) Iris(TM) Plus Graphics 640 by Intel Inc.OpenGL version: 4.1 INTEL-14.4.23Using optional features:    GL_ARB_ES2_compatibility    GL_ARB_separate_shader_objects    GL_ARB_texture_filter_anisotropic    GL_ARB_texture_storage    GL_ARB_vertex_array_object    GL_EXT_debug_label    GL_EXT_debug_markerUsing driver workarounds:    no-layout-qualifiers-on-old-glslI0313 17:29:37.395491 303062464 ResourceManager.cpp:1072] Importing Basis files as BC3W0313 17:29:38.644949 303062464 Simulator.cpp:140] :--- The active scene does not contain semantic annotations. ---I0313 17:29:38.651930 10376 simulator.py:142] Loaded navmesh data/scene_datasets/habitat-test-scenes/skokloster-castle.navmesh2020-03-13 17:29:38,737 Initializing task Nav-v0Environment creation successfulDestination, distance: 5.883259, theta(radians): -0.00qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in ""This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.zsh: abort      python testActions.py

我认为代码中存在一些问题。 我已经尝试在GitHub仓库中提问(问题 #330但仍在等待查看错误是否存在。 我被告知错误出在我安装的OpenCV上。


回答:

我通过使用旧版本的opencv-python解决了这个问题

pip uninstall opencv-pythonpip install opencv-python==4.1.0.25

Related Posts

L1-L2正则化的不同系数

我想对网络的权重同时应用L1和L2正则化。然而,我找不…

使用scikit-learn的无监督方法将列表分类成不同组别,有没有办法?

我有一系列实例,每个实例都有一份列表,代表它所遵循的不…

f1_score metric in lightgbm

我想使用自定义指标f1_score来训练一个lgb模型…

通过相关系数矩阵进行特征选择

我在测试不同的算法时,如逻辑回归、高斯朴素贝叶斯、随机…

可以将机器学习库用于流式输入和输出吗?

已关闭。此问题需要更加聚焦。目前不接受回答。 想要改进…

在TensorFlow中,queue.dequeue_up_to()方法的用途是什么?

我对这个方法感到非常困惑,特别是当我发现这个令人费解的…

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注