-
Notifications
You must be signed in to change notification settings - Fork 86
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
Python DownloadProgress.add_new_download() callback user data issue #1441
Comments
The first thing I would look into is probably implementing all the methods from the |
I did of course. But the code above is the shortest way to reproduce my issue. |
Right, I was able to reproduce the error with your code snippet. The problem lies in the return value from |
The example code you linked doesn't seem to allow a program to keep track of concurrent packages downloading simultaneously. This appears to only be doable with the callbacks. I've looked at SWIG documentation on how to add typemaps in the |
@jan-kolarik let me know how I can help with this issue (short of contributing a PR), like with testing and such. |
@jan-kolarik I hope this PR helps. |
Hi @es-fabricemarie, sorry for the late response. We've already started looking into this, will update the upstream issue here to reflect the correct state. And thanks for your related PR! |
Hi,
I'm trying to use DownloadProgress callbacks using the Python bindings and I face an issue with the add_new_download method.
The code to reproduce my issue can be simplified to:
I'm trying to set the package name as the
Associated user data for new download
, so that it gets sent back to the other callbacks (progress
andend
for instance), so I can report fine grained progress.I run this code, the script crashes and a core is dumped:
What am I doing wrong here? Or is this an issue with the Python binding?
The text was updated successfully, but these errors were encountered: