How install ?

97 views
Skip to first unread message

Issa

unread,
Dec 30, 2010, 1:44:47 PM12/30/10
to PyF Framework Users
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):
File "/home/users1/Téléchargements/pyfenv/bin/paster", line 8, in
<module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
()
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line
84, in run
invoke(command, command_name, options, args[1:])
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line
123, in invoke
exit_code = runner.run(args)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line
218, in run
result = self.command()
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 276,
in command
relative_to=base, global_conf=vars)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 313,
in loadapp
**kw)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
204, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
224, in loadobj
global_conf=global_conf)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
248, in loadcontext
global_conf=global_conf)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
278, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
409, in get_context
section)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
431, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
361, in get_context
global_conf=global_conf)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
248, in loadcontext
global_conf=global_conf)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
285, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
561, in get_context
object_type, name=name)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line
581, in find_egg_entry_point
pkg_resources.require(self.spec)
File "/home/users1/Téléchargements/pyfenv/lib/python2.6/site-
packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 666, in
require
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

Mathieu Bridon

unread,
Dec 30, 2010, 7:08:05 PM12/30/10
to pyf-...@googlegroups.com
Hi,

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


Issa

unread,
Dec 31, 2010, 2:34:51 AM12/31/10
to pyf-...@googlegroups.com
Hello thanks.
i have installed on virtual box an ubuntu 10.10 desktop.

but can u give me a list of dependance ?
In fact i want use pyf to see XML and create documemt whit it, it's possible ?

Whit XMl can have 500 MO data.
thanks




2010/12/31 Mathieu Bridon <boch...@fedoraproject.org>



--
Cordialement
Yassin Chouchane

Issa

unread,
Dec 31, 2010, 3:52:33 AM12/31/10
to pyf-...@googlegroups.com
Hello problem with compilation :


sudo easy_install "pyf[fullstack]>=2.0"
install_dir /usr/local/lib/python2.6/dist-packages/
Searching for pyf[fullstack]>=2.0
Best match: pyf 2.0
Processing pyf-2.0-py2.6.egg
pyf 2.0 is already the active version in easy-install.pth

Using /usr/local/lib/python2.6/dist-packages/pyf-2.0-py2.6.egg
Processing dependencies for pyf[fullstack]>=2.0
Searching for lxml>=2.2
Reading http://pypi.python.org/simple/lxml/
Reading http://codespeak.net/lxml
Best match: lxml 2.3beta1
Downloading http://pypi.python.org/packages/source/l/lxml/lxml-2.3beta1.tar.gz#md5=adfeff2bc9c68480075ac03b04a89dde
Processing lxml-2.3beta1.tar.gz
Running lxml-2.3beta1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-KlkIFT/lxml-2.3beta1/egg-dist-tmp-9Q3zK_
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 **

Using build configuration of libxslt
src/lxml/lxml.etree.c:4: fatal error: Python.h: Aucun fichier ou dossier de ce type
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1


2010/12/31 Mathieu Bridon <boch...@fedoraproject.org>



--
Cordialement
Yassin Chouchane

Mathieu Bridon

unread,
Dec 31, 2010, 4:03:32 AM12/31/10
to pyf-...@googlegroups.com
> Hello problem with compilation :

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

Issa

unread,
Dec 31, 2010, 6:12:15 AM12/31/10
to pyf-...@googlegroups.com
thanks for u answer, i have installed libxml2-dev and libxslt-dev  but i have the same message :'(
well if i give u an ssh access on this server can u try it ti install please ?





2010/12/31 Mathieu Bridon <boch...@fedoraproject.org>



--
Cordialement
Yassin Chouchane

Florent Aide

unread,
Dec 31, 2010, 9:40:31 AM12/31/10
to pyf-...@googlegroups.com
Hi,

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.

Reply all
Reply to author
Forward
0 new messages