- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我知道有几个非常相似的主题,但每个主题都有独特的 clang 回溯,我的情况也不异常(exception)。
我的 macOS 版本是 Mojave 10.14.2。我安装了命令行工具,$ echo $C_INCLUDE_PATH
输出 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/包括
所以我正在尝试通过 pip install lxml
安装 lxml,并获得以下回溯:
Running setup.py bdist_wheel for lxml ... error
Complete output from command /Users/bulrathi/Virtualenvs/gm-test/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/pip-install-8a1v9j7p/lxml/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 /private/var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/pip-wheel-wpeizpmd --python-tag cp37:
Building lxml version 3.6.0.
Building without Cython.
Using build configuration of libxslt 1.1.29
Building against libxml2/libxslt in the following directory: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.14-x86_64-3.7/lxml
creating build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
creating build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/html
creating build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron
copying src/lxml/isoschematron/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.14-x86_64-3.7/lxml
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.14-x86_64-3.7/lxml/includes
creating build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources
creating build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.14-x86_64-3.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/src
creating build/temp.macosx-10.14-x86_64-3.7/src/lxml
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libxml2 -Isrc/lxml/includes -I/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/lxml/lxml.etree.c -o build/temp.macosx-10.14-x86_64-3.7/src/lxml/lxml.etree.o -w -flat_namespace
src/lxml/lxml.etree.c:220873:21: error: no member named 'exc_type' in 'struct _ts'
*type = tstate->exc_type;
~~~~~~ ^
src/lxml/lxml.etree.c:220874:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
*value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
src/lxml/lxml.etree.c:220875:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
*tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
src/lxml/lxml.etree.c:220887:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
src/lxml/lxml.etree.c:220888:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
src/lxml/lxml.etree.c:220889:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
src/lxml/lxml.etree.c:220890:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = type;
~~~~~~ ^
src/lxml/lxml.etree.c:220891:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
tstate->exc_value = value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
src/lxml/lxml.etree.c:220892:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
src/lxml/lxml.etree.c:220935:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
src/lxml/lxml.etree.c:220936:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
src/lxml/lxml.etree.c:220937:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
src/lxml/lxml.etree.c:220938:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = local_type;
~~~~~~ ^
src/lxml/lxml.etree.c:220939:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
tstate->exc_value = local_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
src/lxml/lxml.etree.c:220940:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
tstate->exc_traceback = local_tb;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
src/lxml/lxml.etree.c:221249:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
src/lxml/lxml.etree.c:221250:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'?
tmp_value = tstate->exc_value;
^~~~~~~~~
curexc_value
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
src/lxml/lxml.etree.c:221251:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'?
tmp_tb = tstate->exc_traceback;
^~~~~~~~~~~~~
curexc_traceback
/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
src/lxml/lxml.etree.c:221252:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = *type;
~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Compile failed: command 'clang' failed with exit status 1
creating var
creating var/folders
creating var/folders/4n
creating var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn
creating var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T
cc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libxml2 -I/usr/include/libxml2 -c /var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/xmlXPathIniti_lemcx7.c -o var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/xmlXPathIniti_lemcx7.o
/var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/xmlXPathIniti_lemcx7.c:2:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main (int argc, char **argv) {
^
1 warning generated.
cc var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/xmlXPathIniti_lemcx7.o -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib -lxml2 -o a.out
error: command 'clang' failed with exit status 1
----------------------------------------
Failed building wheel for lxml
Command "/Users/bulrathi/Virtualenvs/gm-test/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/pip-install-0tja2284/lxml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/pip-record-w1eydfb_/install-record.txt --single-version-externally-managed --compile --install-headers /Users/bulrathi/Virtualenvs/gm-test/bin/../include/site/python3.7/lxml" failed with error code 1 in /private/var/folders/4n/brsfjpqx0kz8lh4rdcz6nb0w0000gn/T/pip-install-0tja2284/lxml/
你能帮忙吗?
最佳答案
问题是我试图从我的系统上有 python3.7.0 的 requirements.txt 安装 lxml==3.6.0。 lxml3.6.0与python3.7.0不兼容,请考虑使用lxml>4.0。谢谢@hoefling!
关于python - pip install lxml 在 clang 上提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53804251/
我的 friend 编写了一个程序,它比较随机排列的骰子面,以找到分布最均匀的面——尤其是当面不仅仅是序列时。 我将他的程序翻译成 haskell 是因为我一直在寻找一个理由来让别人知道 haskel
我需要对表单中的某些字段进行评论/提示。我的想法是在模型中描述它,就像attributeLabels一样。我该怎么做? 然后它会是理想的,如果 Gii 模型(和 Crud)生成器直接从 mysql 列
我们使用 FastReport 来生成报告。事实上,我们为访问源代码付费。 我们目前使用的是 FastReport 的最新稳定版本。虽然它对于我们的生产来说足够稳定,但每当我编译时,我都会看到以下内容
我需要创建一个对话框/提示,包括用于用户输入的文本框。我的问题是,确认对话框后如何获取文本?通常我会为此创建一个类,将文本保存在属性中。不过我想使用 XAML 设计对话框。因此,我必须以某种方式扩展
我想提示用户是否要执行操作(删除) - 用警报框说"is"或“否”,如果是,则运行删除脚本,如果否,则不执行任何操作 我不太了解 javascript,因此是否有人可以使用 javascript 获得
所以我正在编写一个简单的 JS 代码。我们刚刚开始学习函数。我需要创建一个名为“printStars”的函数。 我需要从用户那里获取一个号码,并根据该号码打印“*”。 这就是我所做的:
我在我的页面上添加了一个提示,但它在页面加载之前加载了。如何仅在整个页面可见时才显示消息? 这是我的提示: if (name == null || name == "") { txt == "No
我在我的页面上添加了一个提示,但它在页面加载之前加载了。如何仅在整个页面可见时才显示消息? 这是我的提示: if (name == null || name == "") { txt == "No
我正在自定义我的 zsh 提示,并发现以下内容来检查是否有任何后台作业: if [[ $(jobs | wc -l) -gt 0 ]]; then # has background job(s)
这个问题在这里已经有了答案: JavaScript object: access variable property by name as string [duplicate] (3 个答案) pa
我正在尝试用 javascript 制作一个简单的数学练习程序。在提示警报中给出不同的值,并将答案与用户输入进行比较。这是代码: Calculations generate(); functio
在这段代码中,尽管我使用了文本对齐属性在“编辑文本” View 的中心设置“提示”。但它无法正常工作。 最佳答案 尝试 关于android - 如何在编辑文本的中心对齐文本(提示),我们在Sta
我正在尝试让我的 EditText 显示一个提示,例如“请在此处输入答案”,当用户点击 EditText 以键入他们的答案时,文本应该消失并留空,以便他们在其中输入答案. 截至目前,这就是我的 .xm
我当前的 android 应用程序中有两个微调器,我想要一个默认值,例如 editText 的 android:hint 功能。有没有办法这样做,但不会将提示添加到填充微调器的字符串数组。例如从微调器
如果我的表单已完全填写,我如何提示“感谢您填写表单,“name”!” function submit_onclick() { if(confirm("Thanks for completing t
我刚刚了解了prompt()命令;我知道 Prompt() 命令以字符串的形式返回用户输入。我正在搞乱下面的程序,我输入了Per“Dead”Ohlin作为男性名字。为什么这有效并且没有引起任何问题?
void openUpNow(FILE *x, FILE *y) { x = fopen("xwhatever", "r"); y = fopen("ywhatever", "r");
我有一个作业正在处理,但我在使用 prompt() 方法时遇到了问题。我看到我可以做一个提示,但我需要几个并且有数量。 例如... 我创建了一个 HTML 表格,其中包含许多艺术家和包含 DVD、CD
我正在学习 Big Nerd Ranch 的 iOS Programming, 2nd Edition,我已经来到第 4 章挑战:标题。该练习暗示我感到困惑;它说我需要做一些我认为不需要做的事情。 到
抱歉,如果这是微不足道的,但我没有找到任何解决此问题的建议。我在 Ubuntu 上,我的 Yii 项目需要 PHPUnit。我已经安装了 PHPUnit 两次,方法是下载 phpunit.phar 并
我是一名优秀的程序员,十分优秀!