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

Bot crashed and won't start again. #33

Closed
ghost opened this issue Jun 19, 2014 · 3 comments
Closed

Bot crashed and won't start again. #33

ghost opened this issue Jun 19, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 19, 2014

crash

WARNING 2014-06-18 15:35:51,393 eval_message(): CtbAction::__init__(atype=withdraw, from_user=*****): couldn't determine coinval from keyword 'all' (not float)
ERROR 2014-06-18 15:48:38,147 get_actions(): error executing <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND to_user = '********'>: can't set attribute
ERROR 2014-06-18 15:48:38,147 CointipBot::check_inbox(): can't set attribute
ERROR 2014-06-18 15:48:38,147 CointipBot::main(): exception: can't set attribute
ERROR 2014-06-18 15:48:38,236 CointipBot::main(): traceback: Traceback (most recent call last):
  File "cointipbot.py", line 558, in main
    self.check_inbox()
  File "cointipbot.py", line 241, in check_inbox
    action.do()
  File "ctb/ctb_action.py", line 303, in do
    return self.accept()
  File "ctb/ctb_action.py", line 379, in accept
    actions = get_actions(atype='givetip', to_user=self.u_from.name, state='pending', ctb=self.ctb)
  File "ctb/ctb_action.py", line 1254, in get_actions
    submission = ctb_misc.praw_call(ctb.reddit.get_submission, m['msg_link'])
  File "ctb/ctb_misc.py", line 38, in praw_call
    res = prawFunc(*extraArgs, **extraKwArgs)
  File "/usr/local/lib/python2.7/dist-packages/praw/__init__.py", line 888, in get_submission
    comment_sort=comment_sort)
  File "/usr/local/lib/python2.7/dist-packages/praw/decorators.py", line 323, in wrapped
    return function(cls, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 842, in from_url
    s_info, c_info = reddit_session.request_json(url, params=params)
  File "/usr/local/lib/python2.7/dist-packages/praw/decorators.py", line 161, in wrapped
    return_value = function(reddit_session, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/praw/__init__.py", line 496, in request_json
    data = json.loads(response, object_hook=hook)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return cls(encoding=encoding, **kw).decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
    obj, end = self.scan_once(s, idx)
  File "/usr/local/lib/python2.7/dist-packages/praw/__init__.py", line 391, in _json_reddit_objecter
    return object_class.from_api_response(self, json_data['data'])
  File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 56, in from_api_response
    return cls(reddit_session, json_dict=json_dict)
  File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 510, in __init__
    underscore_names=['replies'])
  File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 70, in __init__
    self.has_fetched = self._populate(json_dict, fetch)
  File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 137, in _populate
    setattr(self, name, value)
  File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 98, in __setattr__
    object.__setattr__(self, name, value)
AttributeError: can't set attribute

ERROR 2014-06-19 03:24:08,351 get_actions(): error executing <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND coin = 'ltc'>: can't set attribute
ERROR 2014-06-19 03:24:21,654 get_actions(): error executing <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND coin = 'ltc'>: can't set attribute

info.log when trying to restart

INFO 2014-06-19 03:43:46,523 < init_regex() DONE (96 expressions)
INFO 2014-06-19 03:43:46,525 CtbUser::balance(litetip): getting ltc givetip balance
ERROR 2014-06-19 03:43:48,582 get_actions(): error executing <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND coin = 'ltc'>: can't set attribute

end of debug.log when trying to restart

DEBUG 2014-06-19 03:43:47,040 get_actions(): <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND coin = 'ltc'>
DEBUG 2014-06-19 03:43:47,043 get_actions(): found http://www.reddit.com/r/teenagers/comments/28cuzp/discussion_thirst_thread/ci9owg4 / ci9owg4
ERROR 2014-06-19 03:43:48,582 get_actions(): error executing : can't set attribute
@vindimy
Copy link
Owner

vindimy commented Jun 19, 2014

It might have something to do with your version of Python SQL library .. Try upgrading it.

Sent from my iPad

On Jun 19, 2014, at 4:52 PM, blixnood notifications@github.com wrote:

crash

WARNING 2014-06-18 15:35:51,393 eval_message(): CtbAction::init(atype=withdraw, from_user=): couldn't determine coinval from keyword 'all' (not float)
ERROR 2014-06-18 15:48:38,147 get_actions(): error executing <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND to_user = '**
_'>: can't set attribute
ERROR 2014-06-18 15:48:38,147 CointipBot::check_inbox(): can't set attribute
ERROR 2014-06-18 15:48:38,147 CointipBot::main(): exception: can't set attribute
ERROR 2014-06-18 15:48:38,236 CointipBot::main(): traceback: Traceback (most recent call last):
File "cointipbot.py", line 558, in main
self.check_inbox()
File "cointipbot.py", line 241, in check_inbox
action.do()
File "ctb/ctb_action.py", line 303, in do
return self.accept()
File "ctb/ctb_action.py", line 379, in accept
actions = get_actions(atype='givetip', to_user=self.u_from.name, state='pending', ctb=self.ctb)
File "ctb/ctb_action.py", line 1254, in get_actions
submission = ctb_misc.praw_call(ctb.reddit.get_submission, m['msg_link'])
File "ctb/ctb_misc.py", line 38, in praw_call
res = prawFunc(_extraArgs, *_extraKwArgs)
File "/usr/local/lib/python2.7/dist-packages/praw/init.py", line 888, in get_submission
comment_sort=comment_sort)
File "/usr/local/lib/python2.7/dist-packages/praw/decorators.py", line 323, in wrapped
return function(cls, *args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 842, in from_url
s_info, c_info = reddit_session.request_json(url, params=params)
File "/usr/local/lib/python2.7/dist-packages/praw/decorators.py", line 161, in wrapped
return_value = function(reddit_session, _args, *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/praw/init.py", line 496, in request_json
data = json.loads(response, object_hook=hook)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 381, in raw_decode
obj, end = self.scan_once(s, idx)
File "/usr/local/lib/python2.7/dist-packages/praw/init.py", line 391, in _json_reddit_objecter
return object_class.from_api_response(self, json_data['data'])
File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 56, in from_api_response
return cls(reddit_session, json_dict=json_dict)
File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 510, in init
underscore_names=['replies'])
File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 70, in init
self.has_fetched = self._populate(json_dict, fetch)
File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 137, in _populate
setattr(self, name, value)
File "/usr/local/lib/python2.7/dist-packages/praw/objects.py", line 98, in setattr
object.setattr(self, name, value)
AttributeError: can't set attribute

ERROR 2014-06-19 03:24:08,351 get_actions(): error executing <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND coin = 'ltc'>: can't set attribute
ERROR 2014-06-19 03:24:21,654 get_actions(): error executing <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND coin = 'ltc'>: can't set attribute
info.log when trying to restart

INFO 2014-06-19 03:43:46,523 : can't set attribute
end of debug.log when trying to restart

DEBUG 2014-06-19 03:43:47,040 get_actions(): <SELECT * FROM t_action WHERE type = 'givetip' AND state = 'pending' AND coin = 'ltc'>
DEBUG 2014-06-19 03:43:47,043 get_actions(): found http://www.reddit.com/r/teenagers/comments/28cuzp/discussion_thirst_thread/ci9owg4 / ci9owg4
ERROR 2014-06-19 03:43:48,582 get_actions(): error executing : can't set attribute

Reply to this email directly or view it on GitHub.

@ghost
Copy link
Author

ghost commented Jun 19, 2014

I don't see why that would suddenly cause an error after many months but I'll look into it.

@ghost
Copy link
Author

ghost commented Jun 19, 2014

Something that didn't get written to the log: praw was updated 10 hours ago. That's what was causing the failure.

@ghost ghost closed this as completed Jun 19, 2014
This issue was closed.
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

1 participant