Created on 2015-05-25 12:04 by ronaldoussoren, last changed 2015-05-26 11:58 by ncoghlan. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue-24285.txt | ronaldoussoren, 2015-05-25 12:07 | review | ||
| Messages (5) | |||
|---|---|---|---|
| msg244030 - (view) | Author: Ronald Oussoren (ronaldoussoren) * | Date: 2015-05-25 12:04 | |
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) |
|||
| msg244031 - (view) | Author: Ronald Oussoren (ronaldoussoren) * | Date: 2015-05-25 12:07 | |
The attached patch appears to fix the issue. This appears to be an off-by-one error. |
|||
| msg244035 - (view) | Author: Petr Viktorin (petr.viktorin) * | Date: 2015-05-25 13:47 | |
issue 24268 has a patch with a test case. |
|||
| msg244098 - (view) | Author: Roundup Robot (python-dev) | Date: 2015-05-26 11:57 | |
New changeset 55e6f3f94b99 by Nick Coghlan in branch '3.5': Issue #24285: fix importing extensions from packages https://hg.python.org/cpython/rev/55e6f3f94b99 New changeset 32ee7b9d58c9 by Nick Coghlan in branch 'default': Merge fix for issue #24285 from 3.5 https://hg.python.org/cpython/rev/32ee7b9d58c9 |
|||
| msg244099 - (view) | Author: Nick Coghlan (ncoghlan) * | Date: 2015-05-26 11:58 | |
Since this error was in the beta release, I used this issue reference in the NEWS file, rather than the original implementation issue. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-05-26 11:58:35 | ncoghlan | set | resolution: duplicate -> fixed messages: + msg244099 |
| 2015-05-26 11:57:42 | python-dev | set | nosy:
+ python-dev messages: + msg244098 |
| 2015-05-25 21:22:20 | berker.peksag | set | status: open -> closed superseder: PEP 489 -- Multi-phase extension module initialization resolution: duplicate stage: needs patch -> resolved |
| 2015-05-25 13:47:52 | petr.viktorin | set | nosy:
+ petr.viktorin messages: + msg244035 |
| 2015-05-25 12:07:21 | ronaldoussoren | set | files:
+ issue-24285.txt type: behavior messages: + msg244031 stage: needs patch |
| 2015-05-25 12:04:49 | ronaldoussoren | create | |