gio: file:///tmp/....pdf: 没有应用程序被注册为处理这个文件
gio: file:///tmp/....pdf: No application is registered as handling this file
我在 Fedora 30 上有这个代码 Python3.7 :
try :
subprocess.call(["gio", "open", path_to_pdf])
在其他 linux 系统上,包括 Fedora 29,使用 Pyinstaller 生成的独立应用程序 运行 没问题。
但是当我 运行 在 Fedora 30 上生成代码时,我遇到了这个错误:
gio: file:///tmp/tmpxxxxx.pdf: No application is registered as handling this file
注意:
我在 Ubuntu/Mint/Debian 下遇到了一些问题,但可以使用该命令解决它(作用于系统 Linux):
aa-complain /usr/bin/evince
这是否与 Fedora 30 上的阻塞相同?
感谢您的关注
问题已解决:
这个问题是由于 Matplotlib 3.0.1 和 Pyinstaller 3.4 之间存在某种不兼容造成的。
升级到 Matplotlib 3.0.3 解决了问题...
我在 Fedora 30 上有这个代码 Python3.7 :
try :
subprocess.call(["gio", "open", path_to_pdf])
在其他 linux 系统上,包括 Fedora 29,使用 Pyinstaller 生成的独立应用程序 运行 没问题。
但是当我 运行 在 Fedora 30 上生成代码时,我遇到了这个错误:
gio: file:///tmp/tmpxxxxx.pdf: No application is registered as handling this file
注意: 我在 Ubuntu/Mint/Debian 下遇到了一些问题,但可以使用该命令解决它(作用于系统 Linux):
aa-complain /usr/bin/evince
这是否与 Fedora 30 上的阻塞相同?
感谢您的关注
问题已解决:
这个问题是由于 Matplotlib 3.0.1 和 Pyinstaller 3.4 之间存在某种不兼容造成的。 升级到 Matplotlib 3.0.3 解决了问题...