-
Notifications
You must be signed in to change notification settings - Fork 350
IronPython module import issues with IPython 1.0 - AttributeError: 'module' object has no attribute 'core' #123
Comments
I ran into this myself over the weekend and I couldn't quite figure it out either. Directly importing IPython.core immediately before it doesn't work either. I'm think there must be something special about the IPython module namespace that's tripping up IronPython, but I haven't figured out what it is yet. |
Any ideas anyone? I have the same problem though using suggestions ipython/ipython#4062 I still get issues. |
(copied this from same response in issue linked above). There does seem to be some bug in IronPython 2.7.x (9cbff4c) with ipython-2.0.0-dev ebf12123833c207995a03dc9bb542ecf35cc1dcc related to the way modules are imported which breaks the ipython "shell" script. I found this code successful from IPython import core as C
import IPython
IPython.core = C
from IPython import start_ipython
start_ipython() It's something to do with the PlatformAdaptionLayer and wierd behaviour with nested packages in IronPython which I can't quite pin down. However the workaround is "working" at the moment. |
I have commited a fix in IronPython (94b55df in ipy-2.7-maint) On Fri, Oct 18, 2013 at 3:17 PM, swinstanley notifications@github.comwrote:
|
Looks like this has been fixed and can be closed? |
Just for the record I will maintain forks/branches for the purpose of using ipython under IronPython. https://github.com/paweljasinski/IronLanguages/tree/ipython-notepad - patches in IronPython Once merged into the official tree, branches will disappear. ipython and tornado will stay forever, as there is no intention to merge 2.x based IronPython changes into the master. |
I've originally tried to get to the bottom of this in ipython/ipython#4062
My question here is, why do the imports in IronPython behave differently than in cPython? Any ideas what would be the right way to solve/work around this?
Thanks
The text was updated successfully, but these errors were encountered: