mirror of
https://github.com/jlengrand/twitterboard.git
synced 2026-03-10 15:52:58 +00:00
74 lines
4.2 KiB
Plaintext
74 lines
4.2 KiB
Plaintext
Starting streamer
|
|
No hashtag to track!
|
|
Starting counter
|
|
Command Line utility started:
|
|
Press CTRL + C to stop application
|
|
type h, help or ? to get a list of possible commands
|
|
>add #nowplaying
|
|
[]
|
|
#nowplaying
|
|
['#nowplaying']
|
|
>Exception in thread Thread-8:
|
|
Traceback (most recent call last):
|
|
File "/usr/local/lib/python2.7/threading.py", line 551, in __bootstrap_inner
|
|
self.run()
|
|
File "/usr/local/lib/python2.7/threading.py", line 504, in run
|
|
self.__target(*self.__args, **self.__kwargs)
|
|
File "/usr/local/lib/python2.7/site-packages/tweepy/streaming.py", line 117, in _run
|
|
self._read_loop(resp)
|
|
File "/usr/local/lib/python2.7/site-packages/tweepy/streaming.py", line 162, in _read_loop
|
|
self._data(next_status_obj)
|
|
File "/usr/local/lib/python2.7/site-packages/tweepy/streaming.py", line 139, in _data
|
|
if self.listener.on_data(d) is False:
|
|
File "/usr/local/lib/python2.7/site-packages/tweepy/streaming.py", line 34, in on_data
|
|
if self.on_status(status) is False:
|
|
File "/home/jllengrand/twitterboard/twiderboard/streamer.py", line 59, in on_status
|
|
self.session.commit() # force saving changes
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 703, in commit
|
|
self.transaction.commit()
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 365, in commit
|
|
t[1].commit()
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2045, in commit
|
|
self._do_commit()
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 2075, in _do_commit
|
|
self.connection._commit_impl()
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1280, in _commit_impl
|
|
self._handle_dbapi_exception(e, None, None, None, None)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1277, in _commit_impl
|
|
self.engine.dialect.do_commit(self.connection)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 307, in do_commit
|
|
connection.commit()
|
|
OperationalError: (OperationalError) database is locked None None
|
|
|
|
Exception in thread Thread-5086:
|
|
Traceback (most recent call last):
|
|
File "/usr/local/lib/python2.7/threading.py", line 551, in __bootstrap_inner
|
|
self.run()
|
|
File "/usr/local/lib/python2.7/threading.py", line 755, in run
|
|
self.function(*self.args, **self.kwargs)
|
|
File "/home/jllengrand/twitterboard/twiderboard/utils/timing.py", line 33, in callback
|
|
self.function(*self.args, **self.kwargs)
|
|
File "/home/jllengrand/twitterboard/twiderboard/counter.py", line 122, in count
|
|
self.update(session, m_query.first(), tweet)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2156, in first
|
|
ret = list(self[0:1])
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2023, in __getitem__
|
|
return list(res)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2227, in __iter__
|
|
return self._execute_and_instances(context)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2242, in _execute_and_instances
|
|
result = conn.execute(querycontext.statement, self._params)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1449, in execute
|
|
params)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1584, in _execute_clauseelement
|
|
compiled_sql, distilled_params
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
|
|
context)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
|
|
context)
|
|
File "/usr/local/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 331, in do_execute
|
|
cursor.execute(statement, parameters)
|
|
OperationalError: (OperationalError) database is locked u'SELECT member.id AS member_id, member.author AS member_author, member.hashtag AS member_hashtag, member.created AS member_created, member.updated AS member_updated, member.count
|
|
AS member_count \nFROM member \nWHERE member.author = ? AND member.hashtag = ?\n LIMIT ? OFFSET ?' (u'ckoefm', u'#nowplaying', 1, 0)
|
|
|