1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #156 resolved

Can't install with --user if already installed system-wide

Nikolaus Rath
created an issue

I would like to use a more recent distribute version without touching the version installed by the system's package manager. However, installing distribute with --user fails:

{{{ $ python setup.py install --user Before install bootstrap. Scanning installed packages Setuptools installation detected at /usr/lib/python2.6/dist-packages Non-egg installation Removing elements out of the way... Renaming /usr/lib/python2.6/dist-packages/setuptools.egg-info into /usr/lib/python2.6/dist-packages/setuptools.egg-info.OLD.1273607329.29 Traceback (most recent call last): File "setup.py", line 91, in <module> _before_install() File "/home/nikratio/projekte/s3ql/distribute-0.6.12/distribute_setup.py", line 347, in _before_install _fake_setuptools() File "/home/nikratio/projekte/s3ql/distribute-0.6.12/distribute_setup.py", line 401, in _fake_setuptools res = _remove_flat_installation(setuptools_location) File "/home/nikratio/projekte/s3ql/distribute-0.6.12/distribute_setup.py", line 222, in no_sandbox return function(args, *kw) File "/home/nikratio/projekte/s3ql/distribute-0.6.12/distribute_setup.py", line 274, in _remove_flat_installation patched = _patch_egg_dir(pkg_info) File "/home/nikratio/projekte/s3ql/distribute-0.6.12/distribute_setup.py", line 222, in no_sandbox return function(args, *kw) File "/home/nikratio/projekte/s3ql/distribute-0.6.12/distribute_setup.py", line 333, in _patch_egg_dir _rename_path(path) File "/home/nikratio/projekte/s3ql/distribute-0.6.12/distribute_setup.py", line 254, in _rename_path os.rename(path, new_name) OSError: [Errno 13] Permission denied


I think this really ought to work. There is not much point to --user, if I still need root rights to first remove other packages...

Comments (3)

  1. Tarek Ziadé repo owner

    Yes this is a bug, it should not try to interact with the global installation. Maybe that's because of the specific debian/ubuntu layout. what version are you trying to install ?

  2. Log in to comment