Python Forum
Importing/loading a library file (.so)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Importing/loading a library file (.so)
#1
I have a Python extension library, written in C (name.so with PyInit_name entry point).

How do I load this file in Python? Preferably from the current directory with no installation, or else with minimal fuss.

(I am using Python 3.6.7 under Ubuntu.)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Next/Prev file without loading all filenames WilliamKappler 9 5,421 Apr-12-2024, 05:13 AM
Last Post: Pedroski55
  Calling a function (which accesses a library) from another file mouse9095 4 6,403 Jun-07-2023, 08:55 PM
Last Post: deanhystad
  New2Python: Help with Importing/Mapping Image Src to Image Code in File CluelessITguy 0 1,615 Nov-17-2022, 04:46 PM
Last Post: CluelessITguy
  python standard way of importing library mg24 1 1,987 Nov-15-2022, 01:41 AM
Last Post: deanhystad
  Problem with importing python-telegram library into the project gandonio 1 6,845 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  [Solved by deanhystad] Create a zip file using zipfile library DZ_Galaxy 2 11,123 Aug-17-2022, 04:57 PM
Last Post: DZ_Galaxy
  Problem with importing Python file in Visual Studio Code DXav 7 13,530 Jun-15-2022, 12:54 PM
Last Post: snippsat
  importing functions from a separate python file in a separate directory Scordomaniac 3 2,997 May-17-2022, 07:49 AM
Last Post: Pedroski55
  Importing a function from another file runs the old lines also dedesssse 6 4,663 Jul-06-2021, 07:04 PM
Last Post: deanhystad
  Importing text file into excel spreadsheet with formatting david_dsmn 1 5,428 Apr-05-2021, 10:21 PM
Last Post: david_dsmn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020