Page 1 of 1

Can't run Source Python

Posted: Fri Jun 28, 2019 8:10 pm
by SoxDrengen
Hello!

I have installed Source Python on one of my Linux CSGO serveres. However when I run the plugin i get this error in my console:

Code: Select all

[Source.Python] Loading...
[Source.Python] Failed to load the main module due to following exception:
Traceback (most recent call last):
 
  File "csgo/addons/source-python/packages/source-python/__init__.py", line 98, in load
    setup_sqlite()
 
  File "csgo/addons/source-python/packages/source-python/__init__.py", line 453, in setup_sqlite
    import ctypes
 
  File "csgo/addons/source-python/Python3/ctypes/__init__.py", line 7, in <module>
    from _ctypes import Union, Structure, Array
 
ImportError: libffi.so.6: cannot open shared object file: No such file or directory
[Source.Python] Could not initialize python.
Failed to load plugin "addons/source-python"
[Source.Python] Unloading...
#[Source.Python] Unloaded successfully.


Can somebody help me with what I need in order to get this to work? I haven't adjusted any of the config files. I have also tried to run it on a clean server with only Metamod and Sourcemod installed and same result.

Hope someone can help me! :smile:

Re: Can't run Source Python

Posted: Fri Jun 28, 2019 8:30 pm
by L'In20Cible

Re: Can't run Source Python

Posted: Sat Jun 29, 2019 11:23 am
by SoxDrengen
L'In20Cible wrote:You need the 32 bits version: http://wiki.sourcepython.com/general/installation.html


I currently run on Centos 7, do you know the commands for getting it downloaded for that?

Re: Can't run Source Python

Posted: Sat Jun 29, 2019 8:54 pm
by BackRaw
https://centos.pkgs.org/6/centos-x86_64/

Try that maybe, don't know if it's the right one.