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

TypeError: connect() failed between requestTimedOut(QNetworkReply*) and requestTimedOut() #12

Open
rduivenvoorde opened this issue Oct 6, 2017 · 2 comments

Comments

@rduivenvoorde
Copy link

Hi,

trying to use the networkaccessmanager.py class.

in 2.18 all was working fine!
But now I try to use it in QGIS2.99 (Qt 5.9.1 in Debian Testing) I get these errors:

TypeError: connect() failed between requestTimedOut(QNetworkReply*) and requestTimedOut()
and if you comment out the connect line:

https://github.com/boundlessgeo/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py#L220

You will get:

TypeError: connect() failed between sslErrors(QList) and sslErrors()

Here: https://stackoverflow.com/questions/42123029/how-to-fix-typeerror-connect-failed-between-navigationtoolbar2qt-messagestr

it says: exposed by more strict checking in PyQt 5.7....

Did one of you hit these?

To me it is not clear WHAT is more strict now...

@rduivenvoorde
Copy link
Author

rduivenvoorde commented Oct 6, 2017

Ah... it has something to do with the @pyqtSlot decorators...

Not sure if another syntax is needed, but removing them also works :-)

What is the need/advantage of using those decorators?

Some info: https://stackoverflow.com/questions/40674940/why-does-pyqtslot-decorator-cause-typeerror-connect-failed

@elpaso
Copy link
Contributor

elpaso commented Oct 6, 2017

@rduivenvoorde please note that this library wasn't fully tested (yet) for QGIS3 Python3/Qt5

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