Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python django allauth安装迁移_Python_Django - Fatal编程技术网

Python django allauth安装迁移

Python django allauth安装迁移,python,django,Python,Django,我用django建立了一个网站/ 当我安装django allauth时,我在MIGRATE步骤中出错 () D:\prj\cool>python manage.py迁移 ........................... 文件“D:\Python3\lib\site packages\openid\yadis\etxrd.py”,第31行,在 SafeElementTree=importSafeElementTree() 文件“D:\Python3\lib\site packages\op

我用django建立了一个网站/ 当我安装django allauth时,我在MIGRATE步骤中出错

()
D:\prj\cool>python manage.py迁移
...........................
文件“D:\Python3\lib\site packages\openid\yadis\etxrd.py”,第31行,在
SafeElementTree=importSafeElementTree()
文件“D:\Python3\lib\site packages\openid\oidutil.py”,第83行,在ImportsFeelementTree中
返回importElementTree(模块名称)
文件“D:\Python3\lib\site packages\openid\oidutil.py”,第106行,在importElementTree中
ElementTree=\uuuuuu导入(mod\u名称,无,无,['unused']))
文件“D:\Python3\lib\site packages\defusedxml\celementree.py”,第16行,在
从.ElementTree导入DefusedXMLParser,_IterParseIterator
文件“D:\Python3\lib\site packages\defusedxml\ElementTree.py”,第62行,在
_XMLParser、\u iterparse、\u IterParseIterator、ParseError=\u get\u py3\u cls()
文件“D:\Python3\lib\site packages\defusedxml\ElementTree.py”,第56行,位于get\U py3\U cls中
_IterParseIterator=纯IterpyMod.\U IterParseIterator
AttributeError:模块“xml.etree.ElementTree”没有属性“\u IterParseIterator”

有什么想法吗?Python 3.6、django 1.10、django allauth

我从gitHub复制了上一个补丁的2个文件的新版本 并更新了这些文件,而且很有效


请参阅上面的评论

我从gitHub复制了上一个补丁的2个文件的新版本 并更新了这些文件,而且很有效


请参阅上面的注释

看起来用于XML处理的链接C库不适合您的python二进制文件,或者发现不同版本不匹配。这可能会帮助您
http://stackoverflow.com/questions/10757702/python-2-7-type-object-elementtree-has-no-attribute-register-namespace
不确定,但python3.6也存在类似的问题不能使用defusedxm(((看起来用于XML处理的链接C库不适合您的python二进制文件,或者发现不同的版本不匹配。这可能会帮助您
http://stackoverflow.com/questions/10757702/python-2-7-type-object-elementtree-has-no-attribute-register-namespace
不确定,但类似的问题是python3.6不能与defusedxm一起使用 (((
    D:\prj\cool> python manage.py migrate
   ...........................
      File "D:\Python3\lib\site-packages\openid\yadis\etxrd.py", line 31, in <module>
        SafeElementTree = importSafeElementTree()
      File "D:\Python3\lib\site-packages\openid\oidutil.py", line 83, in importSafeElementTree
        return importElementTree(module_names)
      File "D:\Python3\lib\site-packages\openid\oidutil.py", line 106, in importElementTree
        ElementTree = __import__(mod_name, None, None, ['unused'])
      File "D:\Python3\lib\site-packages\defusedxml\cElementTree.py", line 16, in <module>
        from .ElementTree import DefusedXMLParser, _IterParseIterator
      File "D:\Python3\lib\site-packages\defusedxml\ElementTree.py", line 62, in <module>
        _XMLParser, _iterparse, _IterParseIterator, ParseError = _get_py3_cls()
      File "D:\Python3\lib\site-packages\defusedxml\ElementTree.py", line 56, in _get_py3_cls
        _IterParseIterator = pure_pymod._IterParseIterator
    AttributeError: module 'xml.etree.ElementTree' has no attribute '_IterParseIterator'