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 is not part of requirements.txt #6795

Closed
2ico opened this issue Mar 2, 2022 · 3 comments · Fixed by #6796
Closed

Libtorrent is not part of requirements.txt #6795

2ico opened this issue Mar 2, 2022 · 3 comments · Fixed by #6796

Comments

@2ico
Copy link

2ico commented Mar 2, 2022

To reproduce

  • clone branch release/7.11
  • cd src
  • install python3.9 (through Conda)
  • pip install -r requirements.txt
  • ./tribler.sh

INFO:__main__:Sentry has been initialised in normal mode INFO:__main__:Root state dir: /home/george/.Tribler INFO:__main__:Running in "normal" mode INFO:tribler_gui:Load logger config: /home/george/.Tribler [PID:1152352] 2022-03-02 11:52:46,927 - INFO - tribler_core.check_os(231) - Check and enable code tracing. Process name: "gui". Log dir: "/home/george/.Tribler" [PID:1152352] 2022-03-02 11:52:46,927 - INFO - tribler_core.check_os(213) - Enable fault handler: "/home/george/.Tribler" [PID:1152352] 2022-03-02 11:52:46,927 - INFO - tribler_core.check_os(48) - Check environment [PID:1152352] 2022-03-02 11:52:46,928 - INFO - tribler_core.check_os(79) - Should kill other Tribler instances [PID:1152352] 2022-03-02 11:52:46,928 - INFO - tribler_core.check_os(87) - Old PID: -1. Current PID: 1152352 [PID:1152352] 2022-03-02 11:52:46,928 - INFO - tribler_core.check_os(53) - Check free space [PID:1152352] 2022-03-02 11:52:47,043 - ERROR <run_tribler:131> __main__.<module>(): No module named 'libtorrent' Traceback (most recent call last): File "/home/george/Documents/TUD/Tribler/tribler-github/src/run_tribler.py", line 102, in <module> from tribler_gui.tribler_window import TriblerWindow File "/home/george/Documents/TUD/Tribler/tribler-github/src/tribler-gui/tribler_gui/tribler_window.py", line 50, in <module> from tribler_gui.debug_window import DebugWindow File "/home/george/Documents/TUD/Tribler/tribler-github/src/tribler-gui/tribler_gui/debug_window.py", line 16, in <module> import libtorrent ModuleNotFoundError: No module named 'libtorrent'

I solved this with pip install libtorrent==1.2.15. Installing the latest version (2.0.5) won't work because of some cpp binding error (their fault).

@2ico 2ico added the type: bug label Mar 2, 2022
@drew2a
Copy link
Contributor

drew2a commented Mar 2, 2022

@2ico unfortunately there is no easy way to install libtorrent and it differs from OS to OS.

That is why we put the information regarding dependency installation (libtorrent included) to the following documentation: https://github.com/Tribler/tribler/tree/main/doc/development

Normally you could not install libtorrent via pip.

For example, for Linux you have to run:

sudo apt install python3-libtorrent

For macOS:

brew install libtorrent-rasterbar

For Windows: https://github.com/Tribler/tribler/blob/main/doc/development/development_on_windows.rst#libtorrent


Regarding the 2.x.y version of libtorrent, we don't support it yet.

@2ico
Copy link
Author

2ico commented Mar 2, 2022

Yes, then I suggest you link those doc pages in https://github.com/Tribler/tribler/blob/9ec9fd8aae2b6e10aa472757e8c5b819f5f3d439/src/README.md.
Right now it has a broken url to https://github.com/Tribler/tribler#setting-up-your-development-environment

@drew2a drew2a mentioned this issue Mar 2, 2022
@drew2a
Copy link
Contributor

drew2a commented Mar 2, 2022

@2ico thank you for pointing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants