[Cubicweb] ValueError: unconverted data remains

Yann Cointepas yann at sapetnioc.org
Fri Feb 26 16:12:01 CET 2010


Hello again,

I have an error (see below) when trying to initialize a cube's SQLite
database with 3.5 to 3.6.1 releases (from mercurial repository, cloned about
10 minutes ago). I join a patch (I made it with hg export in logilab/common
directory but I have limited knowlege in both Mercurial and CubicWeb) that
fixes the problem, at least for for me (Python 2.6, Ubuntu 9.10).

I finished my mail and realised that there is probably a better place for
this kind of message... ?

      Yann

yann at petityann:~/cubicweb/instances$ cubicweb-ctl db-init dicom

Initializing the system database
--------------------------------
-> creating tables [....................]
-> inserting default user and default groups.
Traceback (most recent call last):
  File "/usr/local/cubicweb/cubicweb/bin/cubicweb-ctl", line 4, in <module>
    run(sys.argv[1:])
  File "/usr/local/cubicweb/cubicweb/cwctl.py", line 993, in run
    %s"""
  File "/usr/local/cubicweb/cubicweb/toolsutils.py", line 254, in main_run
    base_main_run(args, doc, copyright=None)
  File "/usr/local/cubicweb/logilab/common/clcommands.py", line 136, in
main_run
    cmd_run(arg, *args)
  File "/usr/local/cubicweb/logilab/common/clcommands.py", line 119, in
cmd_run
    command.run(args)
  File "/usr/local/cubicweb/cubicweb/server/serverctl.py", line 393, in run
    init_repository(config, drop=self.config.drop)
  File "/usr/local/cubicweb/cubicweb/server/__init__.py", line 177, in
init_repository
    repo, cnx = in_memory_cnx(config, login, password=pwd)
  File "/usr/local/cubicweb/cubicweb/dbapi.py", line 153, in in_memory_cnx
    cnx = repo_connect(repo, login, cnxprops=cnxprops, **kwargs)
  File "/usr/local/cubicweb/cubicweb/dbapi.py", line 99, in repo_connect
    cnxid = repo.connect(unicode(login), **kwargs)
  File "/usr/local/cubicweb/cubicweb/server/repository.py", line 577, in
connect
    user = self.authenticate_user(session, login, **kwargs)
  File "/usr/local/cubicweb/cubicweb/server/repository.py", line 429, in
authenticate_user
    cwuser = self._build_user(session, eid)
  File "/usr/local/cubicweb/cubicweb/server/repository.py", line 439, in
_build_user
    rset = session.execute(rql, {'x': eid}, 'x')
  File "/usr/local/cubicweb/cubicweb/server/session.py", line 443, in
execute
    rset = self._execute(self, rql, kwargs, eid_key, build_descr)
  File "/usr/local/cubicweb/cubicweb/server/querier.py", line 658, in
execute
    results = plan.execute()
  File "/usr/local/cubicweb/cubicweb/server/querier.py", line 172, in
execute
    result = step.execute()
  File "/usr/local/cubicweb/cubicweb/server/ssplanner.py", line 286, in
execute
    inputmap)
  File "/usr/local/cubicweb/cubicweb/server/sources/native.py", line 315, in
syntax_tree_search
    cursor = self.doexec(session, sql, args)
  File "/usr/local/cubicweb/cubicweb/server/sources/native.py", line 422, in
doexec
    cursor.execute(str(query), args)
  File "/usr/local/cubicweb/logilab/common/db.py", line 501, in execute
    self.__class__.__bases__[0].execute(self, final_sql , kwargs)
*  File "/usr/local/cubicweb/logilab/**common/db.py", line 430, in
convert_mxdatetime
    return strptime(ustr, '%Y-%m-%d %H:%M:%S')
*  File
"/usr/lib/python2.6/dist-packages/mx/DateTime/mxDateTime/__init__.py", line
36, in strptime
    return DateTime(*_time.strptime(string, format)[:6])
  File "/usr/lib/python2.6/_strptime.py", line 454, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.6/_strptime.py", line 328, in _strptime
    data_string[found.end():])
*ValueError: unconverted data remains: .639245*

yann at petityann:~/cubicweb/instances$ cubicweb-ctl list
CubicWeb 3.6.1 (user mode)




Yann Cointepas            Tel: +33 1 69 08 78 31
CEA - Neurospin           Fax: +33 1 69 08 79 80
B√Ętiment 145, Point Courrier 156
91191 Gif-sur-Yvette cedex, France
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20100226/178a6b7d/attachment-0126.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_logilab_common.diff
Type: application/octet-stream
Size: 831 bytes
Desc: not available
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20100226/178a6b7d/attachment-0213.obj>


More information about the Cubicweb mailing list