Originally reported by: gpjt (Bitbucket: gpjt, GitHub: gpjt)
As of 12.0.2, installing to a non-writeable directory (eg. easy_install foo without sudo or the --user flag) gives the following error:
#!python
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 486, in cant_write_to_target
msg = self._cant_write_msg % (sys.exc_info()[1], self.install_dir,)
File "/usr/lib/python2.7/distutils/cmd.py", line 105, in __getattr__
raise AttributeError, attr
AttributeError: _cant_write_msg
The problem appears to be commit 3e99647 ("Extract messages as class attributes for nicer indentation") where the error message was extracted to the class variable
__cant_write_msg (two underscores) but the function cant_write_to_target looks it up using self._cant_write_msg (one underscore).
The other error messages (__not_exists_id, __not_exists_id) are OK so this is a single-character fix :-)
Originally reported by: gpjt (Bitbucket: gpjt, GitHub: gpjt)
As of 12.0.2, installing to a non-writeable directory (eg.
easy_install foowithout sudo or the --user flag) gives the following error:The problem appears to be commit 3e99647 ("Extract messages as class attributes for nicer indentation") where the error message was extracted to the class variable
__cant_write_msg(two underscores) but the functioncant_write_to_targetlooks it up usingself._cant_write_msg(one underscore).The other error messages (
__not_exists_id,__not_exists_id) are OK so this is a single-character fix :-)