SLES15 SP4 | python310-setuptool (setuptool == 67.6.1) doesn't package easy_install #4188
-
I am using SLES 15 SP4 EC2 instance. I installed python3.10 on the instance and as you can the python310-setuptools is also installed. py310-sle:~/boost_1_65_0 # sudo zypper install python310
Refreshing service 'Basesystem_Module_x86_64'.
Refreshing service 'Containers_Module_x86_64'.
Refreshing service 'Desktop_Applications_Module_x86_64'.
Refreshing service 'Development_Tools_Module_x86_64'.
Refreshing service 'Legacy_Module_x86_64'.
Refreshing service 'Public_Cloud_Module_x86_64'.
Refreshing service 'Python_3_Module_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_x86_64'.
Refreshing service 'Server_Applications_Module_x86_64'.
Refreshing service 'Web_and_Scripting_Module_x86_64'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 4 recommended packages were automatically selected:
python310 python310-curses python310-dbm python310-pip
The following 8 NEW packages are going to be installed:
libpython3_10-1_0 python310 python310-base python310-curses python310-dbm python310-pip python310-setuptools shared-python-startup
8 new packages to install.
Overall download size: 14.9 MiB. Already cached: 0 B. After the operation, additional 60.8 MiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package shared-python-startup-0.1-1.5.1.noarch (1/8), 13.1 KiB ( 13.5 KiB unpacked)
Retrieving: shared-python-startup-0.1-1.5.1.noarch.rpm ........................................................................................................................................................................................[done]
Retrieving package libpython3_10-1_0-3.10.13-150400.4.36.1.x86_64 (2/8), 1.5 MiB ( 3.7 MiB unpacked)
Retrieving: libpython3_10-1_0-3.10.13-150400.4.36.1.x86_64.rpm ................................................................................................................................................................................[done]
Retrieving package python310-base-3.10.13-150400.4.36.1.x86_64 (3/8), 9.0 MiB ( 33.2 MiB unpacked)
Retrieving: python310-base-3.10.13-150400.4.36.1.x86_64.rpm ...................................................................................................................................................................................[done]
Retrieving package python310-setuptools-67.6.1-150400.4.6.1.noarch (4/8), 1.2 MiB ( 7.1 MiB unpacked)
Retrieving: python310-setuptools-67.6.1-150400.4.6.1.noarch.rpm ...............................................................................................................................................................................[done]
Retrieving package python310-pip-22.0.4-150400.3.3.1.noarch (5/8), 2.7 MiB ( 16.3 MiB unpacked)
Retrieving: python310-pip-22.0.4-150400.3.3.1.noarch.rpm ......................................................................................................................................................................................[done]
Retrieving package python310-3.10.13-150400.4.36.1.x86_64 (6/8), 203.0 KiB (184.7 KiB unpacked)
Retrieving: python310-3.10.13-150400.4.36.1.x86_64.rpm ...........................................................................................................................................................................[done (15.7 KiB/s)]
Retrieving package python310-curses-3.10.13-150400.4.36.1.x86_64 (7/8), 191.6 KiB (185.3 KiB unpacked)
Retrieving: python310-curses-3.10.13-150400.4.36.1.x86_64.rpm .................................................................................................................................................................................[done]
Retrieving package python310-dbm-3.10.13-150400.4.36.1.x86_64 (8/8), 163.2 KiB ( 80.8 KiB unpacked)
Retrieving: python310-dbm-3.10.13-150400.4.36.1.x86_64.rpm ....................................................................................................................................................................................[done]
Checking for file conflicts: ..................................................................................................................................................................................................................[done]
(1/8) Installing: shared-python-startup-0.1-1.5.1.noarch ......................................................................................................................................................................................[done]
(2/8) Installing: libpython3_10-1_0-3.10.13-150400.4.36.1.x86_64 ..............................................................................................................................................................................[done]
(3/8) Installing: python310-base-3.10.13-150400.4.36.1.x86_64 .................................................................................................................................................................................[done]
(4/8) Installing: python310-setuptools-67.6.1-150400.4.6.1.noarch .............................................................................................................................................................................[done]
(5/8) Installing: python310-pip-22.0.4-150400.3.3.1.noarch ....................................................................................................................................................................................[done]
(6/8) Installing: python310-3.10.13-150400.4.36.1.x86_64 ......................................................................................................................................................................................[done]
(7/8) Installing: python310-curses-3.10.13-150400.4.36.1.x86_64 ...............................................................................................................................................................................[done]
(8/8) Installing: python310-dbm-3.10.13-150400.4.36.1.x86_64 ..................................................................................................................................................................................[done]
py310-sle:~/boost_1_65_0 # sudo zypper install python310-devel
Refreshing service 'Basesystem_Module_x86_64'.
Refreshing service 'Containers_Module_x86_64'.
Refreshing service 'Desktop_Applications_Module_x86_64'.
Refreshing service 'Development_Tools_Module_x86_64'.
Refreshing service 'Legacy_Module_x86_64'.
Refreshing service 'Public_Cloud_Module_x86_64'.
Refreshing service 'Python_3_Module_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_x86_64'.
Refreshing service 'Server_Applications_Module_x86_64'.
Refreshing service 'Web_and_Scripting_Module_x86_64'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW package is going to be installed:
python310-devel
1 new package to install.
Overall download size: 366.2 KiB. Already cached: 0 B. After the operation, additional 942.9 KiB will be used.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package python310-devel-3.10.13-150400.4.36.1.x86_64 (1/1), 366.2 KiB (942.9 KiB unpacked)
Retrieving: python310-devel-3.10.13-150400.4.36.1.x86_64.rpm ..................................................................................................................................................................................[done]
Checking for file conflicts: ..................................................................................................................................................................................................................[done]
(1/1) Installing: python310-devel-3.10.13-150400.4.36.1.x86_64 ................................................................................................................................................................................[done] However, I see that I'm unable to import easy_install py310-sle:~ # python3.10
Python 3.10.13 (main, Sep 05 2023, 11:46:10) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import easy_install
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'easy_install'
>>> I thought that easy_install usually comes with setuptools. This is the version that is installed
I also have python3.6 interpretor running on the instance. But here the easy_install is present py310-sle:~ # python3.6
Python 3.6.15 (default, Sep 23 2021, 15:41:43) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import easy_install
>>> The reason I need easy_install is because I am building libtorrent 1.1.5's python bindings using boost 1.65.0 and python3.10.
As a result the easy_install.pth file present in the
I've built the libtorrent binding using other python version (3.8, 3.9) and I've never seen this issue. Is this happening because easy_install is not present? If yes, When did the easy_install package stopped shipping with setuptools? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @abhishek-das-gupta , The alternative is to use wheels with |
Beta Was this translation helpful? Give feedback.
Hi @abhishek-das-gupta ,
easy_install
has been long deprecatedl. It was removed as a top-level module since version 52 (see https://setuptools.pypa.io/en/latest/history.html#v52-0-0).The alternative is to use wheels with
pip
or editable installs withpip install -e
from inside the directory that containssetup.py
. If that does not work for you, you probably have to use an older version of setuptools or contact the software developers, asking them how you can install their software in your system.