python - GLib-GIO-Message : Using the 'memory' GSettings backend. 您的设置将不会被保存或与其他应用程序共享

标签 python linux opencv ubuntu

我正在 Ubuntu OS 上使用 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回答,但它不适合我

最佳答案

这为我解决了这个问题:

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

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

关于python - GLib-GIO-Message : Using the 'memory' GSettings backend. 您的设置将不会被保存或与其他应用程序共享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44934641/

相关文章:

python - __getattr__ 定义属性的文档

python - 如何使用python加密图像

linux - VSCode "Open Containing Folder"快捷方式在 Linux Mint 上损坏

python - 在 Django 中使用 cv.CaptureFromCAM

python - 如何计算每个帧中的边界框?

python - 允许 numpy 类型溢出

linux - MPSTAT 仅在应用程序执行期间显示 cpu 使用率平均值

linux - 我的 find 命令用法有什么问题?

matlab - OpenCV 中等效的 roipoly matlab 函数

Python Pygame 新手代码显示空白屏幕