apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
485 stars 136 forks source link

AttributeError in pg8000Preflight 'pg8000' object has no attribute 'six' in 8.0 #404

Open macosforgebot opened 8 years ago

macosforgebot commented 8 years ago

Axel.Rau@… originally submitted this as ticket:940


While upgrading my FreeBSD port from 5.1 to 8.0, I get:

2016-06-02T13:22:05+0000 [-] twistd 15.2.1 (/usr/local/bin/python2.7 2.7.11) starting up.
2016-06-02T13:22:05+0000 [-] reactor class: twisted.internet.kqreactor.KQueueReactor.
2016-06-02T13:22:05+0000 [-] ControlSocket starting on '/var/db/caldavd/caldavd.sock'
2016-06-02T13:22:05+0000 [twext.enterprise.adbapi2#debug] ConnectionPool: txn waiting add 'UpgradeAcquireLockStep.stepWithResult': free=0, busy=0, waiting=1 
2016-06-02T13:22:05+0000 [twext.enterprise.adbapi2#critical] Re-trying connection due to connection failure

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
  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 72, in _qpull
    return True
  File "/usr/local/lib/python2.7/site-packages/twext/internet/threadutils.py", line 85, in _oneWorkUnit
    self._reactor.callFromThread(deferred.callback, result)
--- <exception caught here> ---
  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 1284, in initCursor
    txn._connection = self.connectionFactory()
  File "/usr/local/lib/python2.7/site-packages/txdav/base/datastore/dbapiclient.py", line 253, in connect
    self.preflight(w, **self.connectKw)
  File "/usr/local/lib/python2.7/site-packages/txdav/base/datastore/dbapiclient.py", line 430, in pg8000Preflight
    connection.realConnection.py_types[postgres.six.text_type] = (705, postgres.core.FC_TEXT, my_text_out)
exceptions.AttributeError: 'module' object has no attribute 'six'
2016-06-02T13:22:15+0000 [twext.enterprise.adbapi2#critical] Re-trying connection due to connection failure

Version of pg8000 is 1.10.5.

macosforgebot commented 8 years ago

@ryandesign originally submitted this as comment:1:⁠ticket:940