lepinkainen / pyfibot

Pyfibot the Python IRC bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

missing dependency: module_geoip.py

opened this issue · comments

Hello,
the bot runs on Debian 6 with all requirements installed as per installation instructions.
I receive the following messages:

[19:58:51 pyfibot@debian:~/pyfibot ] # ./run.sh
[2013-11-26 19:58:55,757][INFO ][core ] connecting to 192.168.2.20:6667
[2013-11-26 19:58:55,757][INFO ][core ] load module - module_autorejoin.py
[2013-11-26 19:58:55,758][INFO ][core ] load module - module_urltitle.py
[2013-11-26 19:58:55,942][INFO ][core ] initialize module - module_urltitle.py
[2013-11-26 19:58:55,943][INFO ][core ] load module - module_imdb.py
[2013-11-26 19:58:55,960][INFO ][core ] load module - module_bmi.py
[2013-11-26 19:58:55,961][INFO ][core ] load module - module_autoop.py
[2013-11-26 19:58:56,015][INFO ][core ] initialize module - module_autoop.py
[2013-11-26 19:58:56,028][INFO ][core ] load module - module_wolfram_alpha.py
[2013-11-26 19:58:56,032][INFO ][core ] initialize module - module_wolfram_alpha.py
[2013-11-26 19:58:56,033][WARNING ][wolfram_alpha ] Appid not found from config!
[2013-11-26 19:58:56,034][INFO ][core ] load module - module_urlsize.py
[2013-11-26 19:58:56,035][INFO ][core ] load module - module_posti.py
[2013-11-26 19:58:56,039][INFO ][core ] load module - module_rss.py
[2013-11-26 19:58:56,263][INFO ][core ] initialize module - module_rss.py
[2013-11-26 19:58:56,270][INFO ][core ] load module - module_webchat.py
[2013-11-26 19:58:56,271][INFO ][core ] load module - module_btc.py
[2013-11-26 19:58:56,272][INFO ][core ] load module - module_thetvdb.py
[2013-11-26 19:58:56,357][INFO ][core ] load module - module_spotify.py
[2013-11-26 19:58:56,358][INFO ][core ] load module - module_update.py
[2013-11-26 19:58:56,360][INFO ][core ] load module - module_openweather.py
[2013-11-26 19:58:56,363][INFO ][core ] initialize module - module_openweather.py
[2013-11-26 19:58:56,363][INFO ][openweather ] Using Helsinki as default location
[2013-11-26 19:58:56,363][INFO ][core ] load module - module_geoip.py
Traceback (most recent call last):
File "pyfibot/pyfibot.py", line 464, in
main()
File "pyfibot/pyfibot.py", line 460, in main
reactor.connectTCP(server_name, port, factory)
File "/home/pyfibot/pyfibot/lib/python2.6/site-packages/Twisted-13.2.0-py2.6-linux-i686.egg/twisted/internet/posixbase.py", line 500, in connectTCP
c.connect()
File "/home/pyfibot/pyfibot/lib/python2.6/site-packages/Twisted-13.2.0-py2.6-linux-i686.egg/twisted/internet/base.py", line 1044, in connect
self.factory.doStart()
File "/home/pyfibot/pyfibot/lib/python2.6/site-packages/Twisted-13.2.0-py2.6-linux-i686.egg/twisted/internet/protocol.py", line 72, in doStart
self.startFactory()
File "pyfibot/pyfibot.py", line 112, in startFactory
self._loadmodules()
File "pyfibot/pyfibot.py", line 211, in _loadmodules
execfile(os.path.join(self.moduledir, module), env, env)
File "/home/pyfibot/pyfibot/pyfibot/modules/module_geoip.py", line 2, in
import pygeoip
ImportError: No module named pygeoip

Try running pip install -r requirements.txt in the virtualenv to make sure you have all the required libraries installed.

Thanks, that helped and the bot is running now.