[Cubicweb] INstalling cubicweb (fwd)
gael.varoquaux at normalesup.org
Mon Nov 30 08:49:55 CET 2009
It seems that the reply-to of the mailman is wrong :)
----- Forwarded message from Gael Varoquaux <gael.varoquaux at normalesup.org> -----
Date: Mon, 30 Nov 2009 08:47:50 +0100
From: Gael Varoquaux <gael.varoquaux at normalesup.org>
To: Nicolas Chauvat <nicolas.chauvat at logilab.fr>
Cc: cubicweb at tucana.logilab.fr
Subject: Re: [Cubicweb] INstalling cubicweb
On Mon, Nov 30, 2009 at 02:57:33AM +0100, Nicolas Chauvat wrote:
> Hello Gaël,
> On Mon, Nov 30, 2009 at 12:26:33AM +0100, Gael Varoquaux wrote:
> > So, I have been trying to install cubicweb and components without ever
> > becoming root, and it has been a struggle.
> You have read http://www.cubicweb.org/doc/en/admin/setup right ?
Actually, I had not. My bad. It was further down the page than I went.
> > The first one is that the cube that I am interested in (the euroscipy
> > conference website) depends on a lot of cubes and I have to explore the
> > web to find this out and manually download them. This is terribly
> > time-consuming and error-prone. Easy-install is a piece of crap, but it
> > would be nice to list the requires in the meta information (mayb they are
> > there, and I missed them?). pip could give me a full download if the
> > stars were aligned and the requirements were well-filled and all uploaded
> > to pypi.
> Neither of these helped ?
Well, I was talking about cube-to-cube dependencies, and the fact of
having to download each cube manually.
Speaking of which, not every project entry on the forge has download
links, some are broken (constraints), and sometimes there is no dowload
link on pypi.
What really made my life harder was the fact that with hg 1.3 (as in
Karmic), I can't clone the forest (fclone is not available). As I wasn't
able to browse it either, I wasn't able to check out the whole cubicweb
'world' and had to do things manually.
With regards to the bunch of environment variables: I really don't like
relying on environment variables. It makes things fragile because what
will run for one user, won't run for another. Why not simply use standard
paths, as you do with your root install, and explore various standard
'--prefix' options (/usr, /usr/local, and the prefix guessed from the
cubicweb install). Also, even after setting those environment variables,
'python setup.py install' does not work right for the cubes I tried it
on, and you have to manually copy files, or do symlinks.
Also, I had to patch cubicweb to get it running without having a
+++ cubicweb-3.5.7/cwconfig.py 2009-11-28 10:12:47.000000000 +0100
@@ -331,10 +331,9 @@
cubes = set()
for directory in cls.cubes_search_path():
- if os.path.exists(directory):
- for cube in os.listdir(directory):
- if isdir(join(directory, cube)) and not cube ==
+ for cube in os.listdir(directory):
+ if isdir(join(directory, cube)) and not cube ==
And finally, I now can list a bunch of cubes, but if I try to instantiate
the one I am interested in, I get:
cubicweb-ctl create -c all-in-one euroscipy myeuroscipy
DeprecationWarning: the md5 module is deprecated; use hashlib instead
from md5 import md5
ERROR: no cube shared in ['/home/varoquau/usr/lib/cubes', '/usr/share/cubicweb/cubes/']
I am not sure what this error means. The answer is probably in the docs,
I understand that fixing all these little details basically boils down to
developer time, and that's what we lack all. I am just pointing them out
to help the adoption of cubicweb: I have spent a few hours installing it;
from my experience, you loose a lot of potential users by this time (and
I am aware that these are hard problems, and that the softwares I work on
suffer from them too).
----- End forwarded message -----
Research Fellow, INRIA
Laboratoire de Neuro-Imagerie Assistee par Ordinateur
NeuroSpin/CEA Saclay , Bat 145, 91191 Gif-sur-Yvette France
More information about the Cubicweb