[Cubicweb] Adding new cubes to the distribution

Fletcher, John P j.p.fletcher at aston.ac.uk
Mon Dec 6 11:17:04 CET 2010


It looks as though this is where I am getting confused - that I am not in user mode.

It is not a question of the correct cubes being loaded, as they all are, as you can see from my next message, when I ran it in server mode.

It is all part of the learning curve, where I am working towards being able to create my own cubes, but I want to do that in user mode, not editing in /etc/share/cubicweb/cubes.



Dr John P. Fletcher Tel: (44) 121 204 3389 (direct line), FAX: (44) 121 204 3678
Chemical Engineering and Applied Chemistry (CEAC),
Associate Dean - External Relations,
School of Engineering and Applied Science (EAS),
Aston University, Aston Triangle, BIRMINGHAM B4 7ET  U.K.               

-----Original Message-----
From: cubicweb-bounces at lists.cubicweb.org [mailto:cubicweb-bounces at lists.cubicweb.org] On Behalf Of Adrien Di Mascio
Sent: 06 December 2010 08:25
To: Fletcher, John P
Cc: cubicweb at lists.cubicweb.org
Subject: Re: [Cubicweb] Adding new cubes to the distribution

Hi John,

On 06/12/2010 00:24, Fletcher, John P wrote:
> I want to use some cubes such as intranet which are available and I have downloaded them as cubicweb-<name>-<version>.tar.gz which I have expanded.  I have installed these in ~/CubicWeb/cubes in folders of the same name as the cube.  I have set CW_CUBES_PATH and the new cubes show up on the list when I do
> cubicweb-ctl list

This means that CW_CUBES_PATH is correctly set. Do not forget to set the 
CW_MODE environment variable to 'user' otherwise instance configuration 
files will end up in /etc/cubicweb.d/<inst>.

> sudo cubicweb-ctl create -c all-in-one intranet myintranet
> I get this error message:
> ERROR:  unable to find packaging information for cube intranet (ImportError: No module named intranet.__pkginfo__)

Ther error message is probably a bit misleading here. I would say that 
some of intranet's dependencies are missing. The cubicweb-ctl command is 
supposed to warn you of such errors. Could you confirm ?

Here are the list of packages you should probably download (if not 
already installed on your system with apt-get) :


> I cannot find any installation instructions either in the cube itself or in the web site documentation.

The following three links are worth reading if you haven't read them yet :


Hope this helps.
Adrien Di Mascio - LOGILAB, Paris (France).
Formations - http://www.logilab.fr/formations
Développements - http://www.logilab.fr/services
Gestion de connaissances - http://www.cubicweb.org/
Cubicweb mailing list
Cubicweb at lists.cubicweb.org

More information about the Cubicweb mailing list