src/Xerces.cpp:13:10: fatal error: dom/DOMAttr.h: No such file or directory
src/Xerces.cpp:13:10: fatal error: dom/DOMAttr.h: No such file or directory
我正在尝试安装 PyExerces。但是我得到了 gcc 编译错误。 Ubuntupython这种事情正常吗?
(我在 Python 中几乎找不到 XQuery 库,它是 XQilla,XQilla 需要 PyExerces,而 "pip install PyXerces" 给出了以下错误。
python Xquery 库也有 Zorba。但它是一个旧的过时项目,其所需的软件包不再适用于 Ubuntu 18。 python 发生了什么事? :) 无法为 Python..)
找到 XQuery 库是非常令人失望的
erhan@erhan-VirtualBox:~$ sudo pip install PyXerces
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
WARNING: The directory '/home/erhan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/erhan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting PyXerces
Downloading https://files.pythonhosted.org/packages/bf/64/421bc05f5b679ba95cc9bde319ad824406fa5522bef3621ba9125edf16bf/PyXerces-0.0.1.tar.gz (122kB)
|████████████████████████████████| 122kB 773kB/s
Installing collected packages: PyXerces
Running setup.py install for PyXerces ... error
ERROR: Complete output from command /usr/bin/python2.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-FNousf/PyXerces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-56rydK/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/Xerces
copying Xerces/etree.py -> build/lib.linux-x86_64-2.7/Xerces
copying Xerces/__init__.py -> build/lib.linux-x86_64-2.7/Xerces
creating build/lib.linux-x86_64-2.7/Xerces/util
copying Xerces/util/__init__.py -> build/lib.linux-x86_64-2.7/Xerces/util
copying Xerces/util/XMLUniDefs.py -> build/lib.linux-x86_64-2.7/Xerces/util
running build_ext
building 'Xerces.__Xerces' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/util
creating build/temp.linux-x86_64-2.7/src/common
creating build/temp.linux-x86_64-2.7/src/internal
creating build/temp.linux-x86_64-2.7/src/framework
creating build/temp.linux-x86_64-2.7/src/framework/psvi
creating build/temp.linux-x86_64-2.7/src/parsers
creating build/temp.linux-x86_64-2.7/src/dom
creating build/temp.linux-x86_64-2.7/src/sax
creating build/temp.linux-x86_64-2.7/src/validators
creating build/temp.linux-x86_64-2.7/src/validators/common
creating build/temp.linux-x86_64-2.7/src/validators/DTD
creating build/temp.linux-x86_64-2.7/src/validators/schema
creating build/temp.linux-x86_64-2.7/src/validators/schema/identity
creating build/temp.linux-x86_64-2.7/src/validators/datatype
creating build/temp.linux-x86_64-2.7/src/sax2
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-MW0004/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include -I/usr/include/python2.7 -c src/Xerces.cpp -o build/temp.linux-x86_64-2.7/src/Xerces.o -std=c++0x
src/Xerces.cpp:13:10: fatal error: dom/DOMAttr.h: No such file or directory
#include "dom/DOMAttr.h"
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python2.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-FNousf/PyXerces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-56rydK/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-FNousf/PyXerces/
2014年发布的0.0.1版本,你确定这个包可以用吗?不管怎样……
这是包中的错误。 distribution at PyPI includes Python sources and C++ file but not include files. The headers are available in the repository。尝试直接从 Github:
安装
pip install git+https://github.com/mugwort-rc/pyXerces.git#egg=pyXerces
您需要一些额外的依赖项。当编译开始需要 Boost 库时,我停止了。
我正在尝试安装 PyExerces。但是我得到了 gcc 编译错误。 Ubuntupython这种事情正常吗?
(我在 Python 中几乎找不到 XQuery 库,它是 XQilla,XQilla 需要 PyExerces,而 "pip install PyXerces" 给出了以下错误。 python Xquery 库也有 Zorba。但它是一个旧的过时项目,其所需的软件包不再适用于 Ubuntu 18。 python 发生了什么事? :) 无法为 Python..)
找到 XQuery 库是非常令人失望的erhan@erhan-VirtualBox:~$ sudo pip install PyXerces
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
WARNING: The directory '/home/erhan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/erhan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting PyXerces
Downloading https://files.pythonhosted.org/packages/bf/64/421bc05f5b679ba95cc9bde319ad824406fa5522bef3621ba9125edf16bf/PyXerces-0.0.1.tar.gz (122kB)
|████████████████████████████████| 122kB 773kB/s
Installing collected packages: PyXerces
Running setup.py install for PyXerces ... error
ERROR: Complete output from command /usr/bin/python2.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-FNousf/PyXerces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-56rydK/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/Xerces
copying Xerces/etree.py -> build/lib.linux-x86_64-2.7/Xerces
copying Xerces/__init__.py -> build/lib.linux-x86_64-2.7/Xerces
creating build/lib.linux-x86_64-2.7/Xerces/util
copying Xerces/util/__init__.py -> build/lib.linux-x86_64-2.7/Xerces/util
copying Xerces/util/XMLUniDefs.py -> build/lib.linux-x86_64-2.7/Xerces/util
running build_ext
building 'Xerces.__Xerces' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/util
creating build/temp.linux-x86_64-2.7/src/common
creating build/temp.linux-x86_64-2.7/src/internal
creating build/temp.linux-x86_64-2.7/src/framework
creating build/temp.linux-x86_64-2.7/src/framework/psvi
creating build/temp.linux-x86_64-2.7/src/parsers
creating build/temp.linux-x86_64-2.7/src/dom
creating build/temp.linux-x86_64-2.7/src/sax
creating build/temp.linux-x86_64-2.7/src/validators
creating build/temp.linux-x86_64-2.7/src/validators/common
creating build/temp.linux-x86_64-2.7/src/validators/DTD
creating build/temp.linux-x86_64-2.7/src/validators/schema
creating build/temp.linux-x86_64-2.7/src/validators/schema/identity
creating build/temp.linux-x86_64-2.7/src/validators/datatype
creating build/temp.linux-x86_64-2.7/src/sax2
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-MW0004/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/local/include -I/usr/include/python2.7 -c src/Xerces.cpp -o build/temp.linux-x86_64-2.7/src/Xerces.o -std=c++0x
src/Xerces.cpp:13:10: fatal error: dom/DOMAttr.h: No such file or directory
#include "dom/DOMAttr.h"
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python2.7 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-FNousf/PyXerces/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-56rydK/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-FNousf/PyXerces/
2014年发布的0.0.1版本,你确定这个包可以用吗?不管怎样……
这是包中的错误。 distribution at PyPI includes Python sources and C++ file but not include files. The headers are available in the repository。尝试直接从 Github:
安装pip install git+https://github.com/mugwort-rc/pyXerces.git#egg=pyXerces
您需要一些额外的依赖项。当编译开始需要 Boost 库时,我停止了。