YoCodingMonster / OpenFreezeCenter

For Those running Linux Distro on MSI laptops. This is the Graphic User Interface application meant for Fan control in Linux.
GNU Affero General Public License v3.0
358 stars 61 forks source link

multiple pip errors during installation on Ubuntu 24.04 running on GE76 Raider #191

Open marburps opened 1 month ago

marburps commented 1 month ago

This is a shell script to install all the dependencies required for this software to run. Dependencies required are as follows. 1 -> python3-virtualenv AND python3-venv 2 -> PyGObject 3 -> PyCairo 4 -> Expert ----------Creating Folder for Open Freeze Center---------- ----------Installing python3-virtualenv AND python3-venv---------- Identified face as marburg Identified face as marburg Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: python3-distlib python3-filelock python3-pip-whl python3-platformdirs python3-setuptools-whl python3-wheel-whl python3.12-venv Recommended packages: python3-distutils The following NEW packages will be installed: python3-distlib python3-filelock python3-pip-whl python3-platformdirs python3-setuptools-whl python3-venv python3-virtualenv python3-wheel-whl python3.12-venv 0 upgraded, 9 newly installed, 0 to remove and 6 not upgraded. Need to get 2,908 kB of archives. After this operation, 4,559 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 python3-distlib all 0.3.8-1 [318 kB] Get:2 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 python3-filelock all 3.13.1-1 [10.8 kB] Get:3 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 python3-pip-whl all 24.0+dfsg-1ubuntu1 [1,702 kB] Get:4 http://be.archive.ubuntu.com/ubuntu noble/main amd64 python3-platformdirs all 4.2.0-1 [16.1 kB] Get:5 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 python3-setuptools-whl all 68.1.2-2ubuntu1 [715 kB] Get:6 http://be.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3.12-venv amd64 3.12.3-1ubuntu0.1 [5,678 B] Get:7 http://be.archive.ubuntu.com/ubuntu noble-updates/universe amd64 python3-venv amd64 3.12.3-0ubuntu2 [1,034 B] Get:8 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 python3-wheel-whl all 0.42.0-2 [67.8 kB] Get:9 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 python3-virtualenv all 20.25.0+ds-2 [70.8 kB] Fetched 2,908 kB in 1s (2,276 kB/s)
Selecting previously unselected package python3-distlib. (Reading database ... 189988 files and directories currently installed.) Preparing to unpack .../0-python3-distlib_0.3.8-1_all.deb ... Unpacking python3-distlib (0.3.8-1) ... Selecting previously unselected package python3-filelock. Preparing to unpack .../1-python3-filelock_3.13.1-1_all.deb ... Unpacking python3-filelock (3.13.1-1) ... Selecting previously unselected package python3-pip-whl. Preparing to unpack .../2-python3-pip-whl_24.0+dfsg-1ubuntu1_all.deb ... Unpacking python3-pip-whl (24.0+dfsg-1ubuntu1) ... Selecting previously unselected package python3-platformdirs. Preparing to unpack .../3-python3-platformdirs_4.2.0-1_all.deb ... Unpacking python3-platformdirs (4.2.0-1) ... Selecting previously unselected package python3-setuptools-whl. Preparing to unpack .../4-python3-setuptools-whl_68.1.2-2ubuntu1_all.deb ... Unpacking python3-setuptools-whl (68.1.2-2ubuntu1) ... Selecting previously unselected package python3.12-venv. Preparing to unpack .../5-python3.12-venv_3.12.3-1ubuntu0.1_amd64.deb ... Unpacking python3.12-venv (3.12.3-1ubuntu0.1) ... Selecting previously unselected package python3-venv. Preparing to unpack .../6-python3-venv_3.12.3-0ubuntu2_amd64.deb ... Unpacking python3-venv (3.12.3-0ubuntu2) ... Selecting previously unselected package python3-wheel-whl. Preparing to unpack .../7-python3-wheel-whl_0.42.0-2_all.deb ... Unpacking python3-wheel-whl (0.42.0-2) ... Selecting previously unselected package python3-virtualenv. Preparing to unpack .../8-python3-virtualenv_20.25.0+ds-2_all.deb ... Unpacking python3-virtualenv (20.25.0+ds-2) ... Setting up python3-setuptools-whl (68.1.2-2ubuntu1) ... Setting up python3-filelock (3.13.1-1) ... Setting up python3-pip-whl (24.0+dfsg-1ubuntu1) ... Setting up python3-distlib (0.3.8-1) ... Setting up python3-platformdirs (4.2.0-1) ... Setting up python3-wheel-whl (0.42.0-2) ... Setting up python3.12-venv (3.12.3-1ubuntu0.1) ... Setting up python3-virtualenv (20.25.0+ds-2) ... Setting up python3-venv (3.12.3-0ubuntu2) ... Processing triggers for man-db (2.12.0-4build2) ... ----------Creating Virtual Environment for Open Freeze Center---------- ----------Virtual Environment for Open Freeze Center created---------- ----------Installing PyGObject---------- Collecting PyGObject Downloading pygobject-3.48.2.tar.gz (715 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 715.2/715.2 kB 5.6 MB/s eta 0:00:00 Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [52 lines of output] Collecting meson-python>=0.12.1 Downloading meson_python-0.16.0-py3-none-any.whl.metadata (4.1 kB) Collecting pycairo>=1.16 Downloading pycairo-1.26.1.tar.gz (346 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 346.9/346.9 kB 4.2 MB/s eta 0:00:00 Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting meson>=1.2.3 (from meson-python>=0.12.1) Downloading meson-1.5.1-py3-none-any.whl.metadata (1.8 kB) Collecting packaging>=19.0 (from meson-python>=0.12.1) Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB) Collecting pyproject-metadata>=0.7.1 (from meson-python>=0.12.1) Downloading pyproject_metadata-0.8.0-py3-none-any.whl.metadata (3.0 kB) Downloading meson_python-0.16.0-py3-none-any.whl (26 kB) Downloading meson-1.5.1-py3-none-any.whl (966 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 966.9/966.9 kB 7.1 MB/s eta 0:00:00 Downloading packaging-24.1-py3-none-any.whl (53 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 kB 3.5 MB/s eta 0:00:00 Downloading pyproject_metadata-0.8.0-py3-none-any.whl (7.5 kB) Building wheels for collected packages: pycairo Building wheel for pycairo (pyproject.toml): started Building wheel for pycairo (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

    × Building wheel for pycairo (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [15 lines of output]
        running bdist_wheel
        running build
        running build_py
        creating build
        creating build/lib.linux-x86_64-cpython-312
        creating build/lib.linux-x86_64-cpython-312/cairo
        copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-312/cairo
        copying cairo/__init__.pyi -> build/lib.linux-x86_64-cpython-312/cairo
        copying cairo/py.typed -> build/lib.linux-x86_64-cpython-312/cairo
        running build_ext
        Package cairo was not found in the pkg-config search path.
        Perhaps you should add the directory containing `cairo.pc'
        to the PKG_CONFIG_PATH environment variable
        Package 'cairo', required by 'virtual:world', not found
        Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
        [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. ----------Installing PyCairo---------- Collecting pycairo Using cached pycairo-1.26.1.tar.gz (346 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: pycairo Building wheel for pycairo (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for pycairo (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-312 creating build/lib.linux-x86_64-cpython-312/cairo copying cairo/init.py -> build/lib.linux-x86_64-cpython-312/cairo copying cairo/init.pyi -> build/lib.linux-x86_64-cpython-312/cairo copying cairo/py.typed -> build/lib.linux-x86_64-cpython-312/cairo running build_ext Package cairo was not found in the pkg-config search path. Perhaps you should add the directory containing `cairo.pc' to the PKG_CONFIG_PATH environment variable Package 'cairo', required by 'virtual:world', not found Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pycairo Failed to build pycairo ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects ----------Installing Expert---------- Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: tcl-expect Suggested packages: tk8.6 The following NEW packages will be installed: expect tcl-expect 0 upgraded, 2 newly installed, 0 to remove and 6 not upgraded. Need to get 247 kB of archives. After this operation, 538 kB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 tcl-expect amd64 5.45.4-3 [110 kB] Get:2 http://be.archive.ubuntu.com/ubuntu noble/universe amd64 expect amd64 5.45.4-3 [137 kB] Fetched 247 kB in 1s (325 kB/s) Selecting previously unselected package tcl-expect:amd64. (Reading database ... 190212 files and directories currently installed.) Preparing to unpack .../tcl-expect_5.45.4-3_amd64.deb ... Unpacking tcl-expect:amd64 (5.45.4-3) ... Selecting previously unselected package expect. Preparing to unpack .../expect_5.45.4-3_amd64.deb ... Unpacking expect (5.45.4-3) ... Setting up tcl-expect:amd64 (5.45.4-3) ... Setting up expect (5.45.4-3) ... Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for libc-bin (2.39-0ubuntu8.3) ... ----------Moving files to virtual environment---------- cp: cannot stat '/home/marburg/Downloads/OpenFreezeCenter-5/install.sh': No such file or directory cp: cannot stat '/home/marburg/Downloads/OpenFreezeCenter-5/file_1.sh': No such file or directory cp: cannot stat '/home/marburg/Downloads/OpenFreezeCenter-5/file_2.sh': No such file or directory cp: cannot stat '/home/marburg/Downloads/OpenFreezeCenter-5/OFC.py': No such file or directory cp: cannot stat '/home/marburg/Downloads/OpenFreezeCenter-5/README.md': No such file or directory cp: cannot stat '/home/marburg/Downloads/OpenFreezeCenter-5/LICENSE': No such file or directory ----------Prepairing system for EC read/write---------- sudo: ./file_1.sh: command not found ----------Prepairing system for EC read/write---------- sudo: ./file_2.sh: command not found ----------EC read/write is enabled---------- ----------Running Software---------- nohup: ignoring input and appending output to 'nohup.out'

Navanit-git commented 3 weeks ago

Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for libc-bin (2.39-0ubuntu8.3) ... ----------Moving files to virtual environment---------- cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/install.sh': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/file_1.sh': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/file_2.sh': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/OFC.py': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/README.md': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/LICENSE': No such file or directory ----------Prepairing system for EC read/write---------- sudo: ./file_1.sh: command not found ----------Prepairing system for EC read/write---------- sudo: ./file_2.sh: command not found ----------EC read/write is enabled---------- ----------Running Software---------- nohup: ignoring input and appending output to 'nohup.out'

Getting same error @YoCodingMonster can you kindly check if possible ?

Wy477-P commented 3 weeks ago

Processing triggers for man-db (2.12.0-4build2) ... Processing triggers for libc-bin (2.39-0ubuntu8.3) ... ----------Moving files to virtual environment---------- cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/install.sh': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/file_1.sh': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/file_2.sh': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/OFC.py': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/README.md': No such file or directory cp: cannot stat '/home/navanit/Downloads/OpenFreezeCenter-5/LICENSE': No such file or directory ----------Prepairing system for EC read/write---------- sudo: ./file_1.sh: command not found ----------Prepairing system for EC read/write---------- sudo: ./file_2.sh: command not found ----------EC read/write is enabled---------- ----------Running Software---------- nohup: ignoring input and appending output to 'nohup.out'

Getting same error @YoCodingMonster can you kindly check if possible ?

I believe to fix this you could try installing the whole zip file in the release, then running the install.sh from inside the extracted folder alongside everything else. It seems to only want to work when you have the exact folder and files from the release zip. I had a similar issue and was able to get around it that way.