[Cubicweb] cubes does not show in list
aurelien.campeas at free.fr
Mon Jul 13 13:42:17 CEST 2009
Le 11/07/09 21:46, Dhaval Sharma a écrit :
> I have created a rosecube after much struggle with your installation.
We agree that the installation procedure needs polish ...
> And now when i want to view it in list this is the error it shows. Can
> you help?
> dhaval at ubuntu:~/working/playcubic/cubes/rosecube$ cubicweb-ctl list
> DeprecationWarning: the md5 module is deprecated; use hashlib instead
> from md5 import md5
> UserWarning: Psyco could not be loaded. Psyco is a Python just in time
> compiler available at http://psyco.sf.net Installing it will enhance the
> performance of logilab.constraint
> ERROR:cubicweb.configuration:while loading cube rosecube
> Traceback (most recent call last):
> File "/usr/local/lib/python2.6/dist-packages/cubicweb/cwconfig.py",
> line 394, in load_cwctl_plugins
> __import__('cubes.%s' % cube)
> ImportError: No module named cubes.rosecube
> CubicWeb version: 3.3.2
> Detected mode: installed
I am unfortunately not familiar with the installed mode (developping
apps in dev mode all the time). There might be gotchas related to
installed mode that I am not aware of (like specific environment variables).
However what fails there is an __import__ call, and this typically
happens because :
* you lack a proper __init__.py file in your personal cubes directory
* a syntax error in rosecube (unlikely if you just newcube'd it)
You could check in a python interpreter
>>> from cubes import rosecube
that it's properly accessible.
Tell us if that's not enough.
More information about the Cubicweb