[MapProxy] Installation problem
Oliver Tonnhofer
olt at bogosoft.com
Mon Mar 29 08:02:59 EDT 2010
Hi Jean-Claude,
On 29.03.2010, at 12:38, Jean-Claude Repetto wrote:
> Running setup.py egg_info for package PyYAML
> Traceback (most recent call last):
> File "<string>", line 14, in <module>
> File "/root/venv/mapproxy/build/PyYAML/setup.py", line 253, in
> <module>
> libraries=['yaml']),
> File "/root/venv/mapproxy/build/PyYAML/setup.py", line 102, in
> __init__
> _Extension.__init__(self, name, sources, **kwds)
> File "/usr/lib/python2.6/site-packages/Pyrex/Distutils/
> extension.py", line 69, in __init__
> **kw)
> TypeError: unbound method __init__() must be called with
> Extension instance as first argument (got Extension instance instead)
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
>
> File "<string>", line 14, in <module>
>
> File "/root/venv/mapproxy/build/PyYAML/setup.py", line 253, in
> <module>
>
> libraries=['yaml']),
>
> File "/root/venv/mapproxy/build/PyYAML/setup.py", line 102, in
> __init__
>
> _Extension.__init__(self, name, sources, **kwds)
>
> File "/usr/lib/python2.6/site-packages/Pyrex/Distutils/
> extension.py", line 69, in __init__
>
> **kw)
>
> TypeError: unbound method __init__() must be called with Extension
> instance as first argument (got Extension instance instead)
hmmm, seams to be a problem building PyYAML. PyYAML uses Pyrex to
create some C-code and it fails in your case. Can you uninstall pyrex?
PyYAML already contains a copy of the C-code and should build then.
You also can create a virtualenv that does not uses any globally
installed packages:
python virtualenv.py --distribute --no-site-packages ~/venv/mapproxy
Regards,
Oliver
--
Oliver Tonnhofer <olt at omniscale.de>
Omniscale - Dominik Helle, Oliver Tonnhofer GbR
Nadorster Str. 60, 26123 Oldenburg
Tel: +49(0)441/9392774-2 (Fax: 9)
More information about the MapProxy
mailing list