您尚未登录。

#1 2020-12-12 10:36:07

Galinsoga
会员
注册时间: 2020-12-02
帖子: 1

关于Anaconda Spyder的字体问题

各位大佬大家好
我在安装anaconda之后,打开spyder时,spyder4的图标一闪而过(jupyter notebook倒是可以打开),接着终端就出现报错,好像是字体的问题? 向各位大佬求助一下,我把报错代码贴在下面 麻烦各位了!
$ spyder
Fontconfig error: Cannot load default config file
Qt WebEngine ICU data not found at /build/anaconda/pkg/anaconda/opt/anaconda/resources. Trying parent directory...
Qt WebEngine ICU data not found at /build/anaconda/pkg/anaconda/opt/anaconda. Trying application directory...
Qt WebEngine ICU data not found at /opt/anaconda/libexec. Trying fallback directory... The application MAY NOT work.
Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/michael/.QtWebEngineProcess'
Installed Qt WebEngine locales directory not found at location /build/anaconda/pkg/anaconda/opt/anaconda/translations/qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location /opt/anaconda/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
Path override failed for key ui::DIR_LOCALES and path '/home/michael/.QtWebEngineProcess'
[1212/102735.383015:ERROR:icu_util.cc(178)] Invalid file descriptor to ICU data received.
[1212/102735.383049:FATAL:content_main_runner.cc(691)] Check failed: base::i18n::InitializeICU().
#0 0x7f9d634120be <unknown>
#1 0x7f9d634246c2 <unknown>
#2 0x7f9d633fb068 <unknown>
#3 0x7f9d633f6519 <unknown>
#4 0x7f9d62db149a QtWebEngine::processMain()
#5 0x55d66523ed74 <unknown>
#6 0x7f9d6114e152 __libc_start_main
#7 0x55d66523edd4 <unknown>

[2866:2866:1212/102735.474249:FATAL:zygote_host_impl_linux.cc(182)] Check failed: ReceiveFixedMessage(fds[0], kZygoteBootMessage, sizeof(kZygoteBootMessage), &boot_pid).
#0 0x7f3360d1f0be <unknown>
#1 0x7f3360d316c2 <unknown>
#2 0x7f3360a9b987 <unknown>
#3 0x7f3360a9ab07 <unknown>
#4 0x7f3360a9ae96 <unknown>
#5 0x7f33608459a1 <unknown>
#6 0x7f3360849727 <unknown>
#7 0x7f33606db542 <unknown>
#8 0x7f33606db718 <unknown>
#9 0x7f33606d2681 <unknown>
#10 0x7f33606d2732 QtWebEngineCore::WebContentsAdapter::WebContentsAdapter()
#11 0x7f3368759376 <unknown>
#12 0x7f33687570c4 <unknown>
#13 0x7f3368757252 QWebEnginePage::QWebEnginePage()
#14 0x7f3368788689 sipQWebEnginePage::sipQWebEnginePage()
#15 0x7f3368788812 init_type_QWebEnginePage
#16 0x7f336937c874 <unknown>
#17 0x562bd7f9e7d4 _PyObject_MakeTpCall
#18 0x562bd8021e35 _PyEval_EvalFrameDefault
#19 0x562bd7feba92 _PyEval_EvalCodeWithName
#20 0x562bd7fed43f _PyObject_FastCallDict
#21 0x562bd7fed733 _PyObject_Call_Prepend
#22 0x562bd7fed8ca slot_tp_init
#23 0x562bd7f9e7d4 _PyObject_MakeTpCall
#24 0x562bd8021e35 _PyEval_EvalFrameDefault
#25 0x562bd7fed60d _PyObject_FastCallDict
#26 0x562bd7fed733 _PyObject_Call_Prepend
#27 0x562bd7fed8ca slot_tp_init
#28 0x562bd7f9e7d4 _PyObject_MakeTpCall
#29 0x562bd8021e35 _PyEval_EvalFrameDefault
#30 0x562bd7fed60d _PyObject_FastCallDict
#31 0x562bd7fed733 _PyObject_Call_Prepend
#32 0x562bd7fed8ca slot_tp_init
#33 0x562bd7f9e7d4 _PyObject_MakeTpCall
#34 0x562bd8021e35 _PyEval_EvalFrameDefault
#35 0x562bd7feba92 _PyEval_EvalCodeWithName
#36 0x562bd7fec943 _PyFunction_Vectorcall.localalias.355
#37 0x562bd7fed4cb _PyObject_FastCallDict
#38 0x562bd7fed733 _PyObject_Call_Prepend
#39 0x562bd7fed8ca slot_tp_init
#40 0x562bd7f9e7d4 _PyObject_MakeTpCall
#41 0x562bd8022b90 _PyEval_EvalFrameDefault
#42 0x562bd7febf9f _PyEval_EvalCodeWithName
#43 0x562bd7fecd20 method_vectorcall
#44 0x562bd7f6177f _PyEval_EvalFrameDefault.cold.2790
#45 0x562bd7fec86b _PyFunction_Vectorcall.localalias.355
#46 0x562bd7f5fb84 _PyEval_EvalFrameDefault.cold.2790
#47 0x562bd7fec86b _PyFunction_Vectorcall.localalias.355
#48 0x562bd7f6177f _PyEval_EvalFrameDefault.cold.2790
#49 0x562bd7fec86b _PyFunction_Vectorcall.localalias.355
#50 0x562bd7f5fb84 _PyEval_EvalFrameDefault.cold.2790
#51 0x562bd7feba92 _PyEval_EvalCodeWithName
#52 0x562bd7fec754 PyEval_EvalCodeEx
#53 0x562bd807aedc PyEval_EvalCode
#54 0x562bd807af84 run_eval_code_obj
#55 0x562bd80ad1f4 run_mod
#56 0x562bd7f756e1 PyRun_FileExFlags
#57 0x562bd7f75ac6 PyRun_SimpleFileExFlags
#58 0x562bd7f7698b Py_RunMain.cold.2916
#59 0x562bd80afd19 Py_BytesMain
#60 0x7f3379bdb152 __libc_start_main
#61 0x562bd803fe93 <unknown>

