[Cubicweb] CubicWeb Stable Branch Error

Carlos Balderas carlos.balderas at gmail.com
Tue Jun 3 02:13:04 CEST 2014


Hi List!

I just want you to inform about an error I am getting when using CW stable
branch greater than the following changeset:

changeset:   9634:e01121bbd4fe
branch:      stable
user:        Julien Cristau <julien.cristau at logilab.fr>
date:        Mon Apr 07 15:57:47 2014 +0200
summary:     Added tag cubicweb-version-3.18.4,
cubicweb-debian-version-3.18.4-1, cubicweb-centos-version-3.18.4-1 for
changeset 0176da9bc752

----

Scenario:

* CW and all dependency repositories are set to "stable" branch or default
in case they don't have stable.


Tracking down the error:

* The error seems to appear in the following changeset:

changeset:   9678:c34f0cee89b7
branch:      stable
parent:      9566:cc7e0f4eb10f
user:        Julien Cristau <julien.cristau at logilab.fr>
date:        Wed Apr 23 17:21:07 2014 +0200
summary:     [server/test] update to deal with lgdb sqlserver fix

(which only contains modifications in the file:
server/test/unittest_rql2sql.py)

I've also tried the Cubicweb's latest "stable" changeset to check if the
error was fixed but I got the same result.

----

The Error: -->

-> creating tables  [====================]
-> inserting default user and default groups.
-> installing /home/carlos/src/cubicweb/schemas/_regproc.postgres.sql
-> storing the schema in the database  [=======             ]
Traceback (most recent call last):
  File "/home/carlos/src/cubicweb/bin/cubicweb-ctl", line 4, in <module>
    run(sys.argv[1:])
  File "/home/carlos/src/cubicweb/cwctl.py", line 1062, in run
    CWCTL.run(args)
  File "/home/carlos/src/logilab/common/clcommands.py", line 134, in run
    sys.exit(command.main_run(args, rcfile))
  File "/home/carlos/src/logilab/common/clcommands.py", line 263, in
main_run
    self.run(args)
  File "/home/carlos/src/cubicweb/cwctl.py", line 442, in run
    helper.postcreate(self.config.automatic, self.config.config_level)
  File "/home/carlos/src/cubicweb/server/serverctl.py", line 201, in
postcreate
    self.config.appid])
  File "/home/carlos/src/logilab/common/clcommands.py", line 134, in run
    sys.exit(command.main_run(args, rcfile))
  File "/home/carlos/src/logilab/common/clcommands.py", line 263, in
main_run
    self.run(args)
  File "/home/carlos/src/cubicweb/server/serverctl.py", line 398, in run
    str(self.config.config_level), config.appid])
  File "/home/carlos/src/logilab/common/clcommands.py", line 134, in run
    sys.exit(command.main_run(args, rcfile))
  File "/home/carlos/src/logilab/common/clcommands.py", line 263, in
main_run
    self.run(args)
  File "/home/carlos/src/cubicweb/server/serverctl.py", line 457, in run
    init_repository(config, drop=self.config.drop)
  File "/home/carlos/src/cubicweb/server/__init__.py", line 253, in
init_repository
    initialize_schema(config, schema, handler)
  File "/home/carlos/src/cubicweb/server/__init__.py", line 287, in
initialize_schema
    serialize_schema(session, schema)
  File "/home/carlos/src/cubicweb/server/schemaserial.py", line 369, in
serialize_schema
    rdef2rql(rdef, cstrtypemap, groupmap))
  File "/home/carlos/src/cubicweb/server/schemaserial.py", line 390, in
execschemarql
    rset = execute(rql, kwargs, build_descr=False)
  File "/home/carlos/src/cubicweb/server/session.py", line 1186, in execute
    rset = self._execute(self, rql, kwargs, build_descr)
  File "/home/carlos/src/cubicweb/server/querier.py", line 593, in execute
    eidkeys = self.solutions(session, rqlst, args)
  File "/home/carlos/src/cubicweb/cwvreg.py", line 757, in solutions
    return self.rqlhelper.compute_solutions(rqlst, {'eid': type_from_eid},
args)
  File "/home/carlos/src/rql/__init__.py", line 107, in compute_solutions
    debug)
  File "/home/carlos/src/rql/analyze.py", line 399, in visit
    self._visit(node)
  File "/home/carlos/src/rql/analyze.py", line 353, in _visit
    func(node)
  File "/home/carlos/src/rql/analyze.py", line 441, in visit_set
    self.solve(node, constraints)
  File "/home/carlos/src/rql/analyze.py", line 342, in solve
    raise TypeResolverException(ex_msg)
rql._exceptions.TypeResolverException: Unable to resolve variables types in
"SET X add_permission Y WHERE Y eid 3, X eid 79"
18:54:21 ** Consistency **
18:54:21 Inconsistency while applying <fd.BinaryExpression "(X == "CWEType"
and Y in ('CWGroup', 'RQLExpression')) or (X == "CWRelation" and Y in
('CWGroup', 'RQLExpression'))">
18:54:21 Finished search
18:54:21 Maximum recursion depth =  0
Nb distributions =  0
---

I tried at least 2 different cubes. The error can be reproduced by building
an instance of the "Blog" cube.

I hope I am not doing something wrong, for the moment I think the error
could be in Cubicweb stable branch code.

Thank you very much for your great work.!
(BTW nice new CW logo. :D)

Best Regards,
Carlos Balderas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20140602/5f5886e5/attachment.html>


More information about the Cubicweb mailing list