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

Installation failed/incomplete #805

Closed
CaffineAddic opened this issue Jan 13, 2025 · 10 comments
Closed

Installation failed/incomplete #805

CaffineAddic opened this issue Jan 13, 2025 · 10 comments

Comments

@CaffineAddic
Copy link
Contributor

CaffineAddic commented Jan 13, 2025

Fill out information requested in this template, without doing so issue will be ignored & closed!

Have you tried?

Error output:

sudo ./auto-cpufreq-installer
[sudo] password for root: 

─────────────────────────── auto-cpufreq installer ───────────────────────────

Welcome to auto-cpufreq tool installer.

Select a key [I]nstall/[R]emove or press ctrl+c to quit: i 


─────────────────────── Detected OpenSUSE distribution ───────────────────────


──────────────────────── Setting up Python environment ────────────────────────

Loading repository data...
Reading installed packages...
'gtk3' not found in package names. Trying capabilities.
'libgtk-3-0' providing 'gtk3' is already installed.
'gcc' is already installed.
No update candidate for 'gcc-14-2.2.x86_64'. The highest available version is already installed.
'python3-devel' not found in package names. Trying capabilities.
'python311-devel' providing 'python3-devel' is already installed.
'python3-pip' is already installed.
No update candidate for 'python3-pip-20.0.2-22.9.noarch'. The highest available version is already installed.
'python38' not found in package names. Trying capabilities.
No provider of 'python38' found.
'python3-cairo-devel' not found in package names. Trying capabilities.
'dmidecode' is already installed.
No update candidate for 'dmidecode-3.6-2.2.x86_64'. The highest available version is already installed.

──────────────────── Installing necessary Python packages ────────────────────

Requirement already satisfied: pip in /opt/auto-cpufreq/venv/lib64/python3.11/site-packages (24.3.1)
Requirement already satisfied: wheel in /opt/auto-cpufreq/venv/lib64/python3.11/site-packages (0.45.1)

──────────────────────── Installing auto-cpufreq tool ────────────────────────

Processing /home/saumya/Pictures/auto-cpufreq
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyinotify@ git+https://github.com/shadeyg56/pyinotify-3.12 (from auto-cpufreq==2.5.0+c0d9ec5)
  Cloning https://github.com/shadeyg56/pyinotify-3.12 to /tmp/pip-install-88ufeouy/pyinotify_61e8bff66ccb47baa656dcfb6863eeed
  Running command git clone --filter=blob:none --quiet https://github.com/shadeyg56/pyinotify-3.12 /tmp/pip-install-88ufeouy/pyinotify_61e8bff66ccb47baa656dcfb6863eeed
  Resolved https://github.com/shadeyg56/pyinotify-3.12 to commit 271b7aba3269116b6c3870355393f47c79bce146
  Preparing metadata (setup.py) ... done
Collecting PyGObject<4.0.0,>=3.46.0 (from auto-cpufreq==2.5.0+c0d9ec5)
  Using cached pygobject-3.50.0.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      + meson setup /tmp/pip-install-88ufeouy/pygobject_a90632ecf88844e499fd61914e56840c /tmp/pip-install-88ufeouy/pygobject_a90632ecf88844e499fd61914e56840c/.mesonpy-5qq4xy82 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md -Dtests=false -Dwheel=true --wrap-mode=nofallback --native-file=/tmp/pip-install-88ufeouy/pygobject_a90632ecf88844e499fd61914e56840c/.mesonpy-5qq4xy82/meson-python-native-file.ini
      The Meson build system
      Version: 1.6.1
      Source dir: /tmp/pip-install-88ufeouy/pygobject_a90632ecf88844e499fd61914e56840c
      Build dir: /tmp/pip-install-88ufeouy/pygobject_a90632ecf88844e499fd61914e56840c/.mesonpy-5qq4xy82
      Build type: native build
      Project name: pygobject
      Project version: 3.50.0
      C compiler for the host machine: cc (gcc 14.2.1 "cc (SUSE Linux) 14.2.1 20241007 [revision 4af44f2cf7d281f3e4f3957efce10e8b2ccb2ad3]")
      C linker for the host machine: cc ld.bfd 2.43.1.20241209-4
      Host machine cpu family: x86_64
      Host machine cpu: x86_64
      Program python3 found: YES (/opt/auto-cpufreq/venv/bin/python)
      Found pkg-config: YES (/usr/bin/pkg-config) 2.2.0
      Run-time dependency python found: YES 3.11
      Found CMake: /usr/bin/cmake (3.31.2)
      Run-time dependency gobject-introspection-1.0 found: NO (tried pkgconfig and cmake)
      Not looking for a fallback subproject for the dependency gobject-introspection-1.0 because:
      Use of fallback dependencies is disabled.
      
      ../meson.build:31:9: ERROR: Dependency 'gobject-introspection-1.0' is required but not found.
      
      A full log can be found at /tmp/pip-install-88ufeouy/pygobject_a90632ecf88844e499fd61914e56840c/.mesonpy-5qq4xy82/meson-logs/meson-log.txt
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

