SOAPpy 安装错误
嗨,我正在尝试在我的 mac 上为 python 安装 SOAPpy 模块...... 我安装了 xml 和 fpconst 并尝试安装此 SOAPpy 模块,但出现错误...如下所示: venj:SOAPpy-0.12.0 venkata$ python setup.py build
Traceback(最近一次调用最后一次):
文件“setup.py”,第 8 行,位于 从 SOAPpy.version 导入 版本 文件“/Applications/SOAPpy-0.12.0/SOAPpy/init.py”,第 5 行,位于 从客户导入 * 文件“/Applications/SOAPpy-0.12.0/SOAPpy/Client.py”,第 46 行 from future importnested_scopes
语法错误:from future 导入必须出现在文件开头
venj:SOAPpy-0.12.0 venkata$ python setup.py install
Traceback (最近调用最后的): 文件“setup.py”,第 8 行,位于 从 SOAPpy.version 导入 版本 文件“/Applications/SOAPpy-0.12.0/SOAPpy/init.py”,第 5 行,位于 从客户进口* 文件“/Applications/SOAPpy-0.12.0/SOAPpy/Client.py”,第 46 行 从未来导入nested_scopes 语法错误:来自 future 导入必须出现在文件开头
嘿,请建议我如何解决此错误。
Hi i was trying to install SOAPpy module on my mac for python......
i installed xml and fpconst and tried installing this SOAPpy module, but i was getting the error... as below:
venj:SOAPpy-0.12.0 venkata$ python setup.py build
Traceback (most recent call last):
File "setup.py", line 8, in
from SOAPpy.version import version
File "/Applications/SOAPpy-0.12.0/SOAPpy/init.py", line 5, in
from Client import *
File "/Applications/SOAPpy-0.12.0/SOAPpy/Client.py", line 46
from future import nested_scopes
SyntaxError: from future imports must occur at the beginning of the file
venj:SOAPpy-0.12.0 venkata$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 8, in
from SOAPpy.version import version
File "/Applications/SOAPpy-0.12.0/SOAPpy/init.py", line 5, in
from Client import *
File "/Applications/SOAPpy-0.12.0/SOAPpy/Client.py", line 46
from future import nested_scopes
SyntaxError: from future imports must occur at the beginning of the file
Hey please suggest me how to solve this error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有同样的问题。
您必须“将来导入”到每个文件的开头。
应该有一个补丁。
Had the same problem.
You have to "future import" to the beginning of everyfile where it's stated.
There should be a patch for that.
看起来未来 SOAP.py 中的错误必须位于文件的开头 SOAP.py 错误 请参阅 Python 语言文档
That looks like a bug in SOAP.py from future must be at the beginning of the file SOAP.py bug see python language docs