[issue1532] Running ipython with pypy on windows

New submission from Dusan Smitran <dusan.smitran@gmail.com>: Dont know where to put this issue im having with running ipython (ipython-0.13.2) with pypy 32 bit (2.0.2) on Windows 7 64bit. Is it more a pypy issue? When running in pypy\bin: ipython.exe i get the following traceback: C:\python\pypy\bin> ipython.exe cffi_g85535e98x310af836.c c:\python\pypy\lib_pypy__pycache___cffi__g85535e98x310af836.c(26) : fatal error C1083: Cannot open include file: 'ncurses.h': No such file or directory Traceback (most recent call last): File "app_main.py", line 72, in run_toplevel File "c:\python\pypy\bin\ipython-script.py", line 9, in load_entry_point('ipython==0.13.2', 'console_scripts', 'ipython')() File "build\bdist.win32\egg\pkg_resources.py", line 378, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "build\bdist.win32\egg\pkg_resources.py", line 2566, in load_entry_point return ep.load() File "build\bdist.win32\egg\pkg_resources.py", line 2260, in load entry = import(self.module_name, globals(),globals(), ['__name__']) File "c:\python\pypy\site-packages\ipython-0.13.2-py2.7.egg\IPython__init__.py", line 46, in ule> from .frontend.terminal.embed import embed File "c:\python\pypy\site-packages\ipython-0.13.2- py2.7.egg\IPython\frontend\terminal\embed.py", l ine 38, in from IPython.core.magic import Magics, magics_class, line_magic File "c:\python\pypy\site-packages\ipython-0.13.2-py2.7.egg\IPython\core\magic.py", line 26, in odule> from IPython.core import oinspect File "c:\python\pypy\site-packages\ipython-0.13.2-py2.7.egg\IPython\core\oinspect.py", line 33, in from IPython.core import page File "c:\python\pypy\site-packages\ipython-0.13.2-py2.7.egg\IPython\core\page.py", line 39, in dule> from IPython.utils.cursesimport import use_curses File "c:\python\pypy\site-packages\ipython-0.13.2- py2.7.egg\IPython\utils\cursesimport.py", line 2 3, in import curses File "c:\python\pypy\lib-python\2.7\curses__init__.py", line 15, in from curses import * File "c:\python\pypy\lib_pypy_curses.py", line 319, in """, libraries=['ncurses', 'panel']) File "c:\python\pypy\lib_pypy\cffi\api.py", line 311, in verify lib = self.verifier.load_library() File "c:\python\pypy\lib_pypy\cffi\verifier.py", line 68, in load_library self.compile_module() File "c:\python\pypy\lib_pypy\cffi\verifier.py", line 56, in compile_module self._compile_module() File "c:\python\pypy\lib_pypy\cffi\verifier.py", line 142, in _compile_module outputfilename = ffiplatform.compile(tmpdir, self.get_extension()) File "c:\python\pypy\lib_pypy\cffi\ffiplatform.py", line 25, in compile outputfilename = _build(tmpdir, ext) File "c:\python\pypy\lib_pypy\cffi\ffiplatform.py", line 50, in _build raise VerificationError('%s: %s' % (e._class__.__name__, e)) VerificationError: CompileError: command 'c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\ cl.exe' failed with exit status 2 link to issue on ipython github: https://github.com/ipython/ipython/issues/3580 ---------- messages: 5916 nosy: pypy-issue, xgo priority: wish status: unread title: Running ipython with pypy on windows ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1532> ________________________________________

Amaury Forgeot d Arc <amauryfa@gmail.com> added the comment: Yes it's a pypy issue; in lib_pypy/_curses.py, the VerificationError should be turned into an ImportError. ---------- nosy: +amaury status: unread -> chatting ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1532> ________________________________________

Armin Rigo <armin.rigo@gmail.com> added the comment: Is it a good idea to always raise ImportError from ffi.verify() directly? What about the fact that any run of ipython.exe (for example) will dump some errors of the C compiler to stderr? ---------- nosy: +arigo ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1532> ________________________________________

Dusan Smitran <dusan.smitran@gmail.com> added the comment: If u need a tester for a possible patch please let me know. ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1532> ________________________________________

mattip <matti.picus@gmail.com> added the comment: _curses does not exist on windows, can we solve this with the following at the top of lib_pypy\_curses.py ------------- if sys.platform == 'win32': raise ImportError('no _curses on windows') -------------- ---------- nosy: +mattip priority: wish -> bug status: chatting -> in-progress ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1532> ________________________________________

mattip <matti.picus@gmail.com> added the comment: fixed in changeset 9e7bb222d72f ---------- status: in-progress -> resolved ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1532> ________________________________________
participants (4)
-
Amaury Forgeot d Arc
-
Armin Rigo
-
Dusan Smitran
-
mattip