Форум сайта python.su
22
привет.
помогите пожалуйста найти модуль xmlsec для python 2.7.3, ubuntu
спасибо
Отредактировано ilnur (Март 27, 2013 10:10:00)
Офлайн
568
Это не подходит?
Офлайн
22
чето не получается установить.
... In file included from wrap_objs.c:25:0: wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога компиляция прервана. error: command 'gcc' failed with exit status 1
Отредактировано ilnur (Март 27, 2013 08:10:11)
Офлайн
568
ilnur, ты когда уже перестанешь сам себя насиловать в голову и установишь линукс?
Офлайн
22
ох ё. Я же на линуксе. Ubuntu 12.
По старой привычке в 1 посте написал винда. блиииин
в общем ubuntu12 у меня. ставлю в виртуальное окружение через pip
$pip freeze argparse==1.2.1 distribute==0.6.24 libxml2-python==2.6.9 lxml==3.1.0 wsgiref==0.1.2
pip install pyxmlsec Downloading/unpacking pyxmlsec Running setup.py egg_info for package pyxmlsec Error : cannot get XMLSec1 pre-processor and compiler flags Error : cannot get XMLSec1 linker flags Warning : cflag sh: skipped Warning : cflag 1: skipped Warning : cflag xmlsec1-config: skipped Warning : cflag not skipped Warning : cflag found skipped Warning : linker flag sh: skipped Warning : linker flag 1: skipped Warning : linker flag xmlsec1-config: skipped Warning : linker flag not skipped Warning : linker flag found skipped warning: no previously-included files found matching 'examples/vrac*' warning: no previously-included files found matching 'examples/*~' warning: no previously-included files found matching 'docs/cours/*' Installing collected packages: pyxmlsec Running setup.py install for pyxmlsec Error : cannot get XMLSec1 pre-processor and compiler flags Error : cannot get XMLSec1 linker flags Warning : cflag sh: skipped Warning : cflag 1: skipped Warning : cflag xmlsec1-config: skipped Warning : cflag not skipped Warning : cflag found skipped Warning : linker flag sh: skipped Warning : linker flag 1: skipped Warning : linker flag xmlsec1-config: skipped Warning : linker flag not skipped Warning : linker flag found skipped building 'xmlsecmod' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c utils.c -o build/temp.linux-x86_64-2.7/utils.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c wrap_objs.c -o build/temp.linux-x86_64-2.7/wrap_objs.o In file included from wrap_objs.c:25:0: wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога компиляция прервана. error: command 'gcc' failed with exit status 1 Complete output from command /home/ilnurgi/.virtualenvs/test/bin/python -c "import setuptools;__file__='/home/ilnurgi/.virtualenvs/test/build/pyxmlsec/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-jo0jNo-record/install-record.txt --install-headers /home/ilnurgi/.virtualenvs/test/include/site/python2.7: Error : cannot get XMLSec1 pre-processor and compiler flags Error : cannot get XMLSec1 linker flags Warning : cflag sh: skipped Warning : cflag 1: skipped Warning : cflag xmlsec1-config: skipped Warning : cflag not skipped Warning : cflag found skipped Warning : linker flag sh: skipped Warning : linker flag 1: skipped Warning : linker flag xmlsec1-config: skipped Warning : linker flag not skipped Warning : linker flag found skipped running install running build running build_py running build_ext building 'xmlsecmod' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c utils.c -o build/temp.linux-x86_64-2.7/utils.o gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/libxml2 -I/usr/include/python2.7 -c wrap_objs.c -o build/temp.linux-x86_64-2.7/wrap_objs.o In file included from wrap_objs.c:25:0: wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога компиляция прервана. error: command 'gcc' failed with exit status 1 ---------------------------------------- Command /home/ilnurgi/.virtualenvs/test/bin/python -c "import setuptools;__file__='/home/ilnurgi/.virtualenvs/test/build/pyxmlsec/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-jo0jNo-record/install-record.txt --install-headers /home/ilnurgi/.virtualenvs/test/include/site/python2.7 failed with error code 1 in /home/ilnurgi/.virtualenvs/test/build/pyxmlsec Storing complete log in /home/ilnurgi/.pip/pip.log
Офлайн
568
попробуй сначала
sudo apt-get install xmlsec1
Офлайн
25
ему явно не хватает -dev пакетов - о чем он вам и говорит:
wrap_objs.h:10:27: фатальная ошибка: xmlsec/xmlsec.h: Нет такого файла или каталога
Офлайн
22
sudo apt-get install xmlsec1
ему явно не хватает -dev пакетов - о чем он вам и говорит:я вручную скачивал архив. Там такой файл есть.
Офлайн
25
либо укажите путь где он есть для gсс, либо поставьте libxmlsec1-dev
Офлайн
22
оооооооооооооо
огромное спасибо. Заработало после libxmlsec1-dev
Офлайн