SOAPpy安装错误SyntaxError: from __future__ imports must occur at the beginning of the file原因
2014-05-05 15:29
579 查看
今天在用到SOAPpy做webservice的过程当中,要进行安装SOAPpy。SOAPpy0.11版本安装没有问题,但在安装其以上版本时发现SyntaxError: from __future__ imports must occur at the beginning of the file这样一个错误,安装不上去。后来无意中搜到一篇文章,讲到这是其本身的一个bug。需进行以下修改即可安装成功:
在其安装包中打开SOAPpy文件夹下找到如下三个文件:
Client.py
Types.py
Server.py
然后分别把它们当中的这行语句:from __future__ import nested_scopes
移到文件开始第一行的位置即可安装成功。
在其安装包中打开SOAPpy文件夹下找到如下三个文件:
Client.py
Types.py
Server.py
然后分别把它们当中的这行语句:from __future__ import nested_scopes
移到文件开始第一行的位置即可安装成功。
相关文章推荐
- from __future__ imports must occur at the beginning of the file问题解决
- from __future__ imports must occur at the beginning of the file问题的解决
- [android引用他人包出现的错误]All versions of the libraries must be the same at this time.以及It is indirectly re
- Qt5:"Designer: An error has occurred while reading the UI file at line 1, column 0: Premature end of document."错误
- 关于SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data错误的解决
- xcode4.3发布报错 At least one of the following architecture(s) must be present: armv6 (-19033) 错误解决方法
- Why do you need to put #!/bin/bash at the beginning of a script file?
- XML文件要有根标签(Extra content at the end of the document in file 错误)
- 编译结束时the .plg file has been modified outside of the source editor错误消息提示
- Appliation Loader上传App 莫名其妙的错误 The CFBundleExecutable of two bundles may not point to the same file.
- Java编译错误“No enclosing instance of type AA is accessible. Must qualify the allocation with an enclosing instance of type
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- FAT file system-What are the two reserved clusters at the start of the FAT for?
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- 升级adt插件后,eclipse突然出现Unable to build: the file dx.jar was not loaded from the SDK folder 错误
- Deep patient:An unsupervised representation to predict the future of patient from the electronic
- 安装mysql服务出现Install/Remove of the Service Denied!错误
- warning no newline at the end of file
- 错误:the public type XXX must be defined in its own file.
- ibatis遇到错误:The content of elements must consist of well-formed character data or markup