Menu

#65 cliFilelocker.py HTTP 500 TypeError: connect() argument 1 must be string, not Connection

v2
closed
nobody
None
1
2015-04-24
2012-09-13
Blake
No

running 2.4.5, have python 2.6 on the server and cherrypy 3.1.2
on the clientside we have python 2.7

after generating a cli key and download the cli client and conf file, we get:

$ python cliFilelocker.py
Enter your user ID [q to quit]: uname
[Critical]: HTTP 500

if you enter a non-existant user it says:

Login failed: Login failed: invalid CLI key for this userID and IP address

so it seems to be authenticating without issue.

We get this in the log file:

HTTP
Request Headers:
ACCEPT: text/xml
Content-Type: application/x-www-form-urlencoded
HOST: fileportal.somedomain.com
Content-Length: 52
USER-AGENT: Python-urllib/2.7
CONNECTION: close
Remote-Addr: 1.1.1.1
ACCEPT-ENCODING: identity
HTTP Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 609, in respond
self.hooks.run('before_finalize')
File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 98, in run
hook()
File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 58, in call
return self.callback(**self.kwargs)
File "/usr/lib/pymodules/python2.6/cherrypy/lib/sessions.py", line 576, in save
cherrypy.session.save()
File "/usr/lib/pymodules/python2.6/cherrypy/lib/sessions.py", line 131, in save
self._save(expiration_time)
File "/var/www/filelocker/core/dao/MySQLDAO.py", line 1392, in _save
pickled_data = pickle.dumps(self._data)
File "/usr/lib/python2.6/copy_reg.py", line 71, in _reduce_ex
state = base(self)
TypeError: connect() argument 1 must be string, not Connection

Discussion

  • Blake

    Blake - 2012-09-13

    i installed python 2.6 on the client and still get the same error

     
  • David Hutchins

    David Hutchins - 2015-04-24
    • status: open --> closed
     
  • David Hutchins

    David Hutchins - 2015-04-24

    This should be fixed in 2.6 from current trunk. It looks like it was related to MySQLDAO which was replaced with SQLAlchemy in 2.6.

     

Log in to post a comment.

MongoDB Logo MongoDB