libtorrent import issues [Fix] #2890
Unanswered
Diederikjh
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Try running your virtualenv with option to enable system packages: |
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks @jimman2003 for pointing me in the right direciton. When creating the virtual env, I can add my system packages to it, and aslong as I use the correct python version when creating it, it works. When I run |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I couldn't get this working for a while, and got to a solution, so want to mention it here to hopefully help someone down the line.
The symptom was that running my tasks gave the following error:
CRITICAL task showrss feed libtorrent package required
Running python in the virtualenv also failed the following statement
import libtorrent
.Running ubuntu I thought I missed an installed package, but running python (and python3.6 and python3.8) the lib didn't work outside the virtualenv either. (Ubuntu package
python3-libtorrent
already installed.)When I looked closer, I saw running just normal python3 does have the correct lib (command
import libtorrent
works).So to fix it, I had to copy the lib from the default installation dir into the virtualenv 😬 Seems to work, but feels like DLL hell.
copy command:
cp /usr/lib/python3/dist-packages/libtorrent.cpython-38-x86_64-linux-gnu.so ~/flexget/lib/python3.8/site-packages/
Is there a better way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions