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.
https://github.com/benhoyt/scandir/issues/51 https://groups.google.com/forum/#!topic/jupyter/0wWWvg7YjZo You best bet is to send this to PYPY mailing list, bitbucket or twitter: https://mail.python.org/mailman/listinfo/pypy-dev https://twitter.com/pypyproject?lang=en https://bitbucket.org/pypy/pypy/issues?status=new&status=open On Friday, December 1, 2017 at 2:07:21 PM UTC-6, John wrote: > > 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 > -- You received this message because you are subscribed to the Google Groups "Project Jupyter" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/2046694d-ee48-41cc-b449-5c8dc8a54c50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
