SAP / PyRFC

Asynchronous, non-blocking SAP NW RFC SDK bindings for Python
http://sap.github.io/PyRFC
Apache License 2.0
511 stars 139 forks source link

Cannot install PyRFC package #251

Closed gauribeg closed 2 years ago

gauribeg commented 2 years ago

Cannot install PyRFC package, tried doing it on PyCharm or CMD but it's the same

I tried installing it via 'pip install pyrfc'

This is the error I'm getting: `Collecting pyrfc Using cached pyrfc-2.4.2.tar.gz (258 kB) Requirement already satisfied: setuptools in c:\python\leccion 01\venv\lib\site-packages (from pyrfc) (57.0.0) Building wheels for collected packages: pyrfc Building wheel for pyrfc (setup.py): started Building wheel for pyrfc (setup.py): finished with status 'error' Running setup.py clean for pyrfc Failed to build pyrfc Installing collected packages: pyrfc Running setup.py install for pyrfc: started Running setup.py install for pyrfc: finished with status 'error'

ERROR: Command errored out with exit status 1: command: 'C:\Python\Leccion 01\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\setup.py'"'"'; file='"'"'C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\PC\AppData\Local\Temp\pip-wheel-m4d6ndgj' cwd: C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\ Complete output (116 lines): 750 Patch Level 8 running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\pyrfc copying src\pyrfc_exception.py -> build\lib.win-amd64-3.10\pyrfc copying src\pyrfc__init__.py -> build\lib.win-amd64-3.10\pyrfc warning: build_py: byte-compiling is disabled, skipping.

running build_ext skipping 'src/pyrfc_pyrfc.cpp' Cython extension (up-to-date) building 'pyrfc.pyrfc' extension creating build\temp.win-amd64-3.10 creating build\temp.win-amd64-3.10\Release creating build\temp.win-amd64-3.10\Release\src creating build\temp.win-amd64-3.10\Release\src\pyrfc C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DSAPonNT -D_CRT_NON_CONFORMING_SWPRINTFS -D_CRT_SECURE_NO_DEPRECATES -D_CRT_NONSTDC_NO_DEPRECATE -D_AFXDLL -DWIN32 -D_WIN32_WINNT=0x0502 -DWIN64 -DAMD64 -DNDEBUG -DSAPwithUNICODE -DUNICODE -D_UNICODE -DSAPwithTHREADS -D_ATL_ALLOW_CHAR_UNSIGNED -D_LARGEFILE_SOURCE -D_CONSOLE -DSAP_PLATFORM_MAKENAME=ntintel -IC:\Python\Leccion 01\venv\include -IC:\Program Files\Python310\include -IC:\Program Files\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /EHsc /Tpsrc/pyrfc_pyrfc.cpp /Fobuild\temp.win-amd64-3.10\Release\src/pyrfc_pyrfc.obj -IC:\nwrfcsdk\include -IC:\Program Files\Python310\lib\inspect.py\Include -IC:\Program Files\Python310\lib\inspect.py\Include\PC /EHs /Gy /J /MD /nologo /W3 /Z7 /GL /O2 /Oy- /we4552 /we4700 /we4789 _pyrfc.cpp src/pyrfc_pyrfc.cpp(4021): warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Python\Leccion 01\venv\libs /LIBPATH:C:\Program Files\Python310\libs /LIBPATH:C:\Program Files\Python310 /LIBPATH:C:\Python\Leccion 01\venv\PCbuild\amd64 /LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\lib\um\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64 sapnwrfc.lib libsapucum.lib /EXPORT:PyInit_pyrfc build\temp.win-amd64-3.10\Release\src/pyrfc_pyrfc.obj /OUT:build\lib.win-amd64-3.10\pyrfc\pyrfc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\src/pyrfc\pyrfc.cp310-win_amd64.lib -LIBPATH:C:\nwrfcsdk\lib -LIBPATH:C:\Program Files\Python310\lib\inspect.py\PCbuild /NXCOMPAT /STACK:0x2000000 /SWAPRUN:NET /DEBUG /OPT:REF /DEBUGTYPE:CV,FIXUP /MACHINE:amd64 /nologo /LTCG Creating library build\temp.win-amd64-3.10\Release\src/pyrfc\pyrfc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\src/pyrfc\pyrfc.cp310-win_amd64.exp _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFieldDescByName _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFunctionDesc _pyrfc.obj : error LNK2001: unresolved external symbol RfcAppendNewRow _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetString _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeLength _pyrfc.obj : error LNK2001: unresolved external symbol RfcResetServerContext _pyrfc.obj : error LNK2001: unresolved external symbol RfcSubmitUnit _pyrfc.obj : error LNK2001: unresolved external symbol RfcRemoveThroughputFromConnection _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetParameterDescByName _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTime _pyrfc.obj : error LNK2001: unresolved external symbol RfcCancel _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetNum _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetNum _pyrfc.obj : error LNK2001: unresolved external symbol RfcInstallGenericServerFunction _pyrfc.obj : error LNK2001: unresolved external symbol RfcUTF8ToSAPUC _pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyThroughput _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetParameterCount _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFloat _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFieldCount _pyrfc.obj : error LNK2001: unresolved external symbol RfcIsConnectionHandleValid _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetThroughputFromConnection _pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyTransaction _pyrfc.obj : error LNK2001: unresolved external symbol RfcLoadCryptoLibrary _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetInt8 _pyrfc.obj : error LNK2001: unresolved external symbol RfcSAPUCToUTF8 _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeAsString _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetXString _pyrfc.obj : error LNK2001: unresolved external symbol RfcSubmitTransaction _pyrfc.obj : error LNK2001: unresolved external symbol RfcResetThroughput _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetStructure _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetChars _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetInt _pyrfc.obj : error LNK2001: unresolved external symbol RfcShutdownServer _pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateServer _pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateUnit _pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateTransaction _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTotalTime _pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyUnit _pyrfc.obj : error LNK2001: unresolved external symbol RfcInvoke _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetConnectionAttributes _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeName _pyrfc.obj : error LNK2001: unresolved external symbol RfcRemoveFunctionDesc _pyrfc.obj : error LNK2001: unresolved external symbol RfcInvokeInTransaction _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt8 _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetUnitState _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt2 _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetXString _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetSentBytes _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetParameterActive _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetDate _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetStringLength _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTable _pyrfc.obj : error LNK2001: unresolved external symbol RfcCloseConnection _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTransactionID _pyrfc.obj : error LNK2001: unresolved external symbol RfcConfirmUnit _pyrfc.obj : error LNK2001: unresolved external symbol RfcDescribeFunction _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetChars _pyrfc.obj : error LNK2001: unresolved external symbol RfcDeleteCurrentRow _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetNumberOfCalls _pyrfc.obj : error LNK2001: unresolved external symbol RfcOpenConnection _pyrfc.obj : error LNK2001: unresolved external symbol RfcPing _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetString _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetRowCount _pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateFunction _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetSerializationTime _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetVersion _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt1 _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFieldDescByIndex _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetBytes _pyrfc.obj : error LNK2001: unresolved external symbol RfcLaunchServer _pyrfc.obj : error LNK2001: unresolved external symbol RfcInvokeInUnit _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetThroughputOnConnection _pyrfc.obj : error LNK2001: unresolved external symbol RfcMoveTo _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetUnitID _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetDate _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetBytes _pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyServer _pyrfc.obj : error LNK2001: unresolved external symbol RfcConfirmTransaction _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetDeserializationTime _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeDesc _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetTime _pyrfc.obj : error LNK2001: unresolved external symbol RfcSetIniPath _pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateThroughput _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetParameterDescByIndex _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetReceivedBytes _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFunctionName _pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyFunction _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetApplicationTime _pyrfc.obj : error LNK2001: unresolved external symbol RfcRemoveTypeDesc _pyrfc.obj : error LNK2001: unresolved external symbol RfcGetDirectionAsString build\lib.win-amd64-3.10\pyrfc\pyrfc.cp310-win_amd64.pyd : fatal error LNK1120: 91 unresolved externals error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\link.exe' failed with exit code 1120

ERROR: Failed building wheel for pyrfc ERROR: Command errored out with exit status 1: command: 'C:\Python\Leccion 01\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\setup.py'"'"'; file='"'"'C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PC\AppData\Local\Temp\pip-record-609a0_oe\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python\Leccion 01\venv\include\site\python3.10\pyrfc' cwd: C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\ Complete output (116 lines): 750 Patch Level 8 running install running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\pyrfc copying src\pyrfc_exception.py -> build\lib.win-amd64-3.10\pyrfc copying src\pyrfc__init__.py -> build\lib.win-amd64-3.10\pyrfc warning: build_py: byte-compiling is disabled, skipping.

running build_ext
skipping 'src/pyrfc\_pyrfc.cpp' Cython extension (up-to-date)
building 'pyrfc.pyrfc' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
creating build\temp.win-amd64-3.10\Release\src\pyrfc
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DSAPonNT -D_CRT_NON_CONFORMING_SWPRINTFS -D_CRT_SECURE_NO_DEPRECATES -D_CRT_NONSTDC_NO_DEPRECATE -D_AFXDLL -DWIN32 -D_WIN32_WINNT=0x0502 -DWIN64 -D_AMD64_ -DNDEBUG -DSAPwithUNICODE -DUNICODE -D_UNICODE -DSAPwithTHREADS -D_ATL_ALLOW_CHAR_UNSIGNED -D_LARGEFILE_SOURCE -D_CONSOLE -DSAP_PLATFORM_MAKENAME=ntintel -IC:\Python\Leccion 01\venv\include -IC:\Program Files\Python310\include -IC:\Program Files\Python310\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt /EHsc /Tpsrc/pyrfc\_pyrfc.cpp /Fobuild\temp.win-amd64-3.10\Release\src/pyrfc\_pyrfc.obj -IC:\nwrfcsdk\include -IC:\Program Files\Python310\lib\inspect.py\Include -IC:\Program Files\Python310\lib\inspect.py\Include\PC /EHs /Gy /J /MD /nologo /W3 /Z7 /GL /O2 /Oy- /we4552 /we4700 /we4789
_pyrfc.cpp
src/pyrfc\_pyrfc.cpp(4021): warning C4244: '=': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Python\Leccion 01\venv\libs /LIBPATH:C:\Program Files\Python310\libs /LIBPATH:C:\Program Files\Python310 /LIBPATH:C:\Python\Leccion 01\venv\PCbuild\amd64 /LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\lib\um\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.19041.0\\um\x64 sapnwrfc.lib libsapucum.lib /EXPORT:PyInit_pyrfc build\temp.win-amd64-3.10\Release\src/pyrfc\_pyrfc.obj /OUT:build\lib.win-amd64-3.10\pyrfc\pyrfc.cp310-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.10\Release\src/pyrfc\pyrfc.cp310-win_amd64.lib -LIBPATH:C:\nwrfcsdk\lib -LIBPATH:C:\Program Files\Python310\lib\inspect.py\PCbuild /NXCOMPAT /STACK:0x2000000 /SWAPRUN:NET /DEBUG /OPT:REF /DEBUGTYPE:CV,FIXUP /MACHINE:amd64 /nologo /LTCG
   Creating library build\temp.win-amd64-3.10\Release\src/pyrfc\pyrfc.cp310-win_amd64.lib and object build\temp.win-amd64-3.10\Release\src/pyrfc\pyrfc.cp310-win_amd64.exp
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFieldDescByName
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFunctionDesc
_pyrfc.obj : error LNK2001: unresolved external symbol RfcAppendNewRow
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetString
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeLength
_pyrfc.obj : error LNK2001: unresolved external symbol RfcResetServerContext
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSubmitUnit
_pyrfc.obj : error LNK2001: unresolved external symbol RfcRemoveThroughputFromConnection
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetParameterDescByName
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTime
_pyrfc.obj : error LNK2001: unresolved external symbol RfcCancel
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetNum
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetNum
_pyrfc.obj : error LNK2001: unresolved external symbol RfcInstallGenericServerFunction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcUTF8ToSAPUC
_pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyThroughput
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetParameterCount
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFloat
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFieldCount
_pyrfc.obj : error LNK2001: unresolved external symbol RfcIsConnectionHandleValid
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetThroughputFromConnection
_pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyTransaction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcLoadCryptoLibrary
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetInt8
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSAPUCToUTF8
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeAsString
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetXString
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSubmitTransaction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcResetThroughput
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetStructure
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetChars
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetInt
_pyrfc.obj : error LNK2001: unresolved external symbol RfcShutdownServer
_pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateServer
_pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateUnit
_pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateTransaction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTotalTime
_pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyUnit
_pyrfc.obj : error LNK2001: unresolved external symbol RfcInvoke
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetConnectionAttributes
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeName
_pyrfc.obj : error LNK2001: unresolved external symbol RfcRemoveFunctionDesc
_pyrfc.obj : error LNK2001: unresolved external symbol RfcInvokeInTransaction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt8
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetUnitState
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt2
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetXString
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetSentBytes
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetParameterActive
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetDate
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetStringLength
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTable
_pyrfc.obj : error LNK2001: unresolved external symbol RfcCloseConnection
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTransactionID
_pyrfc.obj : error LNK2001: unresolved external symbol RfcConfirmUnit
_pyrfc.obj : error LNK2001: unresolved external symbol RfcDescribeFunction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetChars
_pyrfc.obj : error LNK2001: unresolved external symbol RfcDeleteCurrentRow
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetNumberOfCalls
_pyrfc.obj : error LNK2001: unresolved external symbol RfcOpenConnection
_pyrfc.obj : error LNK2001: unresolved external symbol RfcPing
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetString
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetRowCount
_pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateFunction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetSerializationTime
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetVersion
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetInt1
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFieldDescByIndex
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetBytes
_pyrfc.obj : error LNK2001: unresolved external symbol RfcLaunchServer
_pyrfc.obj : error LNK2001: unresolved external symbol RfcInvokeInUnit
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetThroughputOnConnection
_pyrfc.obj : error LNK2001: unresolved external symbol RfcMoveTo
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetUnitID
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetDate
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetBytes
_pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyServer
_pyrfc.obj : error LNK2001: unresolved external symbol RfcConfirmTransaction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetDeserializationTime
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetTypeDesc
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetTime
_pyrfc.obj : error LNK2001: unresolved external symbol RfcSetIniPath
_pyrfc.obj : error LNK2001: unresolved external symbol RfcCreateThroughput
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetParameterDescByIndex
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetReceivedBytes
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetFunctionName
_pyrfc.obj : error LNK2001: unresolved external symbol RfcDestroyFunction
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetApplicationTime
_pyrfc.obj : error LNK2001: unresolved external symbol RfcRemoveTypeDesc
_pyrfc.obj : error LNK2001: unresolved external symbol RfcGetDirectionAsString
build\lib.win-amd64-3.10\pyrfc\pyrfc.cp310-win_amd64.pyd : fatal error LNK1120: 91 unresolved externals
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.30.30705\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120
----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Python\Leccion 01\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\setup.py'"'"'; file='"'"'C:\Users\PC\AppData\Local\Temp\pip-install-uoz5bboj\pyrfc_f8e737e4ff3e4921bf6fbb74f34f7290\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\PC\AppData\Local\Temp\pip-record-609a0_oe\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Python\Leccion 01\venv\include\site\python3.10\pyrfc' Check the logs for full command output. WARNING: You are using pip version 21.1.2; however, version 21.3.1 is available. You should consider upgrading via the 'C:\Python\Leccion 01\venv\Scripts\python.exe -m pip install --upgrade pip' command.`

Environment

Thank you!

gauribeg commented 2 years ago

This is solved, I was using the wrong nwrfc version (Windows server instead of W10)