On Thu, 2010-12-30 at 10:44 -0800, Issa wrote:
> hello i want try pyf but i can install it i havethis error someon can
> explain me please ?
>
>
> (pyfenv)users1@users1-VirtualBox:~/Téléchargements/pyfenv$ paster
> serve pyfservices.ini
> Traceback (most recent call last):
[... snip ...]
> File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
> packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 565, in
> resolve
> pkg_resources.DistributionNotFound: mercurial>=1.2
This means that Mercurial is not installed in your virtualenv.
You can install it with:
$ easy_install mercurial
However, if Mercurial is not installed, then there are probably other
dependencies missing.
Try running the following instead:
$ easy_install "pyf[fullstack]>=2.0"
It should try to install PyF again, with all missing dependencies. Look
in the console log if you can spot some errors while installing some
modules, and if you do, try to fix them so you get all the required
bits.
If you need any help with those modules, don't hesitate to ask here.
--
Mathieu
That's what I meant when I said that most probably other modules were
missing. You will have to install them all.
> sudo easy_install "pyf[fullstack]>=2.0"
I'm not sure running as sudo is such a good idea.
You'd better use the virtualenv, as the documentation and the
bootstrap scripts do:
http://pyfproject.org/en/getting-started
This way, everything gets installed in the virtualenv (a folder) and
you can simply remove it when you're done with PyF, nothing will ever
be installed on your system libs (/usr/lib/...)
> Building lxml version 2.3.beta1.
> NOTE: Trying to build without Cython, pre-generated
> 'src/lxml/lxml.etree.c'
> needs to be available.
> ERROR: /bin/sh: xslt-config: not found
>
> ** make sure the development packages of libxml2 and libxslt are installed
> **
You need to install the development headers for libxml2 and libxslt,
as the message indicates.
On Ubuntu, those are called libxml2-dev and libxslt-dev if I recall
correctly. Just apt-get 'em. ;)
--
Mathieu
not sure but it seems that it tries to install lxml version 2.3.beta1,
this could be part of the problem
one more thing: on ubuntu you should "apt-get build-essential" in
order to be able to compile from source without issues.
Florent.