[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 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>
  File "/usr/local/cubicweb/cubicweb/cwctl.py", line 993, in run
  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
    cmd_run(arg, *args)
  File "/usr/local/cubicweb/logilab/common/clcommands.py", line 119, in
  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
    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
    user = self.authenticate_user(session, login, **kwargs)
  File "/usr/local/cubicweb/cubicweb/server/repository.py", line 429, in
    cwuser = self._build_user(session, eid)
  File "/usr/local/cubicweb/cubicweb/server/repository.py", line 439, in
    rset = session.execute(rql, {'x': eid}, 'x')
  File "/usr/local/cubicweb/cubicweb/server/session.py", line 443, in
    rset = self._execute(self, rql, kwargs, eid_key, build_descr)
  File "/usr/local/cubicweb/cubicweb/server/querier.py", line 658, in
    results = plan.execute()
  File "/usr/local/cubicweb/cubicweb/server/querier.py", line 172, in
    result = step.execute()
  File "/usr/local/cubicweb/cubicweb/server/ssplanner.py", line 286, in
  File "/usr/local/cubicweb/cubicweb/server/sources/native.py", line 315, in
    cursor = self.doexec(session, sql, args)
  File "/usr/local/cubicweb/cubicweb/server/sources/native.py", line 422, in
    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
    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
*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-0186.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-0273.obj>

More information about the Cubicweb mailing list