MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError解决方法
2017-05-22 23:23
519 查看
问题描述
安装qira的时候出现了这个错误,大概如下Processing ./qiradb Collecting https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709 (from -r requirements.txt (line 15)) Using cached pyparsing-1.5.7.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/anciety/qira/venv/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module> import setuptools.version File "/home/anciety/qira/venv/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module> import pkg_resources File "/home/anciety/qira/venv/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module> import packaging.requirements File "/home/anciety/qira/venv/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module> MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: __call__() takes exactly 2 arguments (1 given) ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-AEFGO0-build/
大概意思应该就是pip安装pyparsing的时候出错了
问题解决
sudo pip install --upgrade --force pip sudo pip install setuptools==33.1.1
不过这应该是个临时解决方法,情况应该是setuptools或者pip中有bug,只能先这样临时解决。
相关文章推荐
- import redis MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
- python MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker") TypeError: __call__() takes exactly 2
- "554 Relay rejected for policy reasons."错误的解决方法
- 异常:target is null for setProperty(null, "x", [Ljava.lang.String;@1a48515)解决方法之一
- OPC Client "CLSIDFromProgID failed for OPCServer" 解决方法
- 报错:this class is not key value coding-compliant for the key closeLotTextField解决方法
- 对于TextView 设置 Ellipsize ="End" 无效时的解决方法
- 滑动下拉菜单以及"infinite menus must be purchased for internet use"的解决方法
- android Run模式也会出现"Waiting for debugger"的解决方法
- JQuery设置DIV的text("")造成IE崩溃解决方法
- The prefix "mvc" for element "mvc:annotation-driven" is not bound 的解决方法
- ognl.OgnlException: target is null for setProperty(null, "offset", [Ljava.lang.String;@1667f3c) 解决方法
- VC++6.0中常出现的"unexpected end of file while looking for precompiled header directive"的问题解决方法
- "Borland license information was found,but it is not valid for delphi." 的解决方法
- No entry for terminal type "unknown"的解决方法
- Service部署到服务器后出现"The test form is only available for requests from the local machine"解决方法
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- 关于Translation failed for content-type:text/vnd.wap.wml的解决方法
- Service部署到服务器后出现"The test form is only available for requests from the local machine"解决方法
- Linux内核挂载根文件系统出现INIT:Id "S" respawning too fast: disabled for 5 minutes的解决方法