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

I cant open Inspector #1028

Closed
Master811129 opened this issue Feb 2, 2023 · 7 comments
Closed

I cant open Inspector #1028

Master811129 opened this issue Feb 2, 2023 · 7 comments

Comments

@Master811129
Copy link

Made a simple script

import webview
import sys
print (sys.argv[1])
webview.create_window('Hello world', sys.argv[1])
webview.start(debug=True)

I clicked on Inspect Elements in the context menu and it just showed this:

Traceback (most recent call last):
  File "/home/someusername/.local/lib/python3.10/site-packages/webview/platforms/qt.py", line 150, in show_inspector
    window = Window('web_inspector', title, url, '', 700, 500, None, None, True, False,
TypeError: Window.__init__() missing 1 required positional argument: 'localization'

My OS is Arch Linux and pywebview is 4.0.1

@r0x0r
Copy link
Owner

r0x0r commented Feb 2, 2023

What renderer are you using?

@Master811129
Copy link
Author

Master811129 commented Feb 2, 2023

thank you for answering me. This is what it says:
[pywebview] Using Qt 5.15.8
i also have installed qtpy through pip.

@Master811129
Copy link
Author

Here is full log

[pywebview] Using Qt 5.15.8

DevTools listening on ws://127.0.0.1:8228/devtools/browser/8c25382a-b2bc-4ca1-be5c-0dd6d221e314
Remote debugging server started successfully. Try pointing a Chromium-based browser to http://127.0.0.1:8228
http://localhost:8228
Traceback (most recent call last):
  File "/home/someusername/.local/lib/python3.10/site-packages/webview/platforms/qt.py", line 144, in show_inspector
    BrowserView.instances[uid].raise_()
KeyError: 'master-inspector'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/someusername/.local/lib/python3.10/site-packages/webview/platforms/qt.py", line 573, in on_load_finished
    self.view.show_inspector()
  File "/home/someusername/.local/lib/python3.10/site-packages/webview/platforms/qt.py", line 150, in show_inspector
    window = Window('web_inspector', title, url, '', 700, 500, None, None, True, False,
TypeError: Window.__init__() missing 1 required positional argument: 'localization'
http://localhost:8228
Traceback (most recent call last):
  File "/home/someusername/.local/lib/python3.10/site-packages/webview/platforms/qt.py", line 144, in show_inspector
    BrowserView.instances[uid].raise_()
KeyError: 'master-inspector'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/someusername/.local/lib/python3.10/site-packages/webview/platforms/qt.py", line 150, in show_inspector
    window = Window('web_inspector', title, url, '', 700, 500, None, None, True, False,
TypeError: Window.__init__() missing 1 required positional argument: 'localization'

@r0x0r
Copy link
Owner

r0x0r commented Feb 2, 2023

Fixed in master

@r0x0r r0x0r closed this as completed Feb 2, 2023
@Master811129
Copy link
Author

Master811129 commented Feb 3, 2023

Edit: LOL, Just slapped the latest commit into my local file and i can say it did the trick.

When release in pip?

@r0x0r
Copy link
Owner

r0x0r commented Feb 22, 2023

@Master811129 now

@Master811129
Copy link
Author

Cool

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

No branches or pull requests

2 participants