Skip to content

type object 'QWebEnginePage' has no attribute 'MediaAudioCapture' #1639

@Gu-f

Description

@Gu-f

OS: Linux
Pywebvew: 5.4

js code:

function handleMenuSelect(index) {
  if (!currentRow.value) return
  const val = currentRow.value[index]
  if (val === undefined) return
  navigator.clipboard.writeText(String(val)).then(() => {
    ElMessage.success(`${val}`)
  }).catch(() => {
    ElMessage.error('error')
  })
  menuVisible.value = false
}

The following error occurred when I was executing the copy content to the clipboard.
The windows system is normal. It seems like a qt version issue. But how can I check the qt version used by pyweview and what versions of the dependent libraries are.

Traceback (most recent call last):
  File "/home/ProgramFiles/anaconda3/envs/evidence-analysis-tools/lib/python3.11/site-packages/webview/platforms/qt.py", line 250, in onFeaturePermissionRequested
    QWebPage.MediaAudioCapture,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'QWebEnginePage' has no attribute 'MediaAudioCapture'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions