idies / pyJHTDB

Python wrapper for the Johns Hopkins turbulence database library
Apache License 2.0
96 stars 47 forks source link

Installation error (Windows, Python 3.5) #20

Closed BenLeclaire closed 4 years ago

BenLeclaire commented 6 years ago

Hi,

Under Windows 7, I followed the installation procedure using pip (i.e., pip install pyJHTDB). I'm getting error messages during the compilation of stdsoap2.c, apparently linked to variable PyInit_libJHTDB not being recognized, as shown below. The same error occurs while building the wheel, and then at the lib build step. Is there any known fix for this? Or, is there a different possibility to install the JHTDB Python package for Windows, that I should try? Thank you in advance.

Benjamin

PS: the error messages:

Wheel step:

stdsoap2.c C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\1 4.14.26428\bin\HostX64\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /nodefaultlib: libucrt.lib ucrt.lib /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\lecla ire\Documents\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\libs /LIBPATH:D:\lec laire\Documents\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\PCbuild\amd64 "/LI BPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MS VC\14.14.26428\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10. 0.17134.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17 134.0\um\x64" /EXPORT:PyInit_libJHTDB build\temp.win-amd64-3.5\Release\C/local_t ools.obj build\temp.win-amd64-3.5\Release\turblib/turblib.obj build\temp.win-amd 64-3.5\Release\turblib/soapC.obj build\temp.win-amd64-3.5\Release\turblib/soapCl ient.obj build\temp.win-amd64-3.5\Release\turblib/stdsoap2.obj /OUT:build\lib.wi n-amd64-3.5\libJHTDB.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\C\libJHTDB.lib

LINK : error LNK2001: symbole externe non résolu PyInit_libJHTDB build\temp.win-amd64-3.5\Release\C\libJHTDB.lib : fatal error LNK1120: 1 exter nes non résolus error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildT ools\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe' failed with exi t status 1120


Failed building wheel for pyJHTDB

Build step:

stdsoap2.c
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC

\14.14.26428\bin\HostX64\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /nodefaultli b:libucrt.lib ucrt.lib /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\lec laire\Documents\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\libs /LIBPATH:D:\l eclaire\Documents\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\PCbuild\amd64 "/ LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\ MSVC\14.14.26428\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\1 0.0.17134.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0. 17134.0\um\x64" /EXPORT:PyInit_libJHTDB build\temp.win-amd64-3.5\Release\C/local _tools.obj build\temp.win-amd64-3.5\Release\turblib/turblib.obj build\temp.win-a md64-3.5\Release\turblib/soapC.obj build\temp.win-amd64-3.5\Release\turblib/soap Client.obj build\temp.win-amd64-3.5\Release\turblib/stdsoap2.obj /OUT:build\lib. win-amd64-3.5\libJHTDB.pyd /IMPLIB:build\temp.win-amd64-3.5\Release\C\libJHTDB.l ib LINK : error LNK2001: symbole externe non résolu PyInit_libJHTDB build\temp.win-amd64-3.5\Release\C\libJHTDB.lib : fatal error LNK1120: 1 ext ernes non résolus error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Buil dTools\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe' failed with e xit status 1120

----------------------------------------

Command "D:\leclaire\Documents\WinPython-64bit-3.5.3.1Qt5\python-3.5.3.amd64\pyt hon.exe -u -c "import setuptools, tokenize;file='D:\leclaire\AppData\Loca l\Temp\pip-install-ypnhpjlg\pyJHTDB\setup.py';f=getattr(tokenize, 'open', op en)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, _ _file__, 'exec'))" install --record D:\leclaire\AppData\Local\Temp\pip-record-ue c5zoke\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in D:\leclaire\AppData\Local\Temp\pip-install-ypnhpjlg\pyJHTDB