[Cubicweb] create failing in postgre too

Dhaval Sharma dhavalsharma at gmail.com
Sat Jul 18 23:38:48 CEST 2009


I amtrying to create an instance of person cube and this is what i get

cubicweb-ctl create person myperson

do you want to create repository's system database? [Y/n]: y
**** connecting to postgres database template1 at None as cubicweb
WARNING: <module 'pgdb' from '/usr/lib/python2.5/site-packages/pgdb.pyc'>
adapter has no BOOLEAN type code
Traceback (most recent call last):
  File "/home/dhaval/env/cubicweb25/bin/cubicweb-ctl", line 4, in <module>
    run(sys.argv[1:])
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/cwctl.py", line 814,
in run
    main_run(args, __doc__)
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/toolsutils.py", line
256, in main_run
    base_main_run(args, doc)
  File "/home/dhaval/sample/cubicweb/cubicweb/logilab/common/clcommands.py",
line 136, in main_run
    cmd_run(arg, *args)
  File "/home/dhaval/sample/cubicweb/cubicweb/logilab/common/clcommands.py",
line 119, in cmd_run
    command.run(args)
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/cwctl.py", line 326,
in run
    helper.postcreate()
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/serverctl.py",
line 175, in postcreate
    cmd_run('db-create', self.config.appid, '--verbose=%s' % verbosity)
  File "/home/dhaval/sample/cubicweb/cubicweb/logilab/common/clcommands.py",
line 119, in cmd_run
    command.run(args)
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/serverctl.py",
line 273, in run
    dbcnx = _db_sys_cnx(source, 'CREATE DATABASE and / or USER',
verbose=verbose)
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/serverctl.py",
line 86, in _db_sys_cnx
    cnx = system_source_cnx(source, True, special_privs=special_privs,
verbose=verbose)
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/serverctl.py",
line 70, in system_source_cnx
    return source_cnx(source, system_db, special_privs=special_privs,
verbose=verbose)
  File "/home/dhaval/sample/cubicweb/cubicweb/cubicweb/server/serverctl.py",
line 58, in source_cnx
    port=source.get('db-port'))
  File "/home/dhaval/sample/cubicweb/cubicweb/logilab/common/db.py", line
676, in get_connection
    adapted_module = adapter(module, pywrap)
  File "/home/dhaval/sample/cubicweb/cubicweb/logilab/common/db.py", line
246, in __init__
    'numeric', 'bool', 'money')
TypeError: __new__() takes exactly 2 arguments (10 given)
dhaval at ubuntu:~/env/cubicweb25$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20090719/09f8b633/attachment-0047.html>


More information about the Cubicweb mailing list