Skip to content
New issue

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

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

Already on GitHub? # to your account

Failures from cron job #433

Closed
mdickinson opened this issue Jul 18, 2021 · 3 comments
Closed

Failures from cron job #433

mdickinson opened this issue Jul 18, 2021 · 3 comments
Labels
type: bug Something isn't working
Milestone

Comments

@mdickinson
Copy link
Member

There are failures on the "test-bleeding-edge" cron job:

======================================================================
ERROR: test_event_loop_helper (traits_futures.tests.test_ets_event_loop.TestETSEventLoop)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/i_event_loop_tests.py", line 38, in test_event_loop_helper
    event_loop_helper = self.event_loop.helper()
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/ets_event_loop.py", line 66, in helper
    return self.toolkit_event_loop.helper()
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/ets_event_loop.py", line 77, in toolkit_event_loop
    toolkit_event_loop_class = find_toolkit(
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/pyface/base_toolkit.py", line 259, in find_toolkit
    plugin for plugin in importlib_metadata.entry_points().select(group=entry_point)
AttributeError: 'dict' object has no attribute 'select'

======================================================================
ERROR: test_pingee (traits_futures.tests.test_ets_event_loop.TestETSEventLoop)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/i_event_loop_tests.py", line 34, in test_pingee
    pingee = self.event_loop.pingee(on_ping=lambda: None)
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/ets_event_loop.py", line 56, in pingee
    return self.toolkit_event_loop.pingee(on_ping)
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/ets_event_loop.py", line 77, in toolkit_event_loop
    toolkit_event_loop_class = find_toolkit(
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/pyface/base_toolkit.py", line 259, in find_toolkit
    plugin for plugin in importlib_metadata.entry_points().select(group=entry_point)
AttributeError: 'dict' object has no attribute 'select'

======================================================================
ERROR: test_no_ets_toolkit_var (traits_futures.tests.test_ets_event_loop.TestToolkitSelection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/test_ets_event_loop.py", line 87, in test_no_ets_toolkit_var
    toolkit_event_loop = find_selected_toolkit()
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/test_ets_event_loop.py", line 56, in find_selected_toolkit
    process = subprocess.run(
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.8.11/x64/bin/python', '-c', '\nfrom traits_futures.ets_event_loop import ETSEventLoop\nprint(type(ETSEventLoop().toolkit_event_loop).__name__)\n']' returned non-zero exit status 1.

======================================================================
ERROR: test_null_selects_asyncio (traits_futures.tests.test_ets_event_loop.TestToolkitSelection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/test_ets_event_loop.py", line 83, in test_null_selects_asyncio
    self.assertEqual(find_selected_toolkit("asyncio"), "AsyncioEventLoop")
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/test_ets_event_loop.py", line 56, in find_selected_toolkit
    process = subprocess.run(
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.8.11/x64/bin/python', '-c', '\nfrom traits_futures.ets_event_loop import ETSEventLoop\nprint(type(ETSEventLoop().toolkit_event_loop).__name__)\n']' returned non-zero exit status 1.

======================================================================
ERROR: test_selects_qt (traits_futures.tests.test_ets_event_loop.TestToolkitSelection)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/test_ets_event_loop.py", line 75, in test_selects_qt
    self.assertEqual(find_selected_toolkit("qt"), "QtEventLoop")
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/site-packages/traits_futures/tests/test_ets_event_loop.py", line 56, in find_selected_toolkit
    process = subprocess.run(
  File "/opt/hostedtoolcache/Python/3.8.11/x64/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.8.11/x64/bin/python', '-c', '\nfrom traits_futures.ets_event_loop import ETSEventLoop\nprint(type(ETSEventLoop().toolkit_event_loop).__name__)\n']' returned non-zero exit status 1.
@mdickinson mdickinson added the type: bug Something isn't working label Jul 18, 2021
@mdickinson mdickinson added this to the Release 0.3.0 milestone Jul 18, 2021
@mdickinson
Copy link
Member Author

This is a Pyface bug, introduced in enthought/pyface#991.

@mdickinson
Copy link
Member Author

Closing here; this needs to be fixed in Pyface (though it's also a tiny extra source of motivation for #432).

@mdickinson
Copy link
Member Author

Upstream issue: enthought/pyface#998.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant