LeeKamentsky / python-javabridge

Python wrapper for the Java Native Interface
Other
115 stars 63 forks source link

Python 3 Link Error: Looks for python2.7.lib #125

Open bacalfa opened 6 years ago

bacalfa commented 6 years ago

Tried installing via pip and got the following:

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.ex
e /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPA
TH:C:\Users\abreucb\AppData\Local\Continuum\anaconda3\LIBS /LIBPATH:C:\Users\abr
eucb\AppData\Local\Continuum\anaconda3\libs /LIBPATH:C:\Users\abreucb\AppData\Lo
cal\Continuum\anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft
 Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Vis
ual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Ki
ts\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\N
ETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\
winv6.3\um\x64" python2.7.lib /EXPORT:Java_org_cellprofiler_javabridge_CPython_e
xec build\temp.win-amd64-3.6\Release\java/org_cellprofiler_javabridge_CPython.ob
j /OUT:build\lib.win-amd64-3.6\javabridge\jars\java2cpython.dll /IMPLIB:build\te
mp.win-amd64-3.6\Release\java\java2cpython.lib
    LINK : fatal error LNK1181: cannot open input file 'python2.7.lib'
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\B
IN\\x86_amd64\\link.exe' failed with exit status 1181

I have Anaconda and Python 3. Not sure why the link command has python2.7.lib instead of, for example, python3.lib.

jni commented 6 years ago

Is this fixed by #127?