-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install xmlsec crashes on Debian #1
Comments
I'm guessing that you don't have the neccessary requirements. apt-get install libxml2-dev libxmlsec1-dev I'm on ubuntu at the moment so I'll give it a try in a minute (from a fresh virtualenv). Oh.. obviously you do have them.. weird. We'll I'm trying it now. Are you using python 2 or 3 ? It seems you're on 2.7.x; I'll install that and try. |
Yeah, I’m on 2.7.3
|
It installs for me fine in both Can you install Do you have the |
Downloading/unpacking xmlsec
Downloading xmlsec-0.2.0.tar.gz
Running setup.py (path:/home/ryan/.pyenv/versions/scratch-2.7.3/build/xmlsec/setup.py) egg_info for package xmlsec
/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/setuptools-8.2-py2.7.egg/pkg_resources.py:2443: PEP440Warning: 'nose (dev)' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.
no previously-included directories found matching 'doc/.build'
Installed /tmp/easy_install-crJbGG/pkgconfig-1.1.0/.eggs/nose-1.3.4-py2.7.egg
zip_safe flag not set; analyzing archive contents...
Installed /home/ryan/.pyenv/versions/scratch-2.7.3/build/xmlsec/.eggs/pkgconfig-1.1.0-py2.7.egg
Searching for setuptools-cython
Reading https://pypi.python.org/simple/setuptools_cython/
Best match: setuptools-cython 0.2.1
Downloading https://pypi.python.org/packages/source/s/setuptools_cython/setuptools_cython-0.2.1.tar.gz#md5=c29fc5bf2894e69cbd98e3800cef4707
Processing setuptools_cython-0.2.1.tar.gz
Writing /tmp/easy_install-Bt6L_7/setuptools_cython-0.2.1/setup.cfg
Running setuptools_cython-0.2.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Bt6L_7/setuptools_cython-0.2.1/egg-dist-tmp-AQeBUd
zip_safe flag not set; analyzing archive contents...
Installed /home/ryan/.pyenv/versions/scratch-2.7.3/build/xmlsec/.eggs/setuptools_cython-0.2.1-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): lxml>=3.0 in /home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages (from xmlsec)
Installing collected packages: xmlsec
Running setup.py install for xmlsec
cythoning src/xmlsec/constants.pyx to src/xmlsec/constants.c
building 'xmlsec.constants' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_NO_GOST=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_SIZE_T= -DXMLSEC_CRYPTO=openssl -DXMLSEC_OPENSSL_100=1 -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml/includes -Isrc -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/home/ryan/.pyenv/versions/2.7.3/include/python2.7 -c src/xmlsec/constants.c -o build/temp.linux-x86_64-2.7/src/xmlsec/constants.o -DXMLSEC_CRYPTO_OPENSSL=1
gcc -pthread -shared -L/home/ryan/.pyenv/versions/2.7.3/lib build/temp.linux-x86_64-2.7/src/xmlsec/constants.o -lxmlsec1 -lssl -lxslt -lxml2 -lcrypto -lxmlsec1-openssl -o build/lib.linux-x86_64-2.7/xmlsec/constants.so
cythoning src/xmlsec/utils.pyx to src/xmlsec/utils.c
building 'xmlsec.utils' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_NO_GOST=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_SIZE_T= -DXMLSEC_CRYPTO=openssl -DXMLSEC_OPENSSL_100=1 -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml/includes -Isrc -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/home/ryan/.pyenv/versions/2.7.3/include/python2.7 -c src/xmlsec/utils.c -o build/temp.linux-x86_64-2.7/src/xmlsec/utils.o -DXMLSEC_CRYPTO_OPENSSL=1
gcc -pthread -shared -L/home/ryan/.pyenv/versions/2.7.3/lib build/temp.linux-x86_64-2.7/src/xmlsec/utils.o -lxmlsec1 -lssl -lxslt -lxml2 -lcrypto -lxmlsec1-openssl -o build/lib.linux-x86_64-2.7/xmlsec/utils.so
cythoning src/xmlsec/tree.pyx to src/xmlsec/tree.c
building 'xmlsec.tree' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_NO_GOST=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_SIZE_T= -DXMLSEC_CRYPTO=openssl -DXMLSEC_OPENSSL_100=1 -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml/includes -Isrc -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/home/ryan/.pyenv/versions/2.7.3/include/python2.7 -c src/xmlsec/tree.c -o build/temp.linux-x86_64-2.7/src/xmlsec/tree.o -DXMLSEC_CRYPTO_OPENSSL=1
gcc -pthread -shared -L/home/ryan/.pyenv/versions/2.7.3/lib build/temp.linux-x86_64-2.7/src/xmlsec/tree.o -lxmlsec1 -lssl -lxslt -lxml2 -lcrypto -lxmlsec1-openssl -o build/lib.linux-x86_64-2.7/xmlsec/tree.so
cythoning src/xmlsec/key.pyx to src/xmlsec/key.c
building 'xmlsec.key' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_NO_GOST=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_SIZE_T= -DXMLSEC_CRYPTO=openssl -DXMLSEC_OPENSSL_100=1 -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml/includes -Isrc -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/home/ryan/.pyenv/versions/2.7.3/include/python2.7 -c src/xmlsec/key.c -o build/temp.linux-x86_64-2.7/src/xmlsec/key.o -DXMLSEC_CRYPTO_OPENSSL=1
gcc -pthread -shared -L/home/ryan/.pyenv/versions/2.7.3/lib build/temp.linux-x86_64-2.7/src/xmlsec/key.o -lxmlsec1 -lssl -lxslt -lxml2 -lcrypto -lxmlsec1-openssl -o build/lib.linux-x86_64-2.7/xmlsec/key.so
cythoning src/xmlsec/ds.pyx to src/xmlsec/ds.c
building 'xmlsec.ds' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_NO_GOST=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_SIZE_T= -DXMLSEC_CRYPTO=openssl -DXMLSEC_OPENSSL_100=1 -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml/includes -Isrc -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/home/ryan/.pyenv/versions/2.7.3/include/python2.7 -c src/xmlsec/ds.c -o build/temp.linux-x86_64-2.7/src/xmlsec/ds.o -DXMLSEC_CRYPTO_OPENSSL=1
gcc -pthread -shared -L/home/ryan/.pyenv/versions/2.7.3/lib build/temp.linux-x86_64-2.7/src/xmlsec/ds.o -lxmlsec1 -lssl -lxslt -lxml2 -lcrypto -lxmlsec1-openssl -o build/lib.linux-x86_64-2.7/xmlsec/ds.so
cythoning src/xmlsec/template.pyx to src/xmlsec/template.c
building 'xmlsec.template' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DXMLSEC_NO_CRYPTO_DYNAMIC_LOADING=1 -DXMLSEC_NO_GOST=1 -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_NO_SIZE_T= -DXMLSEC_CRYPTO=openssl -DXMLSEC_OPENSSL_100=1 -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml -I/home/ryan/.pyenv/versions/scratch-2.7.3/lib/python2.7/site-packages/lxml/includes -Isrc -I/usr/include/xmlsec1 -I/usr/include/libxml2 -I/home/ryan/.pyenv/versions/2.7.3/include/python2.7 -c src/xmlsec/template.c -o build/temp.linux-x86_64-2.7/src/xmlsec/template.o -DXMLSEC_CRYPTO_OPENSSL=1
gcc -pthread -shared -L/home/ryan/.pyenv/versions/2.7.3/lib build/temp.linux-x86_64-2.7/src/xmlsec/template.o -lxmlsec1 -lssl -lxslt -lxml2 -lcrypto -lxmlsec1-openssl -o build/lib.linux-x86_64-2.7/xmlsec/template.so
Successfully installed xmlsec
Cleaning up...
|
Can you paste the complete log for |
On a fresh VPS installed all apt-get dependencies just fine, Python version is same, And here is a full log of
|
nilfalse, +1 |
solved. |
Thank you guys for reply, that helped. Unfortunately I already solved my task another way (not using |
I also experience this issue on Ubuntu 13.10, using a fresh virtualenv and python 2.7
|
@pitbulk
|
|
Strange. I'll look into it and see if I can reproduce it. First glance, |
Not your fault :), xml and cryptography handler libraries used to have installation problems. So I'm interested in this fork of my library that uses your python-xmlsec library |
Not my day, also have issues on CentOS release 6.6, with python 2.6.6, installing xmlsec-0.2.0:
|
Just a heads up.. python 2.6.x has very little chance of working. This library was originally 3.x only but I back-ported it after a request. |
Also.. have you seen: https://github.com/mehcode/python-saml |
Yes, I saw it time ago, but at OneLogin we try to port the php-saml to all languages using similar settings and similar API. P.S The ubuntu installation was using python 2.7, I will upgrade the python version of the centOS. |
I installed python2.7 on the centOS 6.6 and experienced the same issue that I described with the python 2.6. Also the "Unable to find pgen, not compiling formal grammar" and errors on src/xmlsec.h |
@pitbulk Okay. On a completely fresh install of Ubuntu 13.10 with a fresh VM (and a fresh virtualenv), everything works fine.
|
My output with a fresh virtualenv:
|
@pitbulk Can I see |
python --version Successfully installed cython, but keep failing |
Can you try upgrading pip? I'm using 1.4.x.
And then try |
Installed pip 6.0.8 , and keep failing :(
|
@pitbulk Any chance you could try using https://github.com/yyuu/pyenv ? Maybe something is corrupted in your python's builds directory that is causing the failure. I'm curious what is different about your setup. I literally just instead a clean Ubuntu 13.10 and it works flawlessly. |
@mehcode, I had an ubuntu 13.10 in a virtual machine with python 2.7.5+ (same than my other machine) and is also experience the same issue. but after execute a apt-get update worked! I will try to do the same now in my main machine |
Also, I need to install xmlsec using Python3.4 with virtualenv and got this error
All these packages are already installed |
I tried everything stated above as working.. still getting different errors with different approach on Ubuntu |
I think you need:
Working here |
Im on windows 7 Ultimate 64bits with Python3.6. pip install zeep[xmlsec] C:\Users\Trump>pip install zeep[xmlsec]
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 |
Hi @JonnathanCalderon, thank you for contribution. Seems like you issue related to #16 |
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. |
@JonnathanCalderon I moved discussion here #35, because it is more relevant to your issue, this this one. |
I’m on Debian 7.7
Linux *.com 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux
Running
pip install xmlsec
fails to build with following message:What am I doing wrong?
The text was updated successfully, but these errors were encountered: