Python Forum
external refs by libraries loaded with cdll
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
external refs by libraries loaded with cdll
#1
I'm trying to debug a runtime issue. I have a file "market.c", compiled to a shared library "market.so". It uses the glib2 call g_direct_equal extensively. When I try to load it with ctypes.CDLL, it fails with "undefined symbol: g_direct_equal".

glib2 IS in the LD_LIBRARY_PATH, and it does contain that function. Is there some sort of special magic needed to get market.so to find it? Or are libraries loaded by Python not supposed to make external calls?

I figured it out. The makefile needed "-lglib-2.0" in the line where libraries are defined.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is Matplotlib.pyplot Loaded DaveG 2 1,326 Apr-06-2022, 06:12 AM
Last Post: DaveG
  Package cannot be loaded into PBS queue file emersonpl 1 1,830 Sep-09-2021, 08:06 PM
Last Post: emersonpl
  PyQt5 MySQL Drivers Not Loaded AdeS 7 5,073 Aug-06-2021, 08:34 AM
Last Post: AdeS
  MacOS BigSur Python3 - dyld: Library not loaded: trillionanswers 1 4,204 Mar-02-2021, 11:00 PM
Last Post: nilamo
  Why is mpl_toolkits loaded? Gribouillis 1 1,606 Jan-30-2021, 08:39 PM
Last Post: Serafim
  start interactive pyhton shell with pre-loaded custom modules Viktor 2 2,199 Apr-09-2020, 08:25 AM
Last Post: Viktor
  When are imports loaded? MuntyScruntfundle 2 2,567 Feb-10-2019, 03:47 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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