Changes between Initial Version and Version 1 of Ticket #69357


Ignore:
Timestamp:
Feb 17, 2024, 11:46:53 PM (8 months ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

The name run_sync_in_worker_thread was deprecated in py-anyio 3.0.0; the new name anyio.to_thread.run_sync should now be used. Last month py-anyio was updated from version 3.7.1 to 4.2.0. Although the py-anyio changelog does not mention it by name, I presume that run_sync_in_worker_thread was removed entirely in py-anyio 4.0.0 since there are half a dozen bullet points describing backwards-incompatible changes in that version.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #69357

    • Property Owner set to stromnov
    • Property Status changed from new to assigned
    • Property Summary changed from jupyter lab fails to launch to py311-jupyterlab: jupyter lab fails to launch: ImportError: cannot import name 'run_sync_in_worker_thread' from 'anyio'
    • Property Port py311-jupyterlab added; py312-jupyter-lab removed
  • Ticket #69357 – Description

    initial v1  
    11Under the latest version of macOS Sonoma (14.3.1) running on a late 2020 15" MacBook Pro, the command "jupyter lab" fails with the following error:
    22
     3{{{
    34Traceback (most recent call last):
    45  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/bin/jupyter-lab", line 33, in <module>
     
    3940    from anyio import run_sync_in_worker_thread
    4041ImportError: cannot import name 'run_sync_in_worker_thread' from 'anyio' (/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/anyio/__init__.py)
     42}}}