PyPy install ipykernel on windows error

37 views
Skip to first unread message

John

unread,
Dec 1, 2017, 3:07:21 PM12/1/17
to Project Jupyter
Hi

   I tried installing ipykernel on PyPy for Python 2 on a windows machine with the command.

  pypy -m pip install ipykernel

and I get the following error.

    C:\Users\John\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Users\John\pypy2-v5.9.0-win32\libs /EXPORT:init_scandir build\temp.win32-2.7\Release\_scandir.obj /OUT:build\lib.win32-2.7\_scandir.pypy-41.pyd /IMPLIB:build\temp.win32-2.7\Release\_scandir.pypy-41.lib /MANIFEST /MANIFESTFILE:build\temp.win32-2.7\Release\_scandir.pypy-41.pyd.manifest
       Creating library build\temp.win32-2.7\Release\_scandir.pypy-41.lib and object build\temp.win32-2.7\Release\_scandir.pypy-41.exp
    _scandir.obj : error LNK2019: unresolved external symbol _PyErr_SetExcFromWindowsErrWithFilenameObject referenced in function _path_error
    build\lib.win32-2.7\_scandir.pypy-41.pyd : fatal error LNK1120: 1 unresolved externals
    error: command 'C:\\Users\\John\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\link.exe' failed with exit status 1120

    ----------------------------------------
Command "C:\Users\John\pypy2-v5.9.0-win32\pypy.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\john\\appdata\\local\\temp\\pip-build-xxehts\\scandir\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\john\appdata\local\temp\pip-60jyok-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\john\appdata\local\temp\pip-build-xxehts\scandir\


Does anyone know what needs to be done to prevent this error from happening?  Is anyone able to perform this command on windows without getting the error.

Thanks

John

Denis Akhiyarov

unread,
Dec 5, 2017, 11:17:42 AM12/5/17
to Project Jupyter
This was reported in multiple places and does not work in latest pypy2-v5.9.0-win32 with latest pip and setuptools. I reproduced this on my machine.

Denis Akhiyarov

unread,
Dec 5, 2017, 11:21:42 AM12/5/17
to Project Jupyter
Reply all
Reply to author
Forward
0 new messages