GLib-GIO-Message:使用'内存'GSettings后端.您的设置不会保存或与其他应用程序共享

Bhu*_*yal 18 python linux ubuntu opencv

我正在使用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()
Run Code Online (Sandbox Code Playgroud)

当我运行这个程序然后我收到错误

GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
Run Code Online (Sandbox Code Playgroud)

任何人都可以在这里帮忙,我已经按照这个答案,但它不适合我

moo*_*nts 47

这解决了我的问题:

export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/
Run Code Online (Sandbox Code Playgroud)

有关详细信息,请参阅:https://github.com/conda-forge/glib-feedstock/issues/19.