[issue43898] Python fails to import .dylib but works when extension is changed to .so

2021-04-20 Thread Ellis trisk-grove


New submission from Ellis trisk-grove :

This issue is pretty much summed up by the title. Python does manage to import 
the library and use it however only when the extension is .so otherwise python 
cannot find it and fails to import.

--
components: macOS
messages: 391473
nosy: etriskgrove, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Python fails to import .dylib but works when extension is changed to .so
versions: Python 3.9

___
Python tracker 
<https://bugs.python.org/issue43898>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43898] Python fails to import .dylib but works when extension is changed to .so

2021-04-21 Thread Ellis trisk-grove


Ellis trisk-grove  added the comment:

This is with regards to an python extension written in zig (I believe the same 
behaviour would occur from C as I am just using Python.h). What happens is when 
I compile the library on my mac it generates myLibrary.dylib file, when testing 
with python the following occurs:

>>> import myLibrary
Traceback (most recent call last):
  File "", line 1, in 
ModuleNotFoundError: No module named 'myLibrary'

However when changing the name of myLibrary.dylib to myLibrary.so python 
manages to import and use it as it should.

--

___
Python tracker 
<https://bugs.python.org/issue43898>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com