Need to install Python3 setuptools module

Hi,

I need to install that package to be able to compile my own OpenWrt build, but everytime I try, it does not work. I tried with rpm and yast.

Checking 'python3-dev'... ok.
Checking 'python3-setuptools'... failed.
Checking 'swig'... ok.

u-boot: Please install the Python3 setuptools module

Even if I choose to install anyway, it completes with success, but still the same error during my OpenWrt compilation…

Is your system up-to-date? I have python311-setuptools 75.6.0-3.1 installed fine. What is your python version?

1 Like

Python 3.11.11

Also, as you can see on my printscreen, I choose option 2 to install, but , as I said, it seems ok but still not installed.

You need to check your repos. You are installing packages from some arbitrary repos. The actual and official package version in Tumbleweed is python311-setuptools-75.6.0-3.1 (and/or python312-setuptools-75.6.0-3.1)

You have python3-setuptools-46.1.3-3.57. So something is not right on your system.

Mixing python packages from different vendors and versions most likely won’t lead to success.

1 Like

I took it from here

https://software.opensuse.org/package/python3-setuptools

You can install python311-setuptools if you use python 3.11.

1 Like

The repo from user pascom is a home repo which ships an heavily outdated, over 4 years old package. Instead of using software.opensuse.org, you should ALWAYS search first if a package is available in the standard repos. This can be done via zypper se or via “YaST Software”.

1 Like

ok, but, it is a fresh install except I added pacman repo,

Your repo list tells otherwise. Home repositories don’t add themself. You have two additional home repositories (GeeLeonidas and pascom) which were added by you.

1 Like

how to clean up that ?
to restart clean, thanks

You need to remove the arbitrary repositories and perform a zypper dup --allow-vendor-change afterwards to switch back the packages to the official repos.

You can remove the repos via “YaST”-> “Software repositories” or via zypper rr. As you only provided a screenshot instead of the terminal output, i can’t tell you the repository numbers to remove. But in your picture it is the 2nd to 5th repo from top which needs to be removed.

1 Like
/etc/zypp/repos.d> ls
https-download.opensuse.org-029806c7.repo  openSUSE:repo-openh264.repo      repo-non-oss.repo.rpmsave
https-download.opensuse.org-09b7cee5.repo  openSUSE:repo-oss-debug.repo     repo-openh264.repo.rpmsave
https-download.opensuse.org-9accc3c7.repo  openSUSE:repo-oss.repo           repo-oss.repo.rpmsave
https-download.opensuse.org-edeb19c3.repo  openSUSE:repo-oss-source.repo    repo-source.repo.rpmsave
NVIDIA:repo-non-free.repo                  openSUSE:update-tumbleweed.repo  repo-update.repo.rpmsave
openSUSE-*-0.repo.rpmsave                  packman.repo
openSUSE:repo-non-oss.repo                 repo-debug.repo.rpmsave

still

Checking 'python3-dev'... ok.
Checking 'python3-setuptools'... failed.
Checking 'swig'... ok.

u-boot: Please install the Python3 setuptools module

I use ubuntu, debian, mint, arch and never had problem to compile OpenWrt and / or problem with python3-setuptools

@james80 And your point with that comment? If you the Admin of the system add arbitrary $HOME/Community repositories without understanding the implications, it’s the operating systems problem?

Quite clear in the output that it’s looking for python 3.8, what are you trying to compile, does it support the current Tumbleweed python version (assuming you have it configured for the default)?

1 Like

You need python311-setuptools.

1 Like

no offense, I just wanted to say that usually it is working well right away.

I compile a router’s firmware.

https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem
https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem#opensuse

and as you can see here, I got that problem about python, but I’ve installed python311

Checking 'python3-dev'... ok.
Checking 'python3-setuptools'... failed.
Checking 'swig'... ok.

u-boot: Please install the Python3 setuptools module
'python311-setuptools' is already installed.
No update candidate for 'python311-setuptools-75.6.0-3.1.noarch'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.

@james80 what about zypper se -si python*-setup*

@james80 It’s this bit of code;

Edit (include/u-boot.mk):

$(eval $(call TestHostCommand,python3-setuptools, \
    Please install the Python3 setuptools module, \
    $(STAGING_DIR_HOST)/bin/python3 -c 'import setuptools'))