New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression for importing extensions in packages #68473
Comments
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) |
The attached patch appears to fix the issue. This appears to be an off-by-one error. |
bpo-24268 has a patch with a test case. |
New changeset 55e6f3f94b99 by Nick Coghlan in branch '3.5': New changeset 32ee7b9d58c9 by Nick Coghlan in branch 'default': |
Since this error was in the beta release, I used this issue reference in the NEWS file, rather than the original implementation issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: