iw4p / torrentp

Python torrent downloader - Download from torrent with .torrent file or magnet link, with just 3 lines of python code.
Other
140 stars 28 forks source link

Libtorrent dependency files #21

Open robochopbg opened 4 days ago

robochopbg commented 4 days ago

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 commented 4 days ago

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 commented 4 days ago

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 commented 3 days ago

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 commented 3 days ago

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 commented 3 days ago

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