> Am 30.05.2016 um 22:39 schrieb Axel Rau <[email protected]>:
>
> connection.realConnection.py_types[postgres.six.text_type] = (705,
> postgres.core.FC_TEXT, my_text_out)
> exceptions.AttributeError: ‚module' object has no attribute 'six‘
I removed that line:
- - -
[build3:lib/python2.7/site-packages] root# diff -u
txdav/base/datastore/dbapiclient.py.orig txdav/base/datastore/dbapiclient.py
--- txdav/base/datastore/dbapiclient.py.orig 2016-05-31 13:59:47.000000000
+0200
+++ txdav/base/datastore/dbapiclient.py 2016-05-31 13:24:24.000000000 +0200
@@ -427,7 +427,7 @@
return v.encode("utf-8") if isinstance(v, unicode) else str(v)
connection.realConnection.py_types[str] = (705, postgres.core.FC_TEXT,
my_text_out)
- connection.realConnection.py_types[postgres.six.text_type] = (705,
postgres.core.FC_TEXT, my_text_out)
+ ##connection.realConnection.py_types[postgres.six.text_type] = (705,
postgres.core.FC_TEXT, my_text_out)
def my_text_recv(data, offset, length):
return str(data[offset: offset + length])
- - -
and reached this point:
- - -
2016-05-31T12:48:55+0200 [-] Log opened.
2016-05-31T12:48:55+0200 [-] twistd 15.2.1 (/usr/local/bin/python2.7 2.7.11)
starting up.
2016-05-31T12:48:55+0200 [-] reactor class:
twisted.internet.kqreactor.KQueueReactor.
2016-05-31T12:48:55+0200 [-] AMPPushNotifierFactory starting on 62311
2016-05-31T12:48:55+0200 [-] ControlSocket starting on
'/var/db/caldavd/data/Logs/state/caldavd.sock'
2016-05-31T12:48:55+0200 [twistedcaldav.upgrade#warn] Upgrading to version 1
2016-05-31T12:48:55+0200 [twistedcaldav.sql#info] Initializing database
/var/db/caldavd/data/Data/mailgatewaytokens.sqlite
2016-05-31T12:48:55+0200 [twistedcaldav.upgrade#warn] Upgraded to version 1
2016-05-31T12:48:55+0200 [twistedcaldav.upgrade#warn] Upgrading to version 2
2016-05-31T12:48:55+0200 [twistedcaldav.upgrade#warn] Upgraded to version 2
2016-05-31T12:48:55+0200
[txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaStep#warn]
Beginning database schema check.
2016-05-31T12:48:55+0200
[txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaStep#warn]
Required database key VERSION: 60.
2016-05-31T12:48:55+0200 [twext.enterprise.adbapi2#critical] Exception from
execute() on first statement in transaction. Possibly caused by a database
server restart. Automatically reconnecting now.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/twext/internet/threadutils.py",
line 51, in _run
while self._qpull():
File "/usr/local/lib/python2.7/site-packages/twext/internet/threadutils.py",
line 71, in _qpull
self._oneWorkUnit(*work)
File "/usr/local/lib/python2.7/site-packages/twext/internet/threadutils.py",
line 77, in _oneWorkUnit
result = instruction()
File "/usr/local/lib/python2.7/site-packages/twext/enterprise/adbapi2.py",
line 423, in <lambda>
lambda: self._reallyExecSQL(*args, **kw)
--- <exception caught here> ---
File "/usr/local/lib/python2.7/site-packages/twext/enterprise/adbapi2.py",
line 256, in _reallyExecSQL
self._cursor.execute(sql, args)
File
"/usr/local/lib/python2.7/site-packages/txdav/base/datastore/dbapiclient.py",
line 83, in execute
self.realCursor.execute(sql, args)
File "/usr/local/lib/python2.7/site-packages/pg8000/core.py", line 907, in
execute
self._c.execute(self, operation, args)
File "/usr/local/lib/python2.7/site-packages/pg8000/core.py", line 1946, in
execute
self.handle_messages(cursor)
File "/usr/local/lib/python2.7/site-packages/pg8000/core.py", line 2094, in
handle_messages
raise self.error
pg8000.core.ProgrammingError: (u'ERROR', u'42P01', u'relation "calendarserver"
does not exist', u'19', u'parse_relation.c', u'986', u'parserOpenTable', u'',
u'')
2016-05-31T12:48:55+0200 [calendarserver.tap.util#critical] Step failure:
UpgradeDatabaseAddressBookDataStep
- - -
I have created an empty database and expected caldavd to create all the
necessary tables.
Is this wrong?
Axel
---
PGP-Key:29E99DD6 ☀ computing @ chaos claudius
_______________________________________________
calendarserver-dev mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/calendarserver-dev