You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UserWarning: Distutils was imported before Setuptools #3650
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$ python3 --version
Python 3.10.12
$ pipx install renku
installed package renku 2.7.0, installed using Python 3.10.12
These apps are now globally available
- renku
done!
$
$
$ renku --version
/home/beeravol/.local/pipx/shared/lib/python3.10/site-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
warnings.warn(
/home/beeravol/.local/pipx/shared/lib/python3.10/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
2.7.0
i think you just need to update setuptools pip install --upgrade setuptools. unfortunately, pipx keeps its own internal cache of dependencies, so you might need to use pipx runpip ... instead.
renku itself does no depend on/use setuptools, though some of its dependencies do
@Panaetius : pip install --upgrade setuptools gives the following output.
$ pip install --upgrade setuptools
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (59.6.0)
Collecting setuptools
Downloading setuptools-69.0.2-py3-none-any.whl (819 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 819.5/819.5 KB 1.2 MB/s eta 0:00:00
Installing collected packages: setuptools
Successfully installed setuptools-69.0.2
$
$ renku session ls
/home/champost/.local/pipx/shared/lib/python3.10/site-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
warnings.warn(
/home/champost/.local/pipx/shared/lib/python3.10/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
Warning: Cannot get sessions list from 'renkulab': Please run the renku login command to authenticate with Renku.
Activity
Panaetius commentedon Nov 28, 2023
i think you just need to update setuptools
pip install --upgrade setuptools. unfortunately, pipx keeps its own internal cache of dependencies, so you might need to usepipx runpip ...instead.renku itself does no depend on/use setuptools, though some of its dependencies do
champost commentedon Nov 28, 2023
@Panaetius :
pip install --upgrade setuptoolsgives the following output.If
pipxis a recommended way for installing the Renku CLI I think we need to make sure it is a seamless experience for users (at least on a clean install of Linux) and give them all the required information on https://renku.readthedocs.io