【问题标题】:GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applicationsGLib-GIO-Message:使用“内存”GSettings 后端。您的设置不会被保存或与其他应用程序共享
【发布时间】:2017-12-09 14:51:17
【问题描述】:

我正在 Ubuntu 操作系统上使用 opencv 开发 python 项目

import numpy as np
import cv2

img = cv2.imread("LillyBellea.png", 1)
img = cv2.imwrite("LillyBellea.jpeg", img)
cv2.imshow("original", img)
cv2.waitKey(0)
cv2.destroyAllWindows()

当我运行这个程序时出现错误

GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

有人可以帮忙吗, 我已经关注this 的回答,但它对我不起作用

【问题讨论】:

    标签: python linux opencv ubuntu


    【解决方案1】:
    sudo apt install dconf-gsettings-backend:i386
    

    为我修好了。 (注意:在我的例子中,我在 x64 系统上运行 x86 应用程序。)

    【讨论】:

      【解决方案2】:

      这为我解决了这个问题:

      export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
      

      请参阅:https://github.com/conda-forge/glib-feedstock/issues/19 了解更多信息。

      【讨论】:

      • 我想补充一点,要真正解决这个问题,你需要把这个添加到你本地的 bashrc 中,否则每次打开终端,导出都没有了。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-06-14
      • 2017-03-19
      • 1970-01-01
      • 2013-11-02
      • 2012-03-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多