freiheit / discord_feedbot

Moved to https://gitlab.com/ffreiheit/discord_feedbot
MIT License
82 stars 28 forks source link

imp.py:32: PendingDeprecationWarning #58

Closed ghost closed 6 years ago

ghost commented 7 years ago

I've been using this bot for a week. past few hours i noticed my bot having yellow/Idle status (which usually show green/online status) so i hopped to check it's error. it says

/usr/lib/python3.4/imp.py:32: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  PendingDeprecationWarning)

rest of log is https://pastebin.com/raw/EA2hReFj please note that all line after Traceback (most recent call last): are appeared after i do keyboard interrupt

I already tried to reinstall all python modules including it's pip (i even do OS reinstall just to make sure). the problem still persist even after i do both above but:

heres my current version: ~/bot/discord_feedbot# pip freeze appdirs==1.4.3 cffi==0.8.6 chardet==2.3.0 colorama==0.3.2 cryptography==0.6.1 dnspython==1.12.0 html5lib==0.999 ndg-httpsclient==0.3.2 packaging==16.8 ply==3.4 pyasn1==0.1.7 pycparser==2.10 pycrypto==2.6.1 pyOpenSSL==0.14 pyparsing==2.2.0 requests==2.4.3 six==1.10.0 urllib3==1.9.1 ws4py==0.3.5

is there any workaround to fix this? i'd like to see my bot status set to green/online instead of yellow after this error appeared.

thank you in advance

freiheit commented 6 years ago

I don't directly use the "imp" module, so it's likely that it's one of the specific modules you have installed that's calling it in... Sorry, but I don't have the time or expertise to debug every possible python install.