[IPython-dev] python3.2 + ipython : KO [Numpy-discussion] IPython on python3, for the adventurous...
Min RK
benjaminrk at gmail.com
Sat Jun 18 18:47:10 EDT 2011
I did not know otool was part of XCode.
That should definitely be conditional, and perhaps there is a better way to detect libedit without it.
-MinRK
On Jun 18, 2011, at 15:40, Fernando Perez <fperez.net at gmail.com> wrote:
> Hi Olivier,
>
> please send your messages about IPython to the list, not directly to
> me, so that others can also assist with the problem and the discussion
> is publicly archived. Here is the mailing list info:
>
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
> On Sat, Jun 18, 2011 at 7:41 AM, Olivier Darge <olivier.darge at gmail.com> wrote:
>> hello Fernando,
>>
>> I consider switching to python3,
>> currently 3.2 on mac.
>> I really want to continue using this nice IPython :-)
>>
>> I found this page off course... http://ipython.scipy.org/moin/Python3
>>
>> I cant' succeed running the last ipython3.
>>
>> installation of this package seems ok :
>>
>> mbp13:ipython-ipython-py3k-9c4fead odar$ python3 setup.py install
>> ============================================================================
>> BUILDING IPYTHON
>> python: 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1
>> (Apple Inc. build 5664)]
>> platform: darwin
>>
>> OPTIONAL DEPENDENCIES
>> sphinx: Not found (required for building documentation)
>> pygments: Not found (required for syntax highlighting
>> documentation)
>> nose: Not found (required for running the test suite)
>> pexpect: no (required for running standalone doctests)
>> pyzmq: no (required for qtconsole and parallel computing
>> capabilities)
>> readline: yes
>> running install
>> running build
>> running build_py
>> creating build
>> creating build/lib
>> creating build/lib/IPython
>>
>>
>> but, when running ipython3 executable... :
>>
>> mbp13:~ odar$ /Library/Frameworks/Python.framework/Versions/3.2/bin/ipython3
>> ; exit;
>> Error in sys.excepthook:
>> Traceback (most recent call last):
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/subprocess.py",
>> line 736, in __init__
>> restore_signals, start_new_session)
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/subprocess.py",
>> line 1330, in _execute_child
>> raise child_exception_type(errno_num, err_msg)
>> OSError: [Errno 2] No such file or directory: 'otool'
>>
>> Original exception was:
>> Traceback (most recent call last):
>> File "/Library/Frameworks/Python.framework/Versions/3.2/bin/ipython3",
>> line 10, in <module>
>> launch_new_instance()
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/frontend/terminal/ipapp.py",
>> line 662, in launch_new_instance
>> app.start()
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/core/application.py",
>> line 219, in start
>> self.initialize()
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/core/application.py",
>> line 211, in initialize
>> self.construct()
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/frontend/terminal/ipapp.py",
>> line 478, in construct
>> self.shell =
>> TerminalInteractiveShell.instance(config=self.master_config)
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/config/configurable.py",
>> line 203, in instance
>> inst = cls(*args, **kwargs)
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/frontend/terminal/interactiveshell.py",
>> line 86, in __init__
>> user_global_ns=user_global_ns, custom_exceptions=custom_exceptions
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/core/interactiveshell.py",
>> line 400, in __init__
>> self.init_readline()
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/core/interactiveshell.py",
>> line 1542, in init_readline
>> import IPython.utils.rlineimpl as readline
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/IPython/utils/rlineimpl.py",
>> line 59, in <module>
>> p = Popen(['otool', '-L', _rl.__file__], stdout=PIPE, stderr=PIPE)
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/subprocess.py",
>> line 736, in __init__
>> restore_signals, start_new_session)
>> File
>> "/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/subprocess.py",
>> line 1330, in _execute_child
>> raise child_exception_type(errno_num, err_msg)
>> OSError: [Errno 2] No such file or directory: 'otool'
>> logout
>>
>> [Opération terminée]
>>
>>
>> really strange.
>> What can be missing in my way of launching ipython3 executable ?
>>
>> btw, thanks a lot for providing IPython !
>>
>> cheers from Belgium,
>>
>> --
>> Olivier DARGE
>
> Indeed, as you already found out, it seems XCode is needed on the mac
> because of the unconditional call to otool.
>
> That sounds like a bug to me that we've effectively made Xcode a
> dependency on OSX, we shouldn't do that. But I'd like correction from
> our osx experts in case I'm wrong, before opening a ticket on this...
>
> Cheers,
>
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
More information about the IPython-dev
mailing list