[New-bugs-announce] [issue24285] regression for importing extensions in packages

Ronald Oussoren report at bugs.python.org
Mon May 25 14:04:49 CEST 2015


New submission from Ronald Oussoren:

PyObjC has an extension that's imported as "objc._objc". This works fine on version upto the 3.5 beta (checkout from earlier today).

With that I get the following exception:

Python 3.5.0b1+ (default:7255af1a1c50+, May 25 2015, 11:46:18) 
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import objc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/ronald/Projects/pyobjc-hg/pyobjc/pyobjc-core/Lib/objc/__init__.py", line 18, in <module>
    _update()
  File "/Users/ronald/Projects/pyobjc-hg/pyobjc/pyobjc-core/Lib/objc/__init__.py", line 15, in _update
    import objc._objc as _objc
ImportError: dynamic module does not define module export function (PyInit_._objc)

----------
messages: 244030
nosy: brett.cannon, eric.snow, ncoghlan, ronaldoussoren
priority: high
severity: normal
status: open
title: regression for importing extensions in packages
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24285>
_______________________________________


More information about the New-bugs-announce mailing list