用Python解析flash中用AMF编码的数据需用到第三方库pyamf,安装pyamf出现如下错误:
C:\Users\DELL>pip install pyamf
Collecting pyamf
Downloading PyAMF-0.8.0.tar.gz (1.7MB)
100%
|████████████████████████████████|1.7MB 679kB/s
Requirement already satisfied: defusedxml in d:\appdata\anaconda3\lib\site-packages\defusedxml-0.5.0-py3.6.egg (from pyamf)
Building wheels for collected packages: pyamf
Running setup.py bdist_wheel for pyamf ... error
Complete output from command D:\AppData\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-build-soh0ppan\\pyamf\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\DELL\AppData\Local\Temp\tmp6uhwq18ypip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\cpyamf
copying cpyamf\__init__.py -> build\lib.win-amd64-3.6\cpyamf
creating build\lib.win-amd64-3.6\pyamf
copying pyamf\alias.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\amf0.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\amf3.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\codec.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\python.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\sol.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\versions.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\xml.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\_version.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\__init__.py -> build\lib.win-amd64-3.6\pyamf
creating build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\gae_base.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\models.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\util.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_array.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_collections.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_decimal.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_contrib_auth_models.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_db_models_base.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_db_models_fields.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_db_models_query.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_utils_translation.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_elixir.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_api_datastore_types.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_ext_blobstore.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_ext_db.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_ext_ndb.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_sets.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_sqlalchemy_orm.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_sqlalchemy_orm_collections.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_weakref.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters
creating build\lib.win-amd64-3.6\pyamf\flex
copying pyamf\flex\data.py -> build\lib.win-amd64-3.6\pyamf\flex
copying pyamf\flex\messaging.py -> build\lib.win-amd64-3.6\pyamf\flex
copying pyamf\flex\__init__.py -> build\lib.win-amd64-3.6\pyamf\flex
creating build\lib.win-amd64-3.6\pyamf\remoting
copying pyamf\remoting\amf0.py -> build\lib.win-amd64-3.6\pyamf\remoting
copying pyamf\remoting\amf3.py -> build\lib.win-amd64-3.6\pyamf\remoting
copying pyamf\remoting\__init__.py -> build\lib.win-amd64-3.6\pyamf\remoting
creating build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_adapters.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_adapters_util.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_alias.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_amf0.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_amf3.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_basic.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_codec.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_flex.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_flex_messaging.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_gateway.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_imports.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_remoting.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_sol.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_util.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_versions.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_xml.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\util.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests
creating build\lib.win-amd64-3.6\pyamf\util
copying pyamf\util\imports.py -> build\lib.win-amd64-3.6\pyamf\util
copying pyamf\util\pure.py -> build\lib.win-amd64-3.6\pyamf\util
copying pyamf\util\__init__.py -> build\lib.win-amd64-3.6\pyamf\util
creating build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_array.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_collections.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_django.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_elixir.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_sqlalchemy.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_weakref.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
creating build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app
copying pyamf\adapters\tests\django_app\settings.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app
copying pyamf\adapters\tests\django_app\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app
creating build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_blobstore.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_datastore_types.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_ndb.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_xdb.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\_ndb_models.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\_xdb_models.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
creating build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app\adapters
copying pyamf\adapters\tests\django_app\adapters\models.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app\adapters
copying pyamf\adapters\tests\django_app\adapters\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app\adapters
creating build\lib.win-amd64-3.6\pyamf\remoting\client
copying pyamf\remoting\client\__init__.py -> build\lib.win-amd64-3.6\pyamf\remoting\client
creating build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\django.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\google.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\twisted.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\wsgi.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\__init__.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
creating build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_django.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_google.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_twisted.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_wsgi.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
creating build\lib.win-amd64-3.6\pyamf\tests\modules
copying pyamf\tests\modules\test_decimal.py -> build\lib.win-amd64-3.6\pyamf\tests\modules
copying pyamf\tests\modules\test_sets.py -> build\lib.win-amd64-3.6\pyamf\tests\modules
copying pyamf\tests\modules\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests\modules
creating build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\test_amf0.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\test_client.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\test_remoteobject.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying cpyamf\amf0.pxd -> build\lib.win-amd64-3.6\cpyamf
copying cpyamf\amf3.pxd -> build\lib.win-amd64-3.6\cpyamf
copying cpyamf\codec.pxd -> build\lib.win-amd64-3.6\cpyamf
copying cpyamf\util.pxd -> build\lib.win-amd64-3.6\cpyamf
running build_ext
skipping 'cpyamf\amf0.c' Cython extension (up-to-date)
building 'cpyamf.amf0' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\cpyamf
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\AppData\Anaconda3\include -ID:\AppData\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" "-IC:\Program Files (x86)\IBM\WebSphere MQ\tools\c\include" "-IC:\Program Files (x86)\IBM\WebSphere MQ\tools\cplus\include" /Tccpyamf\amf0.c /Fobuild\temp.win-amd64-3.6\Release\cpyamf\amf0.obj
amf0.c
cpyamf\amf0.c(3854): warning C4013: 'PyString_FromStringAndSize' undefined; assuming extern returning int
cpyamf\amf0.c(3854): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
cpyamf\amf0.c(5051): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data
cpyamf\amf0.c(5398): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(5658): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(5910): warning C4013: 'PyString_GET_SIZE' undefined; assuming extern returning int
cpyamf\amf0.c(5962): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(5974): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data
cpyamf\amf0.c(5985): warning C4013: 'PyString_AS_STRING' undefined; assuming extern returning int
cpyamf\amf0.c(5985): warning C4047: 'function': 'char *' differs in levels of indirection from 'int'
cpyamf\amf0.c(5985): warning C4024: 'function through pointer': different types for formal and actual parameter 2
cpyamf\amf0.c(6185): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(6197): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data
cpyamf\amf0.c(6208): warning C4047: 'function': 'char *' differs in levels of indirection from 'int'
cpyamf\amf0.c(6208): warning C4024: 'function through pointer': different types for formal and actual parameter 2
cpyamf\amf0.c(6420): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(6429): warning C4047: 'function': 'char *' differs in levels of indirection from 'int'
cpyamf\amf0.c(6429): warning C4024: 'function through pointer': different types for formal and actual parameter 2
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\AppData\Anaconda3\libs /LIBPATH:D:\AppData\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" "/LIBPATH:C:\Program Files (x86)\IBM\WebSphere MQ\tools\lib64" "/LIBPATH:C:\Program Files (x86)\IBM\WebSphere MQ\tools\lib" /EXPORT:PyInit_amf0 build\temp.win-amd64-3.6\Release\cpyamf\amf0.obj /OUT:build\lib.win-amd64-3.6\cpyamf\amf0.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\cpyamf\amf0.cp36-win_amd64.lib
amf0.obj : warning LNK4197: export 'PyInit_amf0' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\cpyamf\amf0.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\cpyamf\amf0.cp36-win_amd64.exp
amf0.obj : error LNK2001: unresolved external symbol PyString_GET_SIZE
amf0.obj : error LNK2001: unresolved external symbol PyString_AS_STRING
amf0.obj : error LNK2001: unresolved external symbol PyString_FromStringAndSize
build\lib.win-amd64-3.6\cpyamf\amf0.cp36-win_amd64.pyd : fatal error LNK1120: 3 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120
----------------------------------------
Failed building wheel for pyamf
Running setup.py clean for pyamf
Failed to build pyamf
Installing collected packages: pyamf
Running setup.py install for pyamf ... error
Complete output from command D:\AppData\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-build-soh0ppan\\pyamf\\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\DELL\AppData\Local\Temp\pip-e09_kv6r-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\cpyamf
copying cpyamf\__init__.py -> build\lib.win-amd64-3.6\cpyamf
creating build\lib.win-amd64-3.6\pyamf
copying pyamf\alias.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\amf0.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\amf3.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\codec.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\python.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\sol.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\versions.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\xml.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\_version.py -> build\lib.win-amd64-3.6\pyamf
copying pyamf\__init__.py -> build\lib.win-amd64-3.6\pyamf
creating build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\gae_base.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\models.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\util.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_array.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_collections.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_decimal.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_contrib_auth_models.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_db_models_base.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_db_models_fields.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_db_models_query.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_django_utils_translation.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_elixir.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_api_datastore_types.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_ext_blobstore.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_ext_db.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_google_appengine_ext_ndb.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_sets.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_sqlalchemy_orm.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_sqlalchemy_orm_collections.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\_weakref.py -> build\lib.win-amd64-3.6\pyamf\adapters
copying pyamf\adapters\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters
creating build\lib.win-amd64-3.6\pyamf\flex
copying pyamf\flex\data.py -> build\lib.win-amd64-3.6\pyamf\flex
copying pyamf\flex\messaging.py -> build\lib.win-amd64-3.6\pyamf\flex
copying pyamf\flex\__init__.py -> build\lib.win-amd64-3.6\pyamf\flex
creating build\lib.win-amd64-3.6\pyamf\remoting
copying pyamf\remoting\amf0.py -> build\lib.win-amd64-3.6\pyamf\remoting
copying pyamf\remoting\amf3.py -> build\lib.win-amd64-3.6\pyamf\remoting
copying pyamf\remoting\__init__.py -> build\lib.win-amd64-3.6\pyamf\remoting
creating build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_adapters.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_adapters_util.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_alias.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_amf0.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_amf3.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_basic.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_codec.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_flex.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_flex_messaging.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_gateway.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_imports.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_remoting.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_sol.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_util.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_versions.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\test_xml.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\util.py -> build\lib.win-amd64-3.6\pyamf\tests
copying pyamf\tests\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests
creating build\lib.win-amd64-3.6\pyamf\util
copying pyamf\util\imports.py -> build\lib.win-amd64-3.6\pyamf\util
copying pyamf\util\pure.py -> build\lib.win-amd64-3.6\pyamf\util
copying pyamf\util\__init__.py -> build\lib.win-amd64-3.6\pyamf\util
creating build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_array.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_collections.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_django.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_elixir.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_sqlalchemy.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\test_weakref.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
copying pyamf\adapters\tests\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests
creating build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app
copying pyamf\adapters\tests\django_app\settings.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app
copying pyamf\adapters\tests\django_app\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app
creating build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_blobstore.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_datastore_types.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_ndb.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\test_xdb.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\_ndb_models.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\_xdb_models.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
copying pyamf\adapters\tests\google\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\google
creating build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app\adapters
copying pyamf\adapters\tests\django_app\adapters\models.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app\adapters
copying pyamf\adapters\tests\django_app\adapters\__init__.py -> build\lib.win-amd64-3.6\pyamf\adapters\tests\django_app\adapters
creating build\lib.win-amd64-3.6\pyamf\remoting\client
copying pyamf\remoting\client\__init__.py -> build\lib.win-amd64-3.6\pyamf\remoting\client
creating build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\django.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\google.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\twisted.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\wsgi.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
copying pyamf\remoting\gateway\__init__.py -> build\lib.win-amd64-3.6\pyamf\remoting\gateway
creating build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_django.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_google.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_twisted.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\test_wsgi.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
copying pyamf\tests\gateway\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests\gateway
creating build\lib.win-amd64-3.6\pyamf\tests\modules
copying pyamf\tests\modules\test_decimal.py -> build\lib.win-amd64-3.6\pyamf\tests\modules
copying pyamf\tests\modules\test_sets.py -> build\lib.win-amd64-3.6\pyamf\tests\modules
copying pyamf\tests\modules\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests\modules
creating build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\test_amf0.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\test_client.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\test_remoteobject.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying pyamf\tests\remoting\__init__.py -> build\lib.win-amd64-3.6\pyamf\tests\remoting
copying cpyamf\amf0.pxd -> build\lib.win-amd64-3.6\cpyamf
copying cpyamf\amf3.pxd -> build\lib.win-amd64-3.6\cpyamf
copying cpyamf\codec.pxd -> build\lib.win-amd64-3.6\cpyamf
copying cpyamf\util.pxd -> build\lib.win-amd64-3.6\cpyamf
running build_ext
skipping 'cpyamf\amf0.c' Cython extension (up-to-date)
building 'cpyamf.amf0' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\cpyamf
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\AppData\Anaconda3\include -ID:\AppData\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" "-IC:\Program Files (x86)\IBM\WebSphere MQ\tools\c\include" "-IC:\Program Files (x86)\IBM\WebSphere MQ\tools\cplus\include" /Tccpyamf\amf0.c /Fobuild\temp.win-amd64-3.6\Release\cpyamf\amf0.obj
amf0.c
cpyamf\amf0.c(3854): warning C4013: 'PyString_FromStringAndSize' undefined; assuming extern returning int
cpyamf\amf0.c(3854): warning C4047: '=': 'PyObject *' differs in levels of indirection from 'int'
cpyamf\amf0.c(5051): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data
cpyamf\amf0.c(5398): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(5658): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(5910): warning C4013: 'PyString_GET_SIZE' undefined; assuming extern returning int
cpyamf\amf0.c(5962): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(5974): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data
cpyamf\amf0.c(5985): warning C4013: 'PyString_AS_STRING' undefined; assuming extern returning int
cpyamf\amf0.c(5985): warning C4047: 'function': 'char *' differs in levels of indirection from 'int'
cpyamf\amf0.c(5985): warning C4024: 'function through pointer': different types for formal and actual parameter 2
cpyamf\amf0.c(6185): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(6197): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned short', possible loss of data
cpyamf\amf0.c(6208): warning C4047: 'function': 'char *' differs in levels of indirection from 'int'
cpyamf\amf0.c(6208): warning C4024: 'function through pointer': different types for formal and actual parameter 2
cpyamf\amf0.c(6420): warning C4244: 'function': conversion from 'Py_ssize_t' to 'unsigned long', possible loss of data
cpyamf\amf0.c(6429): warning C4047: 'function': 'char *' differs in levels of indirection from 'int'
cpyamf\amf0.c(6429): warning C4024: 'function through pointer': different types for formal and actual parameter 2
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:D:\AppData\Anaconda3\libs /LIBPATH:D:\AppData\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" "/LIBPATH:C:\Program Files (x86)\IBM\WebSphere MQ\tools\lib64" "/LIBPATH:C:\Program Files (x86)\IBM\WebSphere MQ\tools\lib" /EXPORT:PyInit_amf0 build\temp.win-amd64-3.6\Release\cpyamf\amf0.obj /OUT:build\lib.win-amd64-3.6\cpyamf\amf0.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\cpyamf\amf0.cp36-win_amd64.lib
amf0.obj : warning LNK4197: export 'PyInit_amf0' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.6\Release\cpyamf\amf0.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\cpyamf\amf0.cp36-win_amd64.exp
amf0.obj : error LNK2001: unresolved external symbol PyString_GET_SIZE
amf0.obj : error LNK2001: unresolved external symbol PyString_AS_STRING
amf0.obj : error LNK2001: unresolved external symbol PyString_FromStringAndSize
build\lib.win-amd64-3.6\cpyamf\amf0.cp36-win_amd64.pyd : fatal error LNK1120: 3 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120
----------------------------------------
Command "D:\AppData\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\DELL\\AppData\\Local\\Temp\\pip-build-soh0ppan\\pyamf\\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\DELL\AppData\Local\Temp\pip-e09_kv6r-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\DELL\AppData\Local\Temp\pip-build-soh0ppan\pyamf\
经查询PyAMF最新版本为0.8.0,项目已经两年多未更新了,并且官网都没了,现在可在:https://pypi.python.org/pypi/PyAMF下载;PyAMF只支持32位Python,由于我系统是64位并安装的Python是64位,不想重新安装32位的,找到如下办法:
找到一个PyAMF的fork 项目支持64位Python,项目地址:https://github.com/StdCarrot/Py3AMF
C:\Users\DELL>pip install Py3AMF
Collecting Py3AMF
Downloading Py3AMF-0.8.7.tar.gz (1.6MB)
100% |████████████████████████████████|1.6MB 193kB/s
Requirement already satisfied: defusedxml in d:\appdata\anaconda3\lib\site-packages\defusedxml-0.5.0-py3.6.egg (from Py3AMF)
Building wheels for collected packages: Py3AMF
Running setup.py bdist_wheel for Py3AMF ... done
Stored in directory: C:\Users\DELL\AppData\Local\pip\Cache\wheels\25\0b\76\6981f861a2aef3724fc8e442f3c6bf0542786f10fc7fe5b7a1
Successfully built Py3AMF
Installing collected packages: Py3AMF
Successfully installed Py3AMF-0.8.7
C:\Users\DELL>
安装后报错:
修改报错文件217行:
OK,可以来解析数据了: