Sourcepython installation libffi.so.6 error

All other Source.Python topics and issues.
User avatar
velocity
Senior Member
Posts: 186
Joined: Sat May 10, 2014 6:17 pm

Sourcepython installation libffi.so.6 error

Postby velocity » Wed Oct 03, 2018 11:53 am

I'm trying to install Sourcepython on a CSGO server on Ubuntu 18.04 LTS, I get the following error:

Code: Select all

[Source.Python] Failed to load the main module due to following exception:

Traceback (most recent call last):



  File "/home/ogp_agent/OGP_User_Files/1/csgo/addons/source-python/packages/source-python/__init__.py", line 98, in load

    setup_sqlite()



  File "/home/ogp_agent/OGP_User_Files/1/csgo/addons/source-python/packages/source-python/__init__.py", line 443, in setup_sqlite

    import ctypes



  File "/home/ogp_agent/OGP_User_Files/1/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
User avatar
Ayuto
Project Leader
Posts: 2013
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Sourcepython installation libffi.so.6 error

Postby Ayuto » Wed Oct 03, 2018 12:12 pm

Looks like the 32 bit version of libffi is missing. Please check the installation instructions on our wiki.
User avatar
velocity
Senior Member
Posts: 186
Joined: Sat May 10, 2014 6:17 pm

Re: Sourcepython installation libffi.so.6 error

Postby velocity » Wed Oct 03, 2018 8:47 pm

Oh yeah thanks, it mostly because I just go to builds and download right away, I don't see the installation instructions before I download.

I'm just gonna leave the solution here, if other people get confused:

Linux:

Code: Select all

apt-get install zlib1g:i386   
apt-get install libffi6:i386

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests