首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Python3.10上启动Spyder时出错

在Python3.10上启动Spyder时出错
EN

Stack Overflow用户
提问于 2021-10-10 19:04:24
回答 1查看 1.6K关注 0票数 0

我试图在MacBook Pro M1上安装和运行spyder,但是它不能工作,下面是我得到的错误:

代码语言:javascript
复制
MacBook-Pro ~ % spyder
Layer-backing can not be explicitly controlled on 10.14 when built against the 10.14 SDK
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/spyder", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/start.py", line 236, in main
    mainwindow.main(options, args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/mainwindow.py", line 1992, in main
    mainwindow = create_window(MainWindow, app, splash, options, args)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/utils.py", line 281, in create_window
    main.setup()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/app/mainwindow.py", line 875, in setup
    PLUGIN_REGISTRY.register_plugin(self, PluginClass,
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugin_registration/registry.py", line 274, in register_plugin
    instance = self._instantiate_spyder5_plugin(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugin_registration/registry.py", line 152, in _instantiate_spyder5_plugin
    plugin_instance = PluginClass(main_window, configuration=CONF)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/api/plugins/new_api.py", line 294, in __init__
    self._container = container = self.CONTAINER_CLASS(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/plugins/tours/container.py", line 48, in __init__
    self._tour_dialog = OpenTourDialog(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/spyder/plugins/tours/widgets.py", line 1074, 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'

有人能帮忙吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-14 02:50:14

这个错误在我们于2021年11月发布的5.2.0版本中得到了修正。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69518152

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档