────────────────── auto-cpufreq tool successfully installed ──────────────────

For list of options, run:
auto-cpufreq --help

auto-cpufreq
/opt/auto-cpufreq/venv/bin/python: can't open file '/opt/auto-cpufreq/venv/bin/auto-cpufreq': [Errno 2] No such file or directory


System information:

image

/opt/auto-cpufreq/venv/bin/python: can't open file '/opt/auto-cpufreq/venv/bin/auto-cpufreq': [Errno 2] No such file or directory

Also please be descriptive about the issue you're reporting, i.e: what you tried & what's the expected behaviour.

Expected it to be installed, not installed

@CaffineAddic
Copy link
Contributor Author

Sorry I don't like snaps at all, just if it's possible
Is there a way to fix it

@nnbyte
Copy link

nnbyte commented Jan 14, 2025

I have the same issue "'python38' not found in package names". I am using openSUSE Tumbleweed and all python libraries are >= v3.10

@AdnanHodzic
Copy link
Owner

Well that's the problem, in this code block line:

      opensuse-leap)
        detected_distro "OpenSUSE"
        zypper install -y python3 python3-pip python3-setuptools python3-devel gcc dmidecode gobject-introspection-devel python3-cairo-devel gtk3 gtk3-devel
      ;;
      opensuse-tumbleweed)
        detected_distro "OpenSUSE"
        zypper install -y python38 python3-pip python3-setuptools python3-devel gcc dmidecode gobject-introspection-devel python3-cairo-devel gtk3 gtk3-devel
      ;;

Every mention of python38 should be updated to latest python version for Suse (*seems like it's just python3). As now it's trying to install old Python version that's not even there.

Update this string and give it a try, make these changes and re-install sudo auto-cpufreq-installer --install followed by sudo auto-cpufreq --install and it should all work fine. If it all works as expected please create a PR and (contribute to the project and you will be credited for your work as part of future release.

@CaffineAddic
Copy link
Contributor Author

Updated line changes in this code block line:

case $ID in
opensuse-leap)
detected_distro "OpenSUSE"
zypper install -y python3 python3-pip python311-setuptools python3-devel gcc dmidecode gobject-introspection-devel python3-cairo-devel gtk3 gtk3-devel
;;
opensuse-tumbleweed)
detected_distro "OpenSUSE"
zypper install -y python3 python3-pip python311-setuptools python3-devel gcc dmidecode gobject-introspection-devel python3-cairo-devel gtk3 gtk3-devel
;;
void)

  The following changes had to be made, in the line opensuse-tumbleweed
  
 There was python38 updating it to python3 & also python3-setuptools were being mapped to some older version of the utility causing the install to fail updating it to python311-setuptools fixed it.

@AdnanHodzic
Copy link
Owner

AdnanHodzic commented Jan 15, 2025

@CaffineAddic Good to hear, as I said

please create a PR and contribute to the project and you will be credited for your work as part of future release.

and so we have these changes in auto-cpufreq main branch.

@CaffineAddic
Copy link
Contributor Author

I have created the PR, awaiting your approval, Thanks for the support @AdnanHodzic

Love your project

@nnbyte you can use this repo to install until the changes are reflected in the new version https://github.com/CaffineAddic/auto-cpufreq-fixedInstallerForOpenSUSE.git

@AdnanHodzic
Copy link
Owner

AdnanHodzic commented Jan 15, 2025

I have created the PR, awaiting your approval, Thanks for the support @AdnanHodzic

@CaffineAddic made a small remark, after which changes can be merged to master branch :)

Love your project

Great to hear and spread the word :)

@nnbyte you can use this repo to install until the changes are reflected in the new version https://github.com/CaffineAddic/auto-cpufreq-fixedInstallerForOpenSUSE.git

As soon as the changes I requested in PR are made, you'll be able to get this changes as part of auto-cpufreq :)

@AdnanHodzic
Copy link
Owner

Changes in #808 have been merged and are now part of auto-cpufreq codebase.

@CaffineAddic
Copy link
Contributor Author

Thank you so much, I will try and see if I can contribute more

I love your dedication

@nnbyte
Copy link

nnbyte commented Jan 16, 2025

I can confirm it works! Thanks so much for your quick response/resolution!

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

No branches or pull requests

3 participants