Page 1 of 1

[BM:S] ModuleNotFoundError: No module named 'geoip2'

Posted: Tue Feb 05, 2019 5:07 pm
by Painkiller
Hello i have a error in my Advertsment Plugin, can anybody help?

Syntax: Select all

[SP] Loading plugin 'country_tag'...

[SP] Caught an Exception:
Traceback (most recent call last):
File "../addons/source-python/packages/source-python/plugins/command.py", line 162, in load_plugin
plugin = self.manager.load(plugin_name)
File "../addons/source-python/packages/source-python/plugins/manager.py", line 194, in load
plugin._load()
File "../addons/source-python/packages/source-python/plugins/instance.py", line 74, in _load
self.module = import_module(self.import_name)
File "../addons/source-python/plugins/country_tag/country_tag.py", line 3, in <module>
import geoip2.database

ModuleNotFoundError: No module named 'geoip2'


[SP] Plugin 'country_tag' was unable to be loaded.

Re: [BM:S] ModuleNotFoundError: No module named 'geoip2'

Posted: Tue Feb 05, 2019 5:51 pm
by Ayuto
Your plugins depends on a custom package (geoip). You need to install that package on your own.

Re: [BM:S] ModuleNotFoundError: No module named 'geoip2'

Posted: Wed Feb 06, 2019 9:56 am
by Painkiller

Re: [BM:S] ModuleNotFoundError: No module named 'geoip2'

Posted: Wed Feb 06, 2019 1:41 pm
by Ayuto
Yes

Re: [BM:S] ModuleNotFoundError: No module named 'geoip2'

Posted: Thu Feb 07, 2019 7:01 pm
by Painkiller
Was I inserting it into SourcePython?

Re: [BM:S] ModuleNotFoundError: No module named 'geoip2'

Posted: Fri Feb 08, 2019 6:01 pm
by Kill
You need to run this command:

pip install geoip2

in your OS console (requires pip).

Re: [BM:S] ModuleNotFoundError: No module named 'geoip2'

Posted: Mon Feb 11, 2019 8:31 am
by Painkiller
I wanted to know what to do with Sourcepython.

Since this is already installed on my root.