gpt4 book ai didi

qt - 在 ubuntu 22.04 上启动 spyder 时出错

转载 作者:行者123 更新时间:2023-12-04 19:05:07 24 4
gpt4 key购买 nike

我刚刚升级了我的ubuntu。我在 spyder 上有这个错误:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
File "/usr/bin/spyder", line 33, in <module>
sys.exit(load_entry_point('spyder==4.2.1', 'gui_scripts', 'spyder')())
File "/usr/lib/python3/dist-packages/spyder/app/start.py", line 213, in main
mainwindow.main(options, args)
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3624, in main
mainwindow = create_window(app, splash, options, args)
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3482, in create_window
main.setup()
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 803, in setup
self.completions = CompletionManager(self)
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/plugin.py", line 97, in __init__
plugin_client = Plugin(self.main)
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/plugin.py", line 50, in __init__
self.installer = KiteInstallerDialog(
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py", line 287, in __init__
self._integration_widget = KiteIntegrationInfo(self)
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/widgets/install.py", line 58, in __init__
image = image.scaled(image_width, image_height, Qt.KeepAspectRatio,
TypeError: arguments did not match any overloaded call:
scaled(self, int, int, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'
scaled(self, QSize, aspectRatioMode: Qt.AspectRatioMode = Qt.IgnoreAspectRatio, transformMode: Qt.TransformationMode = Qt.FastTransformation): argument 1 has unexpected type 'float'
我发现的所有解决方案都针对特定应用程序开发了我的不同用户,而不是针对与升级或 ubuntu 相关的探针。

最佳答案

我遇到了完全相同的问题,使用以下两项进行了搜索:
"spyder"+ "mainwindow.py, line 3624"# 也就是错误信息的一部分
我在 spyder 的 github 上找到了错误报告 #16571:“TypeError in Tour with Python 3.10”,它将 python 3.10 确定为罪魁祸首。
在 Debian + aptitude 中,我将 python 3 从 3.10 降级到 3.9 版本,再次启动 Spyder 并且......问题解决了!

关于qt - 在 ubuntu 22.04 上启动 spyder 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72114520/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com