【问题标题】:Error when starting Spyder IDE on Python 3.10在 Python 3.10 上启动 Spyder IDE 时出错
【发布时间】:2021-11-29 17:29:43
【问题描述】:

我正在尝试在 MacBook Pro M1 上安装和运行 spyder IDE,但它不工作,这是我得到的错误:

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'

有人可以帮忙吗?

【问题讨论】:

    标签: python python-3.x ide spyder


    【解决方案1】:

    此处为 Spyder 维护者)此错误已在我们于 2021 年 11 月发布的 5.2.0 版本中修复。

    【讨论】:

      猜你喜欢
      • 2016-05-31
      • 2022-06-18
      • 2017-12-10
      • 2014-09-25
      • 1970-01-01
      • 2014-02-08
      • 1970-01-01
      • 2013-09-14
      • 1970-01-01
      相关资源
      最近更新 更多