Code Monkey home page Code Monkey logo

Comments (4)

Dmole avatar Dmole commented on June 7, 2024

EG:

apt install python3-full
mkdir tribler_env
python3 -m venv tribler_env 
./tribler_env/bin/pip3 install --upgrade -r tribler/requirements.txt

Only that errors with

ERROR: Could not find a version that satisfies the requirement libtorrent==1.2.19 (from versions: none)
ERROR: No matching distribution found for libtorrent==1.2.19

so get it from github directly.

But then

Building wheels for collected packages: PyQt5-sip
  Building wheel for PyQt5-sip (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for PyQt5-sip (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'PyQt5.sip' extension
      creating build
      creating build/temp.linux-x86_64-cpython-311
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/me/Downloads/tribler_env/include -I/usr/include/python3.11 -c apiversions.c -o build/temp.linux-x86_64-cpython-311/apiversions.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/me/Downloads/tribler_env/include -I/usr/include/python3.11 -c array.c -o build/temp.linux-x86_64-cpython-311/array.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/me/Downloads/tribler_env/include -I/usr/include/python3.11 -c descriptors.c -o build/temp.linux-x86_64-cpython-311/descriptors.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/me/Downloads/tribler_env/include -I/usr/include/python3.11 -c int_convertors.c -o build/temp.linux-x86_64-cpython-311/int_convertors.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/me/Downloads/tribler_env/include -I/usr/include/python3.11 -c objmap.c -o build/temp.linux-x86_64-cpython-311/objmap.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/me/Downloads/tribler_env/include -I/usr/include/python3.11 -c qtlib.c -o build/temp.linux-x86_64-cpython-311/qtlib.o
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/me/Downloads/tribler_env/include -I/usr/include/python3.11 -c siplib.c -o build/temp.linux-x86_64-cpython-311/siplib.o
      siplib.c: In function ‘sip_api_get_frame’:
      siplib.c:12751:22: error: invalid use of undefined type ‘struct _frame’
      12751 |         frame = frame->f_back;
            |                      ^~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for PyQt5-sip
Failed to build PyQt5-sip
ERROR: Could not build wheels for PyQt5-sip, which is required to install pyproject.toml-based projects

Any I don't even want the GUI part so I'll leave the QT fix for others.

from tribler.

Dmole avatar Dmole commented on June 7, 2024

Getting libtorrent from github:

apt install libboost-tools-dev libboost-dev libboost-system-dev
wget "https://github.com/arvidn/libtorrent/releases/download/v1.2.19/libtorrent-rasterbar-1.2.19.tar.gz"
tar -xf libtorrent-rasterbar-1.2.19.tar.gz
cd libtorrent-rasterbar-1.2.19
echo "using gcc ;" >>~/user-config.jam
ln -s /usr/lib/x86_64-linux-gnu/libboost_python311.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_python311.so
../tribler_env/bin/python3 setup.py build

uses maybe 2GB RAM per CPU.

from tribler.

Dmole avatar Dmole commented on June 7, 2024

After adding async_timeout to requirements-core.txt that worked.

from tribler.

Dmole avatar Dmole commented on June 7, 2024

#7813

from tribler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.