Trouble loading plugin (sqlite import error)

All other Source.Python topics and issues.
baiumbg
Junior Member
Posts: 2
Joined: Thu Mar 03, 2016 2:25 pm

Trouble loading plugin (sqlite import error)

Postby baiumbg » Thu Mar 03, 2016 2:29 pm

Hello, first timer here. I seem to be having trouble loading an addon - SP loads correctly, but I get this when I try to load the plugin:

Code: Select all

[SP] Loading plugin 'wcgo'...

[SP] Caught an Exception:
Traceback (most recent call last):
  File '../addons/source-python/packages/source-python/plugins/manager.py', line 71, in __missing__
    instance = self.instance(plugin_name, self.base_import)
  File '../addons/source-python/packages/source-python/plugins/instance.py', line 82, in __init__
    self._plugin = import_module(import_name)
  File '../addons/source-python/plugins/wcgo/wcgo.py', line 25, in <module>
    import wcgo.database
  File '../addons/source-python/plugins/wcgo/database.py', line 4, in <module>
    import sqlite3
  File '../addons/source-python/Python3/sqlite3/__init__.py', line 23, in <module>
    from sqlite3.dbapi2 import *
  File '../addons/source-python/Python3/sqlite3/dbapi2.py', line 26, in <module>
    from _sqlite3 import *

ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory


I have sqlite installed on my system - never had any problems with it before.

EDIT: Running CentOS 7.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Thu Mar 03, 2016 11:23 pm

Welcome on the forums!

baiumbg wrote:I have sqlite installed on my system - never had any problems with it before.

Make sure you have the 32bits version installed.
stonedegg
Senior Member
Posts: 141
Joined: Sun Aug 12, 2012 11:45 am

Postby stonedegg » Fri Mar 04, 2016 3:50 pm

Copy/Paste libsqlite3.so.0 in either /server/bin/ or /server/csgo/bin/ (I don't remember exactly which folder it was). You can find it in /server/csgo/addons/source-python/Python3/plat-linux/.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Fri Mar 04, 2016 4:01 pm

For future reference, this was posted on our Issues List a little over a month ago:
https://github.com/Source-Python-Dev-Team/Source.Python/issues/110
Image
baiumbg
Junior Member
Posts: 2
Joined: Thu Mar 03, 2016 2:25 pm

Postby baiumbg » Fri Mar 04, 2016 4:15 pm

L'In20Cible wrote:Welcome on the forums!

baiumbg wrote:I have sqlite installed on my system - never had any problems with it before.

Make sure you have the 32bits version installed.

I had both the 32bit and 64bit versions installed.

stonedegg wrote:Copy/Paste libsqlite3.so.0 in either /server/bin/ or /server/csgo/bin/ (I don't remember exactly which folder it was). You can find it in /server/csgo/addons/source-python/Python3/plat-linux/.

satoon101 wrote:For future reference, this was posted on our Issues List a little over a month ago:
https://github.com/Source-Python-Dev-Team/Source.Python/issues/110

Copying it to either one seems fix it (moved it to the bin folder in the end for consistency)!

Thanks for the replies everyone! :)

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 13 guests