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

Libtorrent dependency files #21

Open
robochopbg opened this issue Jun 27, 2024 · 5 comments
Open

Libtorrent dependency files #21

robochopbg opened this issue Jun 27, 2024 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@robochopbg
Copy link

Please how and where to get the libtorrent dependency files
This project uses libtorrent and import libtorrent as lt import fails dll not found.

I tried the whole compiling of libtorrent but its not working.
Python 3.10 64bit

Thanks

@robochopbg
Copy link
Author

Please i would like help with this.
I want to use your project but cant because of this error
import libtorrent as lt
ImportError: DLL load failed while importing libtorrent: The specified module could not be found.

Regards

@robochopbg
Copy link
Author

Ok finally got it working.

it was still missing 3 dll files.
boost_python310-vc143-mt-x64-1_85.dll
libcrypto-3-x64.dll
libssl-3-x64.dll

Dependency walker is way to old to use. gives wrong info
I used Dependencies from git - https://github.com/lucasg/Dependencies and showed correctly the files i was still missing

@iw4p
Copy link
Owner

iw4p commented Jun 27, 2024

Hi, Thanks for your question and your provided solution.
It's a good issue for other people with the same issue as you.
Is there anything I can help you?

@robochopbg
Copy link
Author

Hi there.

Actually yes.
My project im working on crashes everytime when the libtorrent crreate_session() is called.
Is it not possible to get this code working with a gui (Pyside6) event loop.

when i run torrentp code by itself separate from my own project then the session gets created

@robochopbg
Copy link
Author

If anyone knows any magic to get libtorrent to run from the same app as another python gui framework, i would like to know.
So far the only way i can get libtorrent to work in my pyside6(Qt) app is to run the libtorrent code from its own module separate from the main app.
So from the the main app i would call

self.p = QProcess() - Qt version of python subprocess
self.command.append("torrents.py") - torrent libs code as in torrentp lib
self.command.append(repr([magnet])) - pass the source (magnet/torrent) as a sys.argv argument
self.p.startDetached("python", self.command) - run the module in its own process

now the gui event loop does not crash and libtorrent session is running in it's own process

@iw4p iw4p added the help wanted Extra attention is needed label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants