Page 1 of 1

Trouble loading plugin (sqlite import error)

Posted: Thu Mar 03, 2016 2:29 pm
by baiumbg
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.

Posted: Thu Mar 03, 2016 11:23 pm
by L'In20Cible
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.

Posted: Fri Mar 04, 2016 3:50 pm
by stonedegg
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/.

Posted: Fri Mar 04, 2016 4:01 pm
by satoon101
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

Posted: Fri Mar 04, 2016 4:15 pm
by baiumbg
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! :)