我正在尝试安装PyRFC与NWRFC SAP库。。。 经过大量的工作和问题,我安装了所有的东西,但是现在当我启动python时
import pyrfc
我明白了
^{pr2}$在这个link中,我发现我应该尝试启动rfcexec.exe
After the SAP NW RFC Library installed on Windows system and lib subfolder added to path, you may start the rfcexec.exe test program, from the bin subfolder, to verify the SAP NW RFC Lib installation.
但当我签入这个文件夹时,我可以看到rfcexec
文件,但看不到{
我还发现这个错误可能是由于没有这个library in path
Obviously put another path in if your path isn’t C:\Python27\nwrfcsdk\lib If you forget to set the Path, then your Python code won’t be able to use the C-connector and you’ll get an error message: “ImportError: DLL load failed”
所以:
我有MWRFCDSK文件夹:
-> bin
|
-> rfcexec (without exe)
-> startrfc (without exe)
-> demo
-> doc
-> include
|
-> sapdecf.h
-> sapnwrfc.h
-> sapuc.h
-> sapuc.h
-> sapucx.h
-> lib
|
-> libicudata34.a
-> libicudecnumber.so
-> libicui18n34.a
-> libicuuc34.a
-> libsapnwrfc.so
-> libsapucum.so
-> META-INF
-> nwrfc750P_0.manifest
我在安装pyrfc时:
easy_install pyrfc-1.9.7-cp36-cp36m-win_amd64.whl
我错过了什么?在
编辑:
我发现了这个页面:link在这里我可以看到,当从.sar文件取消sar时,我在cmd中没有得到相同的打印。。。。有人知道为什么吗
SAPCAR: processing archive NWRFC_48-20004559.SAR (version 2.01)
x nwrfcsdk
x nwrfcsdk/bin
x nwrfcsdk/bin/rfcexec
x nwrfcsdk/bin/startrfc
x nwrfcsdk/demo
x nwrfcsdk/demo/companyClient.c
x nwrfcsdk/demo/readme.txt
x nwrfcsdk/demo/rfcexec.cpp
x nwrfcsdk/demo/rfcexec.h
x nwrfcsdk/demo/sapnwrfc.ini
x nwrfcsdk/demo/sflightClient.c
x nwrfcsdk/demo/sso2sample.c
x nwrfcsdk/demo/startrfc.cpp
x nwrfcsdk/demo/startrfc.h
x nwrfcsdk/demo/stfcDeepTableServer.c
x nwrfcsdk/doc
x nwrfcsdk/include
x nwrfcsdk/include/sapdecf.h
x nwrfcsdk/include/sapnwrfc.h
x nwrfcsdk/include/sapuc.h
x nwrfcsdk/include/sapucx.h
x nwrfcsdk/lib
x nwrfcsdk/lib/libicudata34.a
x nwrfcsdk/lib/libicudecnumber.so
x nwrfcsdk/lib/libicui18n34.a
x nwrfcsdk/lib/libicuuc34.a
x nwrfcsdk/lib/libsapnwrfc.so
x nwrfcsdk/lib/libsapucum.so
x SIGNATURE.SMF
SAPCAR: 29 file(s) extracted
这表明你缺少dll文件。您可以通过以下链接获取nwrfcsdk: SAP nwrfcsdk 7.2 之后,您可以按照pyrfc安装:
窗口 1创建一个目录,例如c:\nwrfcdsk。 2存档文件应存在于CSD文件库中。 三。将lib目录包含到Windows上的库搜索路径中,即扩展path环境变量。在
然后,你就可以使用pyrfc了
相关问题 更多 >
编程相关推荐