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

PyObjC Error: Exception during dealloc of proxy #1122

Closed
chdominguez opened this issue May 10, 2023 · 3 comments
Closed

PyObjC Error: Exception during dealloc of proxy #1122

chdominguez opened this issue May 10, 2023 · 3 comments
Labels

Comments

@chdominguez
Copy link

Specification

  • pywebview version: 4.1
  • operating system: macOS Monterey 12.6.5
  • web renderer: Cocoa / Qt

Description

After setting up my pywebview project, I compiled some React code which works perfectly on the browser (Safari/Chrome) but, when running in pywebview I get the following error in the terminal when using Cocoa:

PyObjC: Exception during dealloc of proxy: Completion handler passed to -[BrowserDelegate webView:didReceiveAuthenticationChallenge:completionHandler:] was not called

Then some of the features coded in React won't work. I have searched in the pyobjc repo about this but I did not find anything meaningful. When using Qt I do not get any error in the terminal but React code does not work as expected also.

Practicalities

  • YES I am willing to work on this issue myself.

  • NO I am prepared to support this issue financially.

@chdominguez
Copy link
Author

Okay so I fixed it by installing the whole pyobjc library. By default while installing pywebview, it only installed:

  • pyobjc-core
  • pyobjc-framework-cocoa
  • pyobjc-framework-webkit

I ran pip install pyobjc and it fixed the issue after installing all the pyobjc modules. I suppose that not all of them are needed, but as a quick fix this works.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jun 10, 2023
@r0x0r
Copy link
Owner

r0x0r commented Jun 10, 2023

pyobjc-framework-security is a missing package that fixes this problem. I will update pyproject.toml

@r0x0r r0x0r closed this as completed Jun 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants