[Cubicweb] pip-install-cubicweb is broken on ubuntu 14.04.1

Jinpeng Li mr.li.jinpeng at gmail.com
Thu Nov 6 13:20:18 CET 2014


Dear all,

I start the cubicweb installation ( according to
http://docs.cubicweb.org/admin/setup ) with new installed ubuntu 14.04.1
desktop which is downloaded from (http://www.ubuntu.com/desktop). Does any
developer know any clue to this error '** unknown relation `formula`'? I
have test it on two databases (sqlite and postgres).

Thank you for any help or idea in advance,
Jinpeng

$ sudo apt-get install gcc python-pip python-dev libxslt1-dev libxml2-dev
$ sudo pip install cubicweb
$ sudo pip install cubicweb-blog

$ mkdir -p ~/etc/cubicweb.d
$ export CW_MODE=user
$ export CW_INSTANCES_DIR=~/etc/cubicweb.d/
$ export CW_INSTANCES_DATA_DIR=~/etc/cubicweb.d/
$ export CW_RUNTIME_DIR=/tmp

jinpeng at jinpeng-VirtualBox:~$ cubicweb-ctl create blog blog

Creating the instance blog
--------------------------
-> no need to create existing directory /home/jinpeng/etc/cubicweb.d/blog

Configuring the instance (all-in-one.conf)
------------------------------------------
:uid:
if this option is set, use the specified user to start the repository
rather than the user running the command
:

Configuring the repository
--------------------------

Configuring the sources
-----------------------
:db-driver:
database driver (postgres, mysql, sqlite, sqlserver2005)
(default: postgres): sqlite
:db-name:
path to the sqlite database
(default: /home/jinpeng/etc/cubicweb.d/blog/blog.sqlite):

:login:
cubicweb manager account's login (this user will be created)
(default: admin):
:password:
cubicweb manager account's password
(required):
confirm:
-> set permissions to 0600 for /home/jinpeng/etc/cubicweb.d/blog/sources

Generic web configuration
-------------------------
:port:
http server port number (default to 8080)
:
Allow anonymous access ? [y/N]:
-> generated config /home/jinpeng/etc/cubicweb.d/blog/all-in-one.conf
-> created directory /home/jinpeng/etc/cubicweb.d/blog/i18n
-> compiling message catalogs to /home/jinpeng/etc/cubicweb.d/blog/i18n
-> created directory /home/jinpeng/etc/cubicweb.d/blog/i18n/en/LC_MESSAGES
-> created directory /home/jinpeng/etc/cubicweb.d/blog/i18n/es/LC_MESSAGES
-> created directory /home/jinpeng/etc/cubicweb.d/blog/i18n/fr/LC_MESSAGES
-> created directory /home/jinpeng/etc/cubicweb.d/blog/backup

-> creation done for /home/jinpeng/etc/cubicweb.d/blog

Run db-create to create the system database ? [Y/n]:
-> connecting to sqlite database
/home/jinpeng/etc/cubicweb.d/blog/blog.sqlite -> database for instance blog
created and necessary extensions installed.

Run db-init to initialize the system database ? [Y/n]:

Initializing the system database
--------------------------------
-> creating tables  [====================]
-> inserting default user and default groups.
-> storing the schema in the database  [=======             ]
Traceback (most recent call last):
  File "/usr/local/bin/cubicweb-ctl", line 4, in <module>
    run(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/cwctl.py", line
1115, in run
    CWCTL.run(args)
  File
"/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line
136, in run
    sys.exit(command.main_run(args, rcfile))
  File
"/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line
265, in main_run
    self.run(args)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/cwctl.py", line
434, in run
    helper.postcreate(self.config.automatic, self.config.config_level)
  File
"/usr/local/lib/python2.7/dist-packages/cubicweb/server/serverctl.py", line
203, in postcreate
    self.config.appid])
  File
"/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line
136, in run
    sys.exit(command.main_run(args, rcfile))
  File
"/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line
265, in main_run
    self.run(args)
  File
"/usr/local/lib/python2.7/dist-packages/cubicweb/server/serverctl.py", line
400, in run
    str(self.config.config_level), config.appid])
  File
"/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line
136, in run
    sys.exit(command.main_run(args, rcfile))
  File
"/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line
265, in main_run
    self.run(args)
  File
"/usr/local/lib/python2.7/dist-packages/cubicweb/server/serverctl.py", line
459, in run
    init_repository(config, drop=self.config.drop)
  File
"/usr/local/lib/python2.7/dist-packages/cubicweb/server/__init__.py", line
299, in init_repository
    initialize_schema(config, schema, handler)
  File
"/usr/local/lib/python2.7/dist-packages/cubicweb/server/__init__.py", line
331, in initialize_schema
    serialize_schema(cnx, schema)
  File
"/usr/local/lib/python2.7/dist-packages/cubicweb/server/schemaserial.py",
line 357, in serialize_schema
    rdef2rql(rdef, cstrtypemap, groupmap))
  File
"/usr/local/lib/python2.7/dist-packages/cubicweb/server/schemaserial.py",
line 378, in execschemarql
    rset = execute(rql, kwargs, build_descr=False)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/repoapi.py", line
129, in check_open
    return func(clt_cnx, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/repoapi.py", line
213, in execute
    rset = self._cnx.execute(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/server/session.py",
line 371, in wrapper
    return func(cnx, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/server/session.py",
line 381, in check_open
    return func(cnx, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/server/session.py",
line 1022, in execute
    rset = self._execute(self, rql, kwargs, build_descr)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/server/querier.py",
line 547, in execute
    rqlst = self.parse(rql)
  File "/usr/local/lib/python2.7/dist-packages/cubicweb/server/querier.py",
line 493, in parse
    return self._parse(unicode(rql), annotate=annotate)
  File "/usr/local/lib/python2.7/dist-packages/rql/__init__.py", line 88,
in parse
    self._checker.check(rqlst)
  File "/usr/local/lib/python2.7/dist-packages/rql/stcheck.py", line 92, in
check
    raise BadRQLQuery('%s\n** %s' % (node, '\n** '.join(state.errors)))
rql._exceptions.BadRQLQuery: INSERT CWAttribute X : X cardinality
%(cardinality)s, X defaultval %(defaultval)s, X description
%(description)s, X formula %(formula)s, X fulltextindexed
%(fulltextindexed)s, X indexed %(indexed)s, X internationalizable
%(internationalizable)s, X ordernum %(ordernum)s, X relation_type ER, X
from_entity SE, X to_entity OE WHERE SE eid %(se)s, ER eid %(rt)s, OE eid
%(oe)s
** unknown relation `formula`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20141106/fab1287e/attachment-0164.html>


More information about the Cubicweb mailing list