Skip to content

I can not install xmlsec on Windows #35

Closed

Description

@lopow

Command "python setup.px egg_info" failed with error code 1 in c:\Usrers.....

This my error,

Activity

  1. bgaifullin commented on Feb 14, 2017

    @bgaifullin
    Collaborator

    Hi @lopow, Can you check with version 1.0.1 and provide detailed output of installation. pip -v - enables verbose mode and shows more details.

  2. changed the title [-]I can not install xmlsec on Windows 8.1[/-] [+]I can not install xmlsec on Windows[/+] on May 19, 2017
  3. bgaifullin commented on May 19, 2017

    @bgaifullin
    Collaborator

    Im on windows 7 Ultimate 64bits with Python3.6.

    pip install zeep[xmlsec]

    C:\Users\Trump>pip install zeep[xmlsec]
    Requirement already satisfied: zeep[xmlsec] in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages
    Requirement already satisfied: defusedxml>=0.4.1 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: six>=1.9.0 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: requests>=2.7.0 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: lxml>=3.0.0 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: requests-toolbelt>=0.7.1 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: cached-property>=1.3.0 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: appdirs>=1.4.0 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: pytz in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Requirement already satisfied: isodate>=0.5.4 in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from zeep[xmlsec])
    Collecting xmlsec>=0.6.1; extra == "xmlsec" (from zeep[xmlsec])
    Using cached xmlsec-1.0.7.tar.gz
    Requirement already satisfied: pkgconfig in c:\users\trump\appdata\local\programs\python\python36-32\lib\site-packages (from xmlsec>=0.6.1; extra == "xmlsec"->zeep[xmlsec])
    Installing collected packages: xmlsec
    Running setup.py install for xmlsec ... error
    Complete output from command c:\users\trump\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Trump\AppData\Loc
    al\Temp\pip-build-figqizul\xmlsec\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" ins
    tall --record C:\Users\Trump\AppData\Local\Temp\pip-1zuzxov1-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    error: pkg-config is not installed


    Command "c:\users\trump\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Trump\AppData\Local\Temp\pip-build-figq
    izul\xmlsec\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\Trump\AppData\Local\Temp\pip-1zuzxov1-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Trump\AppData\Local\Temp\pip-

  4. bgaifullin commented on May 19, 2017

    @bgaifullin
    Collaborator

    Could you please try to install pkg-config by following this instructions:
    http://stackoverflow.com/questions/1710922/how-to-install-pkg-config-in-windows
    @JonnathanCalderon

    @JonnathanCalderon commented 13 hours ago

    Greetings, thanks for your quickly response and please apologize my English. I had followed that two steps, about installing the pkg-config-lite and downloading the binaries but neither worked.

  5. self-assigned this
    on May 19, 2017
  6. bgaifullin commented on May 19, 2017

    @bgaifullin
    Collaborator

    @JonnathanCalderon

    After installing pkg-config into your machine it is became available from cmdline.
    I mean, that the following command in cmdline should completed successfully:

    pkg-config --help
    

    if it is not, please add path to pkg-config binary to the system environment variable PATH
    Unfortunately I do not have any windows running machine and cannot reproduce this issue by myself.

  7. bgaifullin commented on May 20, 2017

    @bgaifullin
    Collaborator

    @JonnathanCalderon, I think the better way is to specify environment variable PKG_CONFIG with full path to file pkg-config

  8. sinfloodmusic commented on May 24, 2017

    @sinfloodmusic

    FYI I had a a similar error on Mac OSX today. After installing pkg-config ('brew install pkg-config') I was able to run a 'pip install xmlsec' successfully within a python3 virtual env.

  9. bgaifullin commented on May 30, 2017

    @bgaifullin
    Collaborator

    @JonnathanCalderon, Could you try to install with specifying PKG_CONFIG variable ?

  10. luoy2 commented on Jul 7, 2017

    @luoy2

    Is this issue got solved? I am trying to install it on windows 10 with python 3.6 and got following error info:

    Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
    Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
    Collecting xmlsec
      1 location(s) to search for versions of xmlsec:
      * https://pypi.python.org/simple/xmlsec/
      Getting page https://pypi.python.org/simple/xmlsec/
      Looking up "https://pypi.python.org/simple/xmlsec/" in the cache
      Current age based on date: 736
      Freshness lifetime from max-age: 600
      Freshness lifetime from request max-age: 600
      The cached response is "stale" with no etag, purging
      Starting new HTTPS connection (1): pypi.python.org
      "GET /simple/xmlsec/ HTTP/1.1" 200 1696
      Updating cache with response from "https://pypi.python.org/simple/xmlsec/"
      Caching b/c date exists and max-age > 0
      Analyzing links from page https://pypi.python.org/simple/xmlsec/
        Found link https://pypi.python.org/packages/01/00/c3062ee92e7b1f7a819390a595e78e18d4b28a6381cb055b3fb7eab9e59e/xmlsec-1.0.3.dev0.tar.gz#md5=ea2e77e90ceca4d3d0e5d7ca92a1737a (from https://pypi.python.org/simple/xmlsec/), version: 1.0.3.dev0
        Found link https://pypi.python.org/packages/02/51/1d5a86001b638f280870018e7e7544a632c1432d569fd6a5f1ec7fcd08c1/xmlsec-0.1.1.tar.gz#md5=0ab41c08669825bd8410d16a0084fde6 (from https://pypi.python.org/simple/xmlsec/), version: 0.1.1
        Found link https://pypi.python.org/packages/10/5e/d0918b2de681c14c03d96be57399ab98d45b76a994c77844c67624de9f81/xmlsec-0.3.1.tar.gz#md5=d902ef20492361525816a7d796b14cbd (from https://pypi.python.org/simple/xmlsec/), version: 0.3.1
        Found link https://pypi.python.org/packages/14/18/f1f3980677b6c32c1f0c8b38fbf996c83f7c322c9d04aa34bf91995804d6/xmlsec-1.0.1.tar.gz#md5=9e807ef01cf5e40f6d37d7f1c04cd143 (from https://pypi.python.org/simple/xmlsec/), version: 1.0.1
        Found link https://pypi.python.org/packages/14/65/96dffc4e9a96be55b2c75ad4cb44020a91f5bc8df704f4c40caf181886f7/xmlsec-1.0.7.tar.gz#md5=a1347bdf1fff53b818abaefdd355dabc (from https://pypi.python.org/simple/xmlsec/), version: 1.0.7
        Found link https://pypi.python.org/packages/33/56/50fca01ea43aaecc2713ca2c7c160456a51b3bad55c77f3427bc9a060283/xmlsec-0.1.0.tar.gz#md5=a8f66b814c83a1d847967650a3ff0b0c (from https://pypi.python.org/simple/xmlsec/), version: 0.1.0
        Found link https://pypi.python.org/packages/56/4c/ed4ccd12e6f2fd58e195e7d782c1b165338e36dfb2ef933a02794231686e/xmlsec-1.0.8.tar.gz#md5=df39e380c496faa626cf1b9de8eb0414 (from https://pypi.python.org/simple/xmlsec/), version: 1.0.8
        Found link https://pypi.python.org/packages/65/9e/a64666ca448d4683fb16e4523dce2958f501da16fe18e0be4b739c326794/xmlsec-1.0.4.tar.gz#md5=5c14e4e1fe94483cd373936f540f14de (from https://pypi.python.org/simple/xmlsec/), version: 1.0.4
        Found link https://pypi.python.org/packages/7c/94/a3fedbd0fa66efb6dca82081a02563c12299966b1918295f338fe9a488dc/xmlsec-0.3.0.tar.gz#md5=8cbc5eeccbc90a2b54ac3ec356056f4f (from https://pypi.python.org/simple/xmlsec/), version: 0.3.0
        Found link https://pypi.python.org/packages/87/a0/360030ce8a3629a8073249d255b56c7a455ce00d293eaa06b2206b0e7472/xmlsec-0.5.0.tar.gz#md5=9f82e9d76ad8b2dfa8e87f104a0a6bda (from https://pypi.python.org/simple/xmlsec/), version: 0.5.0
        Found link https://pypi.python.org/packages/89/86/90921f9c0b0fe14097f028b70b4c2ba0777c43234772286a6d25224161af/xmlsec-1.0.6.tar.gz#md5=9bb9a56944d8d9eb3c7bce08876994a6 (from https://pypi.python.org/simple/xmlsec/), version: 1.0.6
        Found link https://pypi.python.org/packages/a3/04/1f183f82e404620cec639219d70052599df01a5209b19ef87b1ec47bbedb/xmlsec-0.4.0.tar.gz#md5=3054e08effe376f03a0370222c2d8c10 (from https://pypi.python.org/simple/xmlsec/), version: 0.4.0
        Found link https://pypi.python.org/packages/a4/7d/dadea9c3d0c1c8f1f3a0c427f205be29f808a6deda1257281c93ec0af129/xmlsec-1.1.0.tar.gz#md5=bb4a90f0eec4ad1d0ee90fe787ea8757 (from https://pypi.python.org/simple/xmlsec/), version: 1.1.0
        Found link https://pypi.python.org/packages/aa/21/f322ca9ad60e1dcae0041568c2833220a5535e2163a49c5cae46ffdc0bdd/xmlsec-0.6.0.tar.gz#md5=ee30fae0aef12a694fcc0cec2dff2d43 (from https://pypi.python.org/simple/xmlsec/), version: 0.6.0
        Found link https://pypi.python.org/packages/ab/b7/db19c5b3231078a5f25d4de346e167ac56e2de862e5fb8159e8969fc3971/xmlsec-1.0.9.tar.gz#md5=0546f2286276330e8e513e06eaa8be44 (from https://pypi.python.org/simple/xmlsec/), version: 1.0.9
        Found link https://pypi.python.org/packages/ac/a7/07b866172086f40f84c5f9d536db7080d67badb153a43ff1beca1a8f375d/xmlsec-1.0.3.tar.gz#md5=c82b73a2a375a59e1df34229119f65b7 (from https://pypi.python.org/simple/xmlsec/), version: 1.0.3
        Found link https://pypi.python.org/packages/b5/b3/93249007b5919dfe7d6ba84a3047014675fd7c5fa9417852df1943dc6637/xmlsec-1.0.2.dev0.tar.gz#md5=98333b2f81e28626c5fd623daeb6d6c9 (from https://pypi.python.org/simple/xmlsec/), version: 1.0.2.dev0
        Found link https://pypi.python.org/packages/c4/bf/a46e03c277ef42ff3dba791c8f08c16edca4157a31dc971339b1be12b87b/xmlsec-1.0.5.tar.gz#md5=c523ab078c9b559cbee47889462c5ef9 (from https://pypi.python.org/simple/xmlsec/), version: 1.0.5
        Found link https://pypi.python.org/packages/e1/ec/0330f39bc5eb270b6b62a9dbb11194c6d4215b48ef8d04c78a30dc1d2d1d/xmlsec-0.6.1.tar.gz#md5=7594554849b0731a9e7fcbd3f0934ae9 (from https://pypi.python.org/simple/xmlsec/), version: 0.6.1
        Found link https://pypi.python.org/packages/f1/52/8a1a175b70aa0e73654d3fcf07220a86a09a33eacf56394e1667e98f699b/xmlsec-0.1.2.tar.gz#md5=d17020d8d869281bcb54ab6ffbf3004a (from https://pypi.python.org/simple/xmlsec/), version: 0.1.2
        Found link https://pypi.python.org/packages/f6/d2/ccaaf2b1949e18cbebca1db9603ffda97c0fe3c43db236f89abf372f0433/xmlsec-0.2.0.tar.gz#md5=02b05c4263a1dff71710822e8caec76f (from https://pypi.python.org/simple/xmlsec/), version: 0.2.0
        Found link https://pypi.python.org/packages/f7/ba/33cc2de8191ccf4ef90fcf7dacf71d66ad70068bc2d2b85915c1062ef138/xmlsec-0.3.3.tar.gz#md5=1183591266277fe0e415dd802fb0f96b (from https://pypi.python.org/simple/xmlsec/), version: 0.3.3
      Using version 1.1.0 (newest of versions: 0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.3.1, 0.3.3, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 1.0.1, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0)
      Looking up "https://pypi.python.org/packages/a4/7d/dadea9c3d0c1c8f1f3a0c427f205be29f808a6deda1257281c93ec0af129/xmlsec-1.1.0.tar.gz" in the cache
      Current age based on date: 7975
      Freshness lifetime from max-age: 31557600
      The response is "fresh", returning cached response
      31557600 > 7975
      Using cached xmlsec-1.1.0.tar.gz
      Downloading from URL https://pypi.python.org/packages/a4/7d/dadea9c3d0c1c8f1f3a0c427f205be29f808a6deda1257281c93ec0af129/xmlsec-1.1.0.tar.gz#md5=bb4a90f0eec4ad1d0ee90fe787ea8757 (from https://pypi.python.org/simple/xmlsec/)
      Running setup.py (path:C:\Users\yikan\AppData\Local\Temp\pip-build-d14x2tno\xmlsec\setup.py) egg_info for package xmlsec
        Running command python setup.py egg_info
        running egg_info
        creating pip-egg-info\xmlsec.egg-info
        writing pip-egg-info\xmlsec.egg-info\PKG-INFO
        writing dependency_links to pip-egg-info\xmlsec.egg-info\dependency_links.txt
        writing requirements to pip-egg-info\xmlsec.egg-info\requires.txt
        writing top-level names to pip-egg-info\xmlsec.egg-info\top_level.txt
        writing manifest file 'pip-egg-info\xmlsec.egg-info\SOURCES.txt'
        reading manifest file 'pip-egg-info\xmlsec.egg-info\SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        writing manifest file 'pip-egg-info\xmlsec.egg-info\SOURCES.txt'
      Source in c:\users\yikan\appdata\local\temp\pip-build-d14x2tno\xmlsec has version 1.1.0, which satisfies requirement xmlsec from https://pypi.python.org/packages/a4/7d/dadea9c3d0c1c8f1f3a0c427f205be29f808a6deda1257281c93ec0af129/xmlsec-1.1.0.tar.gz#md5=bb4a90
    f0eec4ad1d0ee90fe787ea8757
    Requirement already satisfied: pkgconfig in c:\users\yikan\anaconda3\envs\divisa36\lib\site-packages (from xmlsec)
    Requirement already satisfied: lxml>=3.0 in c:\users\yikan\anaconda3\envs\divisa36\lib\site-packages (from xmlsec)
    Building wheels for collected packages: xmlsec
      Running setup.py bdist_wheel for xmlsec ...   Destination directory: C:\Users\yikan\AppData\Local\Temp\tmp_7paurm8pip-wheel-
      Running command C:\Users\yikan\Anaconda3\envs\divisa36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\yikan\\AppData\\Local\\Temp\\pip-build-d14x2tno\\xmlsec\\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\yikan\AppData\Local\Temp\tmp_7paurm8pip-wheel- --python-tag cp36
      running bdist_wheel
      running build
      running build_ext
      building 'xmlsec' extension
      creating build
      creating build\temp.win-amd64-3.6
      creating build\temp.win-amd64-3.6\Release
      creating build\temp.win-amd64-3.6\Release\src
      C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMODULE_VERSION=1.1.0 "-DMODULE_DOC=Python bindings for the XML Security Library" -DMODULE_NAME=xmlsec -IC:\Use
    rs\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes\libxslt -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes\libexslt -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes\libxml -IC:\Users\yikan\Anaconda3
    \envs\divisa36\lib\site-packages\lxml\includes -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes\__pycache__ -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml -IC:\Users\yikan\Anaconda3\envs\divisa36\include -IC:\Users\yikan
    \Anaconda3\envs\divisa36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\ATLMFC\Include" "-IC:\Program Files (
    x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" /Tc./
    src\constants.c /Fobuild\temp.win-amd64-3.6\Release\./src\constants.obj -g -std=c99 -fno-strict-aliasing -Wno-error=declaration-after-statement -Werror=implicit-function-declaration -Os
      cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration-after-statement'
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
    error
      Failed building wheel for xmlsec
      Running setup.py clean for xmlsec
      Running command C:\Users\yikan\Anaconda3\envs\divisa36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\yikan\\AppData\\Local\\Temp\\pip-build-d14x2tno\\xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\
    n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all
      running clean
      removing 'build\temp.win-amd64-3.6' (and everything under it)
      'build\lib.win-amd64-3.6' does not exist -- can't clean it
      'build\bdist.win-amd64' does not exist -- can't clean it
      'build\scripts-3.6' does not exist -- can't clean it
      removing 'build'
    Failed to build xmlsec
    Installing collected packages: xmlsec
      Running setup.py install for xmlsec ...     Running command C:\Users\yikan\Anaconda3\envs\divisa36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\yikan\\AppData\\Local\\Temp\\pip-build-d14x2tno\\xmlsec\\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\yikan\AppData\Local\Temp\pip-8ewcoki7-record\install-record.txt --single-version-externally-managed --compile
        running install
        running build
        running build_ext
        building 'xmlsec' extension
        creating build
        creating build\temp.win-amd64-3.6
        creating build\temp.win-amd64-3.6\Release
        creating build\temp.win-amd64-3.6\Release\src
        C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-DMODULE_DOC=Python bindings for the XML Security Library" -DMODULE_VERSION=1.1.0 -DMODULE_NAME=xmlsec -IC:\U
    sers\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes\libxml -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes\libxslt -IC:\Users\yikan\Anaconda3\envs\d
    ivisa36\lib\site-packages\lxml\includes\__pycache__ -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml -IC:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\lxml\includes\libexslt -IC:\Users\yikan\Anaconda3\envs\divisa36\include -IC:\Users\yik
    an\Anaconda3\envs\divisa36\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\ATLMFC\Include" "-IC:\Program Files
     (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" /Tc
    ./src\constants.c /Fobuild\temp.win-amd64-3.6\Release\./src\constants.obj -g -std=c99 -fno-strict-aliasing -Wno-error=declaration-after-statement -Werror=implicit-function-declaration -Os
        cl : Command line error D8021 : invalid numeric argument '/Wno-error=declaration-after-statement'
        error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
    error
    Cleaning up...
      Removing source in C:\Users\yikan\AppData\Local\Temp\pip-build-d14x2tno\xmlsec
    Command "C:\Users\yikan\Anaconda3\envs\divisa36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\yikan\\AppData\\Local\\Temp\\pip-build-d14x2tno\\xmlsec\\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\yikan\AppData\Local\Temp\pip-8ewcoki7-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\yikan\AppData\Local\Temp\pip-build-d1
    4x2tno\xmlsec\
    Exception information:
    Traceback (most recent call last):
      File "C:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\pip\basecommand.py", line 215, in main
        status = self.run(options, args)
      File "C:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\pip\commands\install.py", line 342, in run
        prefix=options.prefix_path,
      File "C:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\pip\req\req_set.py", line 784, in install
        **kwargs
      File "C:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\pip\req\req_install.py", line 878, in install
        spinner=spinner,
      File "C:\Users\yikan\Anaconda3\envs\divisa36\lib\site-packages\pip\utils\__init__.py", line 707, in call_subprocess
        % (command_desc, proc.returncode, cwd))
    pip.exceptions.InstallationError: Command "C:\Users\yikan\Anaconda3\envs\divisa36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\yikan\\AppData\\Local\\Temp\\pip-build-d14x2tno\\xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);c
    ode=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\yikan\AppData\Local\Temp\pip-8ewcoki7-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\yik
    an\AppData\Local\Temp\pip-build-d14x2tno\xmlsec\
    

    I tried to remove the linux commands in setup.py file #cflags = ["-g", "-std=c99", "-fno-strict-aliasing", "-Wno-error=declaration-after-statement", "-Werror=implicit-function-declaration"] and did a manually install of pip install -e ".", then I got the followings:

    Obtaining file:///C:/Users/yikan/Downloads/python-xmlsec
    Requirement already satisfied: pkgconfig in c:\users\xxx\anaconda3\lib\site-packages (from xmlsec==1.0.1)
    Requirement already satisfied: lxml>=3.0 in c:\users\xxx\anaconda3\lib\site-packages (from xmlsec==1.0.1)
    Installing collected packages: xmlsec
      Running setup.py develop for xmlsec
        Complete output from command C:\Users\xxx\Anaconda3\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\yikan\\Downloads\\python-xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
        running develop
        running egg_info
        writing xmlsec.egg-info\PKG-INFO
        writing dependency_links to xmlsec.egg-info\dependency_links.txt
        writing requirements to xmlsec.egg-info\requires.txt
        writing top-level names to xmlsec.egg-info\top_level.txt
        reading manifest file 'xmlsec.egg-info\SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        writing manifest file 'xmlsec.egg-info\SOURCES.txt'
        running build_ext
        building 'xmlsec' extension
        C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMODULE_NAME=xmlsec -DMODULE_VERSION=1.0.1 "-DMODULE_DOC=Python bindings for the XML Security Library" -IC:\Users\xxx\Anaconda3\lib\site-packages\lxml -IC:\Users\xxx\Anaconda3\lib\site-packages\lxml\includes -IC:\Users\xxx\Anaconda3\include -IC:\Users\xxx\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" /Tc./src\constants.c /Fobuild\temp.win-amd64-3.6\Release\./src\constants.obj -Os
        constants.c
        c:\users\xxx\downloads\python-xmlsec\src\platform.h(15): fatal error C1083: Cannot open include file: 'xmlsec/version.h': No such file or directory
        error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
    
        ----------------------------------------
    Command "C:\Users\xxx\Anaconda3\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\Downloads\\python-xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in C:\Users\xxx\Downloads\python-xmlsec
    

    I would be so appreciated if anyone can help.

  11. bgaifullin commented on Jul 7, 2017

    @bgaifullin
    Collaborator

    @luoy2,

    1. please try with the following std flags.
    cflags = ["-g", "-std=c99", "-fno-strict-aliasing", "-Werror=implicit-function-declaration"]
    
    1. do you install xmlsec source files in your machine ?, if yes, you need to add path to xmlsec include files to cflags, you can compete this by adding option '-I'

    2. can you evaluate the following python code and add here its output

    import pkgconfig
    print(pkgconfig.parse("xmlsec1"))

    and

    import lxml
    print(lxml.get_include())
  12. luoy2 commented on Jul 10, 2017

    @luoy2

    @bgaifullin
    Hi,
    I tried the 3 instructions you listed above and here is the results:
    1.

    Command "C:\Users\xxx\Anaconda3\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\Downloads\\python-xmlsec\\setup.py';
    f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');
    f.close();
    exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in C:\Users\xxx\Downloads\python-xmlsec\
    

    trying -cflag as following:

    cflags = ["-g", "-std=c99", "-fno-strict-aliasing", "-Werror=implicit-function-declaration", "-I C:/xxx/xxx/Downloads/python-xmlsec/src"]
    

    results:

    Obtaining file:///C:/Users/xxx/Downloads/python-xmlsec
    Requirement already satisfied: pkgconfig in c:\users\xxx\anaconda3\lib\site-packages (from xmlsec==1.0.1)
    Requirement already satisfied: lxml>=3.0 in c:\users\xxx\anaconda3\lib\site-packages (from xmlsec==1.0.1)
    Installing collected packages: xmlsec
      Running setup.py develop for xmlsec
        Complete output from command C:\Users\xxx\Anaconda3\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\Downloads\\python-xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
        running develop
        running egg_info
        writing xmlsec.egg-info\PKG-INFO
        writing dependency_links to xmlsec.egg-info\dependency_links.txt
        writing requirements to xmlsec.egg-info\requires.txt
        writing top-level names to xmlsec.egg-info\top_level.txt
        reading manifest file 'xmlsec.egg-info\SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        writing manifest file 'xmlsec.egg-info\SOURCES.txt'
        running build_ext
        building 'xmlsec' extension
        C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMODULE_NAME=xmlsec "-DMODULE_DOC=Python bindings for the XML Security Library" -DMODULE_VERSION=1.0.1 -IC:\Users\xxx\Anaconda3\lib\site-packages\lxml -IC:\Users\xxx\Anaconda3\lib\site-packages\lxml\includes -IC:\Users\xxx\Anaconda3\include -IC:\Users\xxx\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" /Tc./src\constants.c /Fobuild\temp.win-amd64-3.6\Release\./src\constants.obj -g -std=c99 -fno-strict-aliasing -Werror=implicit-function-declaration "-I C:/Users/xxx/Downloads/python-xmlsec/src" -Os
        cl : Command line error D8021 : invalid numeric argument '/Werror=implicit-function-declaration'
        error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
    
        ----------------------------------------
    Command "C:\Users\xxx\Anaconda3\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\Downloads\\python-xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in C:\Users\xxx\Downloads\python-xmlsec\
    

    cflags:

    ["-g", "-std=c99", "-fno-strict-aliasing", "-IC:/Users/xxx/Downloads/python-xmlsec/src"]
    

    results:

    Obtaining file:///C:/Users/xxx/Downloads/python-xmlsec
    Requirement already satisfied: pkgconfig in c:\users\xxx\anaconda3\lib\site-packages (from xmlsec==1.0.1)
    Requirement already satisfied: lxml>=3.0 in c:\users\xxx\anaconda3\lib\site-packages (from xmlsec==1.0.1)
    Installing collected packages: xmlsec
      Running setup.py develop for xmlsec
        Complete output from command C:\Users\xxx\Anaconda3\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\Downloads\\python-xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps:
        running develop
        running egg_info
        writing xmlsec.egg-info\PKG-INFO
        writing dependency_links to xmlsec.egg-info\dependency_links.txt
        writing requirements to xmlsec.egg-info\requires.txt
        writing top-level names to xmlsec.egg-info\top_level.txt
        reading manifest file 'xmlsec.egg-info\SOURCES.txt'
        reading manifest template 'MANIFEST.in'
        writing manifest file 'xmlsec.egg-info\SOURCES.txt'
        running build_ext
        building 'xmlsec' extension
        C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\bin\HostX64\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-DMODULE_DOC=Python bindings for the XML Security Library" -DMODULE_VERSION=1.0.1 -DMODULE_NAME=xmlsec -IC:\Users\xxx\Anaconda3\lib\site-packages\lxml -IC:\Users\xxx\Anaconda3\lib\site-packages\lxml\includes -IC:\Users\xxx\Anaconda3\include -IC:\Users\xxx\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\ATLMFC\Include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.15063.0\ucrt" /Tc./src\constants.c /Fobuild\temp.win-amd64-3.6\Release\./src\constants.obj -g -std=c99 -fno-strict-aliasing "-I C:/Users/xxx/Downloads/python-xmlsec/src" -Os
        cl : Command line warning D9002 : ignoring unknown option '-g'
        cl : Command line warning D9002 : ignoring unknown option '-std=c99'
        cl : Command line warning D9002 : ignoring unknown option '-fno-strict-aliasing'
        constants.c
        c:\users\xxx\downloads\python-xmlsec\src\platform.h(15): fatal error C1083: Cannot open include file: 'xmlsec/version.h': No such file or directory
        error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\cl.exe' failed with exit status 2
    
        ----------------------------------------
    Command "C:\Users\xxx\Anaconda3\python.exe -c "import setuptools, tokenize;__file__='C:\\Users\\xxx\\Downloads\\python-xmlsec\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in C:\Users\xxx\Downloads\python-xmlsec\
    
    import pkgconfig
    print(pkgconfig.parse('xmlsec1')
    output:
    defaultdict(<class 'list'>, {'define_macros': []})
    
    >>> import lxml
    >>> print(lxml.get_include())
    ['C:\\Users\\xxx\\Anaconda3\\lib\\site-packages\\lxml\\includes', **'C:\\Users\\xxx\\Anaconda3\\lib\\site-packages\\lxml']**
    
  13. 94 remaining items

  14. bgaifullin commented on Aug 15, 2017

    @bgaifullin
    Collaborator

    fixed in 1.3.1

  15. vipin-kumar-tomar commented on Jul 31, 2018

    @vipin-kumar-tomar

    Getting below error:
    Retrieving "https://ci.appveyor.com/api/buildjobs/hij3a6776pdv2007/artifacts/libxml2-2.9.4.win64.zip" to "build/extra\libxml2-2.9.4.win64.zip"
    error: HTTP Error 404: The specified blob does not exist.

  16. chauhoang99 commented on Aug 21, 2018

    @chauhoang99

    Yep same error on Windows machine when running "pip install xmlsec"

    running install
    running build
    running build_ext
    Retrieving "https://ci.appveyor.com/api/buildjobs/7k878q7rvogcdyd9/artifacts/libxml2-2.9.4.win32.zip" to "build/extra\libxml2-2.9.4.win32.zip"
    error: HTTP Error 404: The specified blob does not exist.

  17. bgaifullin commented on Aug 22, 2018

    @bgaifullin
    Collaborator

    there is another issue #85

  18. pradipanand-zz commented on Nov 12, 2018

    @pradipanand-zz

    hi All, could you please tell if issue has been fixed because I am getting same issue while doing pip install xmlsec

  19. umeshsingh08 commented on Dec 25, 2018

    @umeshsingh08

    is this issue fixed? getting same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ Proxy