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

PR: Fix standalone macOS bundle crash #22157

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

mrclary
Copy link
Contributor

@mrclary mrclary commented Jun 10, 2024

I see the following error in PR #22156 (https://github.com/spyder-ide/spyder/actions/runs/9451452145/job/26032800727?pr=22156)

Warning: 0 15:50:35,969 [WARNING] [traitlets] -> Kernel Provisioning: The 'local-provisioner' is not found.  This is likely due to the presence of multiple jupyter_client distributions and a previous distribution is being used as the source for entrypoints - which does not include 'local-provisioner'.  That distribution should be removed such that only the version-appropriate distribution remains (version >= 7).  Until then, a 'local-provisioner' entrypoint will be automatically constructed and used. The candidate distribution locations are: []
2024-06-10 15:50:35,969 [DEBUG] [traitlets] -> Instantiating kernel 'Python 3 (Spyder)' with kernel provisioner: local-provisioner Error: -10 15:50:35,969 [ERROR] [traitlets] -> 'module' object is not callable Traceback (most recent call last):
  File "/Users/runner/work/spyder/spyder/dist/Spyder.app/Contents/Resources/lib/python3.10/jupyter_client/manager.py", line 87, in wrapper
  File "/Users/runner/work/spyder/spyder/dist/Spyder.app/Contents/Resources/lib/python3.10/jupyter_client/manager.py", line 435, in _async_start_kernel
  File "/Users/runner/work/spyder/spyder/dist/Spyder.app/Contents/Resources/lib/python3.10/jupyter_client/manager.py", line 395, in _async_pre_start_kernel
  File "/Users/runner/work/spyder/spyder/dist/Spyder.app/Contents/Resources/lib/python3.10/jupyter_client/provisioning/factory.py", line 101, in create_provisioner_instance
TypeError: 'module' object is not callable

After comparing the build environment with that of the last successful workflow, and iteratively pinning those packages that were different, I discovered the culprit to be zipp>=3.19.

Pinning zipp<3.19 for the macOS standalone application bundle.

@mrclary mrclary self-assigned this Jun 10, 2024
@dalthviz dalthviz added this to the v5.5.5 milestone Jun 10, 2024
@mrclary mrclary requested a review from ccordoba12 June 11, 2024 03:04
@mrclary mrclary marked this pull request as ready for review June 11, 2024 03:04
…ble" in jupyter_client.

pinning to <3.19 resolves the issue.
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mrclary for your prompt help with this!

@ccordoba12 ccordoba12 merged commit 8a3dff2 into spyder-ide:5.x Jun 11, 2024
3 checks passed
ccordoba12 added a commit that referenced this pull request Jun 11, 2024
@mrclary mrclary deleted the jupyter-client branch June 19, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants