[MapProxy] Install problem

DeDuikertjes DeDuikertjes at xs4all.nl
Sun May 2 11:02:26 EDT 2010


That's what I tried:

 /usr/bin/python2.6 virtualenv.py --distribute /var/lib/mapproxy

but alas:

/usr/bin/python2.6 virtualenv.py --distribute /var/lib/mapproxy
Traceback (most recent call last):
  File "virtualenv.py", line 1475, in <module>
  File "virtualenv.py", line 528, in main
  File "virtualenv.py", line 611, in create_environment
    site_packages=site_packages, clear=clear))
  File "virtualenv.py", line 674, in install_python
  File "virtualenv.py", line 890, in fix_lib64
    if [p for p in distutils.sysconfig.get_config_vars().values()
  File "/usr/lib/python2.6/distutils/sysconfig.py", line 514, in 
  File "/usr/lib/python2.6/distutils/sysconfig.py", line 371, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: 
unable to open /usr/lib/python2.6/config/Makefile (No such file or 

I did install distutils but the directory /usr/lib/python2.6/config/ is 
I cannot get that one repaired.

So that's why I tried skipping the virtual environment and work with 
easy_install and pip directly. Both these are missing from my python2.6 
installation as well. I've not a clue how to repair these issues



Oliver Tonnhofer schreef:
> On 02.05.2010, at 15:07, DeDuikertjes wrote:
>> Indeed that was the problem.
>> Cause of yum I can't replace python2.4 by 2.6.
>> I've added 2.6 from a repo as python26; but  I can't get easy_install and pip installed in it.
> But you've got a `python26` binary that you can call?
> Then you should be able to follow the instructions from http://mapproxy.org/docs/latest/install.html
> You just have to replace `python` with `python26`.
> python virtualenv.py --distribute ~/venv/mapproxy
> change to:
> python26 virtualenv.py --distribute ~/venv/mapproxy
> After you have activated the virtualenv, `python` should point to Python 2.6 without affecting your system installation.
> Regards,
> Oliver

More information about the MapProxy mailing list