Forums

unexplicable error message realms-wiki mysql

Hi,

I've been using realms-wiki with the sqlite db currently with no issues, I need to migrate to MySQL and am having problems. Here's the stack trace error. I cannot think of any other relavent information so If I missed something you're welcome to look around.

I am using a virtualenv called wiki_infosecc

2015-03-19 23:28:29,500 :Traceback (most recent call last):
2015-03-19 23:28:29,501 :  File "/bin/user_wsgi_wrapper.py", line 130, in __call__
2015-03-19 23:28:29,501 :    self.error_log_file.logger.exception("Error running WSGI application")
2015-03-19 23:28:29,501 :  File "/usr/lib/python2.7/logging/__init__.py", line 1185, in exception
2015-03-19 23:28:29,501 :    self.error(msg, *args, **kwargs)
2015-03-19 23:28:29,501 :  File "/usr/lib/python2.7/logging/__init__.py", line 1178, in error
2015-03-19 23:28:29,501 :    self._log(ERROR, msg, args, **kwargs)
2015-03-19 23:28:29,501 :  File "/usr/lib/python2.7/logging/__init__.py", line 1270, in _log
2015-03-19 23:28:29,502 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2015-03-19 23:28:29,502 :  File "/usr/lib/python2.7/logging/__init__.py", line 1244, in makeRecord
2015-03-19 23:28:29,502 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2015-03-19 23:28:29,502 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2015-03-19 23:28:29,502 :    self.threadName = threading.current_thread().name
2015-03-19 23:28:29,502 :  File "/usr/lib/python2.7/threading.py", line 1160, in currentThread
2015-03-19 23:28:29,503 :    return _active[_get_ident()]
2015-03-19 23:28:29,503 :  File "/bin/user_wsgi_wrapper.py", line 122, in __call__
2015-03-19 23:28:29,503 :    app_iterator = self.app(environ, start_response)
2015-03-19 23:28:29,503 :  File "/bin/user_wsgi_wrapper.py", line 136, in import_error_application
2015-03-19 23:28:29,503 :    raise e
2015-03-19 23:28:29,503 :AttributeError: 'list' object has no attribute 'replace'

Thank you.

Somewhere in your code, you're calling replace on a list instead of a string.

Thank you glenn, I was able to fix the problem.

There was a bug in my code that didn't show up in the traceback. Was able to find it using pdb:

python -m pdb /path/to/file

cheers.