Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the import of pyface.ui.qt.color for the new update #1025

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

homosapien-lcy
Copy link
Contributor

The new pyface update move the qt tool kit from pyface.ui.qt4 to the pyface.ui.qt, this PR fixes the examples broken due to this update, closes #1024

@homosapien-lcy
Copy link
Contributor Author

homosapien-lcy commented Apr 7, 2023

One of the test failed (EDM, macos-latest, pyside6, python3.8):

ImportError: Failed to import test module: enable.savage.svg.backends.kiva.tests.test_renderer
Traceback (most recent call last):
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
    module = self._get_module_from_name(name)
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
    __import__(name)
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/site-packages/enable/savage/svg/backends/kiva/tests/test_renderer.py", line 12, in <module>
    from enable.savage.svg.backends.kiva.renderer import (
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/site-packages/enable/savage/svg/backends/kiva/renderer.py", line 14, in <module>
    import numpy as np
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/site-packages/numpy/__init__.py", line 140, in <module>
    from . import core
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/site-packages/numpy/core/__init__.py", line 23, in <module>
    from . import multiarray
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/site-packages/numpy/core/multiarray.py", line 10, in <module>
    from . import overrides
  File "/Users/runner/work/enable/enable/.edm/envs/enable-test-3.8-pyside6/lib/python3.8/site-packages/numpy/core/overrides.py", line 6, in <module>
    from numpy.core._multiarray_umath import (
RuntimeError: NumPy was built with baseline optimizations: 
(SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C AVX2) but your machine doesn't support:
(AVX2).

seems to be a unique problem to macos machine for pyside6?

@dpinte
Copy link
Member

dpinte commented Apr 7, 2023

The issue you report with numpy is a known issue with numpy in Github Action workers.

@homosapien-lcy homosapien-lcy merged commit e9f97e3 into main Apr 11, 2023
11 of 12 checks passed
@homosapien-lcy homosapien-lcy deleted the pyface_import_fix branch April 11, 2023 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'pyface.ui.qt4.color'
2 participants