Description of problem: When installing pip from python-pip package, it does not work because a requirement, pkg_resources module, is not installed. # urpmi python-pip $MIRRORLIST: media/core/release/python-pip-1.2.1-1.mga3.noarch.rpm installing python-pip-1.2.1-1.mga3.noarch.rpm from /var/cache/urpmi/rpms Preparing... ############################################# 1/1: python-pip ############################################# # pip Traceback (most recent call last): File "/usr/bin/pip", line 5, in <module> from pkg_resources import load_entry_point ImportError: No module named pkg_resources # urpmi python-pkg-resources $MIRRORLIST: media/core/release/python-pkg-resources-0.6.28-6.mga3.noarch.rpm installing python-pkg-resources-0.6.28-6.mga3.noarch.rpm from /var/cache/urpmi/rpms Preparing... ############################################# 1/1: python-pkg-resources ############################################# # pip Usage: pip COMMAND [OPTIONS] You must give a command (use "pip help" to see a list of commands) Consider adding python-setuptools as a dependency as well, since it is required for pip to be able to install anything: # pip install virtualenv Exception: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 107, in main status = self.run(options, args) File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 248, in run import setuptools ImportError: No module named setuptools Storing complete log in /root/.pip/pip.log # urpmi python-setuptools To satisfy dependencies, the following packages are going to be installed: Package Version Release Arch (medium "Core Release (distrib1)") lib64python-devel 2.7.3 7.mga3 x86_64 python-setuptools 0.6.28 6.mga3 noarch 34MB of additional disk space will be used. 4.9MB of packages will be retrieved. Proceed with the installation of the 2 packages? (Y/n) y $MIRRORLIST: media/core/release/python-setuptools-0.6.28-6.mga3.noarch.rpm $MIRRORLIST: media/core/release/lib64python-devel-2.7.3-7.mga3.x86_64.rpm installing python-setuptools-0.6.28-6.mga3.noarch.rpm lib64python-devel-2.7.3-7.mga3.x86_64.rpm from /var/cache/urpmi/rpms Preparing... ############################################# 1/2: lib64python-devel ############################################# 2/2: python-setuptools ############################################# # pip install virtualenv Downloading/unpacking virtualenv Downloading virtualenv-1.8.4.tar.gz (1.9MB): 1.9MB downloaded Running setup.py egg_info for package virtualenv warning: no previously-included files matching '*' found under directory 'docs/_templates' warning: no previously-included files matching '*' found under directory 'docs/_build' Installing collected packages: virtualenv Running setup.py install for virtualenv warning: build_py: byte-compiling is disabled, skipping. warning: install_lib: byte-compiling is disabled, skipping. warning: no previously-included files matching '*' found under directory 'docs/_templates' warning: no previously-included files matching '*' found under directory 'docs/_build' Installing virtualenv script to /usr/bin Installing virtualenv-2.7 script to /usr/bin Successfully installed virtualenv Cleaning up... Version-Release number of selected component (if applicable): How reproducible: Probably always Steps to Reproduce: 1. Install python-pip on a new Mageia installation 2. Try to use pip 3. Get an error complaining about missing module (pkg_resources) 4. Install dependency (python-pkg-resources) 5. Try to install something with pip 6. Get another error complaining about missing module (setuptools) 7. Install dependency (python-setuptools) 8. Try and succeed at installing something with pip Reproducible: Steps to Reproduce:
Assignee: bugsquad => nicolas.lecureuil
fixed, thank you.
Status: NEW => RESOLVEDResolution: (none) => FIXED