question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: incompatible type of argument(s) in call to call(); candidates were call(QString,QJsonValue)

See original GitHub issue

Specification

  • Platform:raspberry pi arm64 ubuntu
  • Version: pywebview-2.2.1 python3

Description

first,I according to the doc, apt isntall qt5-default apt install python3-pyqt5 python3-pyqt5.qtwebkit libqt5webkit5-dev

but i cant run test,I found the pyqts version is 5.5.1, and debug found can`t import QtWebEngineWidgets,so I edit version check in qt.py of source,I try import from PyQt5 import QtWebKitWidgets and it works.

then,I try examples for https://pywebview.flowrl.com/examples/js_api.html click “Hello Python” button nothing happen,so i try catch the function pywebview.api.init().then(showResponse)

I got: Error: incompatible type of argument(s) in call to call(); candidates were call(QString,QJsonValue)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
r0x0rcommented, Jan 30, 2019

I refactored the code, so that it determines at the import stage whether WebEngine is available and sets a flag accordingly or not and the rest of conditionals are based on that flag. Version check is completely gone. In addition to installations instructions, WebEngine Travis builds need to be figured out as well. Travis provides Ubuntu Xenial at best, which comes with QT5.5.

1reaction
iamdrqcommented, Jan 30, 2019

@r0x0r It is works on ubuntu16 used qt-5.5.1,at the same time,I did test on ubuntu18 used qt-5.10,it is not works,so I viewed the qt.py source code,I think it is not good what import QtWebkit or QtWebEngineWidgets by qt`s version, QtWebEngineWidgets and QtWebkit is Two different components,so use QtWebEngineWidgets need apt install python3-pyqt5.qtwebengine python3-pyqt5.qtwebchannel and use QtWebkit apt install python3-pyqt5.qtwebkit.They have nothing to do with versions.Just QtWebEngineWidgets provide since qt5.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: incompatible type for argument
Since you need to pass the address of the head and tail pointers to the function. Similar fix needs to be made to...
Read more >
Solved: Clear Collect gives an incompatible type error upo...
Solved: I am trying to use clear collect function in my app with 2 lists but it gives me an Incompatible type error...
Read more >
Generic inference regression from #5699 · Issue #5738
Incompatible types in assignment (expression has type "Tuple[_T_co, . ... List call infers for its type argument T' :> str from first pass ......
Read more >
How to Handle the Incompatible Types Error in Java
Introduction to Data Types & Type Conversion. Variables are memory containers used to store information. In Java, every variable has a data ...
Read more >
Incompatible type with mxCreateNumericArray
Learn more about mexfunction, incompatible types, mxcreatenumericarray. ... error: argument of type "const int *" is incompatible with parameter of type ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found