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

All other Source.Python topics and issues.
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

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

Postby Painkiller » Tue Feb 05, 2019 5:07 pm

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.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

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

Postby Ayuto » Tue Feb 05, 2019 5:51 pm

Your plugins depends on a custom package (geoip). You need to install that package on your own.
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

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

Postby Painkiller » Wed Feb 06, 2019 9:56 am

User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

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

Postby Ayuto » Wed Feb 06, 2019 1:41 pm

Yes
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

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

Postby Painkiller » Thu Feb 07, 2019 7:01 pm

Was I inserting it into SourcePython?
User avatar
Kill
Member
Posts: 88
Joined: Wed Aug 31, 2016 10:05 pm

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

Postby Kill » Fri Feb 08, 2019 6:01 pm

You need to run this command:

pip install geoip2

in your OS console (requires pip).
User avatar
Painkiller
Senior Member
Posts: 725
Joined: Sun Mar 01, 2015 8:09 am
Location: Germany
Contact:

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

Postby Painkiller » Mon Feb 11, 2019 8:31 am

I wanted to know what to do with Sourcepython.

Since this is already installed on my root.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 18 guests