Aborted (core dumped)

离线

#2 2020-12-12 11:58:37

silkriver
会员
注册时间: 2020-07-24
帖子: 148

Re: 关于Anaconda Spyder的字体问题

我安装时也碰到了,安装限定版本的pyqtwebengine可以解决的
pip install "pyqtwebengine<5.13"

——这个anaconda是archlinuxcn里的,后来我感觉还存在其他问题,好像是打包者没有弄完善。现在改成去官网下miniconda再自己定制安装了(装aur里的miniconda应该也行,但还是让conda自己的包管理系统来负责更新比较好)

$ conda init --reverse
$ bash Miniconda3-latest-Linux-x86_64.sh
$ source ~/.bashrc
$ conda init
$ vim .condarc
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
ssl_verify: true
$ conda install spyder
$ spyder

最近编辑记录 silkriver (2020-12-12 12:05:59)

离线

#3 2020-12-12 16:32:48

SamLukeYes
会员
所在地: Canton, China
注册时间: 2020-07-19
帖子: 320
个人网站

Re: 关于Anaconda Spyder的字体问题

silkriver 说:

我安装时也碰到了,安装限定版本的pyqtwebengine可以解决的
pip install "pyqtwebengine<5.13"

——这个anaconda是archlinuxcn里的,后来我感觉还存在其他问题,好像是打包者没有弄完善。现在改成去官网下miniconda再自己定制安装了(装aur里的miniconda应该也行,但还是让conda自己的包管理系统来负责更新比较好)

$ conda init --reverse
$ bash Miniconda3-latest-Linux-x86_64.sh
$ source ~/.bashrc
$ conda init
$ vim .condarc
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/pro
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
ssl_verify: true
$ conda install spyder
$ spyder

AUR 里的 python-conda-git 也不错,只是初次使用需要手动配置 pkgs_dirs。python-conda 不知为何很久没更新了。

离线

页脚