Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error calling quote.py #12

Closed
edwardslabs opened this issue Oct 22, 2014 · 1 comment
Closed

error calling quote.py #12

edwardslabs opened this issue Oct 22, 2014 · 1 comment

Comments

@edwardslabs
Copy link
Member

I am seeing the following error whenever .quote add #channel username message is called

[07:50:43][ERROR] Error in hook quote:quote
Traceback (most recent call last):
  File "/home/andy/ircbot/CloudBotRefresh/plugins/quote.py", line 29, in add_quot
e
    (chan, nick, add_nick, msg, time.time()))
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/orm/session.py", line 9
91, in execute
    bind, close_with_result=True).execute(clause, params or {})
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 7
29, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/sql/elements.py", line
321, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 8
02, in _execute_clauseelement
    keys = distilled_params[0].keys()
AttributeError: 'tuple' object has no attribute 'keys'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/andy/ircbot/CloudBotRefresh/cloudbot/plugin.py", line 365, in _exec
ute_hook
    out = yield from self.bot.loop.run_in_executor(None, self._execute_hook_threa
ded, hook, event)
  File "/usr/lib/python3.4/asyncio/futures.py", line 348, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 351, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/andy/ircbot/CloudBotRefresh/cloudbot/plugin.py", line 329, in _exec
ute_hook_threaded
    return hook.function(*parameters)
  File "/home/andy/ircbot/CloudBotRefresh/plugins/quote.py", line 135, in quote
    notice(add_quote(db, chan, quoted_nick, nick, msg))
  File "/home/andy/ircbot/CloudBotRefresh/plugins/quote.py", line 31, in add_quot
e
    except db.IntegrityError:
AttributeError: 'Session' object has no attribute 'IntegrityError'
ERROR:cloudbot:Error in hook quote:quote
Traceback (most recent call last):
  File "/home/andy/ircbot/CloudBotRefresh/plugins/quote.py", line 29, in add_quot
e
    (chan, nick, add_nick, msg, time.time()))
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/orm/session.py", line 9
91, in execute
    bind, close_with_result=True).execute(clause, params or {})
File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 729, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/sql/elements.py", line 321, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python3.4/dist-packages/sqlalchemy/engine/base.py", line 802, in _execute_clauseelement
    keys = distilled_params[0].keys()
AttributeError: 'tuple' object has no attribute 'keys'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/andy/ircbot/CloudBotRefresh/cloudbot/plugin.py", line 365, in _execute_hook
    out = yield from self.bot.loop.run_in_executor(None, self._execute_hook_threaded, hook, event)
  File "/usr/lib/python3.4/asyncio/futures.py", line 348, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 351, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 243, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/home/andy/ircbot/CloudBotRefresh/cloudbot/plugin.py", line 329, in _execute_hook_threaded
    return hook.function(*parameters)
  File "/home/andy/ircbot/CloudBotRefresh/plugins/quote.py", line 135, in quote
    notice(add_quote(db, chan, quoted_nick, nick, msg))
  File "/home/andy/ircbot/CloudBotRefresh/plugins/quote.py", line 31, in add_quote
    except db.IntegrityError:
AttributeError: 'Session' object has no attribute 'IntegrityError'
@dmptrluke
Copy link
Member

o_o will look into

sprintingdev pushed a commit to sprintingdev/CloudBot that referenced this issue Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants