Kde-builder's initial_setup.sh fails to install python packages in OpenSuse tumbleweed

Hi, I am trying to setup kde-builder on my OpenSuse tumbleweed and i am following the documentation [(kde-builder documentation)].

Now, after
curl 'https://invent.kde.org/sdk/kde-builder/-/raw/master/scripts/initial_setup.sh?ref_type=heads' > initial_setup.sh
when i try bash initial_setup.sh

I get the following error

tarun@localhost:~> bash initial_setup.sh
Your distro ID: opensuse-tumbleweed
Installing runtime packages
+ sudo zypper refresh
[sudo] password for root: 
Repository 'openSUSE-20250219-0' is up to date.                                                               
Repository 'Open H.264 Codec (openSUSE Tumbleweed)' is up to date.                                            
All repositories have been refreshed.
+ sudo zypper install git python311-pyaml python311-setproctitle
Loading repository data...
Reading installed packages...
Package 'python311-pyaml' not found.
Package 'python311-setproctitle' not found.
'git' is already installed.
No update candidate for 'git-2.48.1-1.1.x86_64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
++ err_report
+++ caller
++ echo -e '\033[0;31mExited on error at line 46 initial_setup.sh.\033[0m'
Exited on error at line 46 initial_setup.sh.
Exited on error at line 46 initial_setup.sh.

for the following part of generated initial_setup.sh

So, how can i setup kde-builder now? Also sudo zypper python311-<package-name> does not work for any python package.

Can someone please help me out here?

Try a to replace python311 with a newer version in the script.
python311 is for python 3.11.

The script probably isn’t up-to-date to the latest python version used by the distro.
Try replacing those with:

python312-pyaml python312-setproctitle

If this works please open a MR for kde-builder to let others not have to fix it again.

replacing it with python312 would also not work because

  1. sudo zypper python312 is not a provided by package manager. So i cannot install latest python version.
  2. python version used by my distro is Python 3.11.11

Maybe python-PyYAML

And python3-setproctitle

I am not a tumbleweed user (and never have been).
My guess is as good as yours:

Turns out that python311-setproctitle is not released for suse tumbleweed.
Maybe i should put a bug report to kde-builder or opensuse.

It is. It’s aliased to python3-setproctitle too.

It should. There’s something else happening here.

What’s the output of sudo zypper repos --details?

tarun@localhost:~> sudo zypper repos --details
[sudo] password for root: 
# | Alias                            | Name                                   | Enabled | GPG Check | Refresh | Keep | Priority | Type   | URI                                                       | Service
--+----------------------------------+----------------------------------------+---------+-----------+---------+------+----------+--------+-----------------------------------------------------------+--------
1 | download.opensuse.org-non-oss    | Main Repository (NON-OSS)              | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/tumbleweed/repo/non-oss/     | 
2 | download.opensuse.org-oss        | Main Repository (OSS)                  | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/tumbleweed/repo/oss/         | 
3 | download.opensuse.org-tumbleweed | Main Update Repository                 | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/update/tumbleweed/           | 
4 | openSUSE-20250219-0              | openSUSE-20250219-0                    | Yes     | (r ) Yes  | No      | -    |   99     | rpm-md | cd:/?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376 | 
5 | repo-debug                       | openSUSE-Tumbleweed-Debug              | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/debug/tumbleweed/repo/oss/   | 
6 | repo-openh264                    | Open H.264 Codec (openSUSE Tumbleweed) | Yes     | (r ) Yes  | Yes     | -    |   99     | rpm-md | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed   | 
7 | repo-source                      | openSUSE-Tumbleweed-Source             | No      | ----      | ----    | -    |   99     | N/A    | http://download.opensuse.org/source/tumbleweed/repo/oss/  |

And for this-

Yes, this statement is wrong because sudo zypper search python311 does return me a lot of python packages but python311-pyaml and python311-setproctitle is not one of them.

But it does have python311-PyYAML also python3-setproctitle is not included in package manager.

Like I suspected this is some weird local issue. The default main openSUSE repository (Main Repository (OSS)) is not enabled for some reason, so you won’t see any packages from it.

sudo zypper modifyrepo --enable 2 should do the trick. Then you refresh and install the required python packages.

2 Likes

This is the giveaway that most of your repos are not enabled. Sorry I didn’t see this thread until now.

1 Like

Thank you everyone it works now.

Last question, which all of disabled repos should i enable so that in future there is no such problem arise and is safe to enable.

for example if I want to install these packages

sudo apt-get install autoconf build-essential libavahi-client-dev \
         libgnutls28-dev libnss-mdns zlib1g-dev

But that’s for Debian?

1 Like