启动django项目报错:RuntimeError: maximum recursion depth exceeded while calling a Python object
2017-06-03 00:00
453 查看
启动django项目时报错
C:\Users\jerry.home-pc\PycharmProjects\mysite>python manage.py startapp app01
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 363, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 337, in execute
django.setup()
File "C:\Python27\lib\site-packages\django\__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Python27\lib\site-packages\django\apps\registry.py", line 108, in populate
app_config.import_models()
File "C:\Python27\lib\site-packages\django\apps\config.py", line 202, in import_models
RuntimeError: maximum recursion depth exceeded while calling a Python object
命令行无法启动,pycharm中也无法启动
分析原因:查看系统python版本号:
解决方法:升级python到2.7.5(参考自:https://stackoverflow.com/questions/16369637/maximum-recursion-depth-exceeded-in-cmp-error-while-executing-python-manage-py-r?rq=1)
升级后查看Python版本号:
升级后启动成功:
方法二:修改functools.py文件也能达到同样的效果(未测试,感兴趣的可以自己试试)
C:\Users\jerry.home-pc\PycharmProjects\mysite>python manage.py startapp app01
Traceback (most recent call last):
File "manage.py", line 22, in <module>
execute_from_command_line(sys.argv)
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 363, in execute_from_command_line
utility.execute()
File "C:\Python27\lib\site-packages\django\core\management\__init__.py", line 337, in execute
django.setup()
File "C:\Python27\lib\site-packages\django\__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Python27\lib\site-packages\django\apps\registry.py", line 108, in populate
app_config.import_models()
File "C:\Python27\lib\site-packages\django\apps\config.py", line 202, in import_models
RuntimeError: maximum recursion depth exceeded while calling a Python object
命令行无法启动,pycharm中也无法启动
分析原因:查看系统python版本号:
C:\Users\jerry.home-pc\PycharmProjects\mysite>python -V Python 2.7
解决方法:升级python到2.7.5(参考自:https://stackoverflow.com/questions/16369637/maximum-recursion-depth-exceeded-in-cmp-error-while-executing-python-manage-py-r?rq=1)
升级后查看Python版本号:
C:\Users\jerry.home-pc\PycharmProjects\mysite>python -V Python 2.7.5
升级后启动成功:
C:\Users\jerry.home-pc\PycharmProjects\mysite>python manage.py startapp app01
方法二:修改functools.py文件也能达到同样的效果(未测试,感兴趣的可以自己试试)
相关文章推荐
- win10启动django项目报错 Django RuntimeError: maximum recursion depth exceeded
- Odoo8查询产品时提示"maximum recursion depth exceeded while calling a Python object"
- win10启动django项目报错 Django RuntimeError: maximum recursion depth exceeded
- maximum recursion depth exceeded while calling a Python object
- Python的最大递归深度错误 “maximum recursion depth exceeded while calling a Python object”
- maximum recursion depth exceeded while calling a Python object
- Odoo8查询产品时提示"maximum recursion depth exceeded while calling a Python object"
- django启动的时候报错RuntimeError: maximum recursion depth exceeded in cmp
- 启动django的服务时候报错RuntimeError: maximum recursion depth exceeded in cmp
- 安装Django启动时报错:RuntimeError: maximum recursion depth exceeded
- RecursionError maximun recursion depth exceeded while calling a python object
- Python RuntimeError: maximum recursion depth exceeded in cmp 超过最大递归深度错误
- python setup.py install 出现了 RuntimeError: maximum recursion depth exceeded in cmp
- python递归深度报错: RuntimeError: maximum recursion depth exceeded
- python递归深度报错--RuntimeError: maximum recursion depth exceeded
- python递归深度报错--RuntimeError: maximum recursion depth exceeded
- python递归深度报错--RuntimeError: maximum recursion depth exceeded
- Django启动服务器报错:maximum recursion depth exceeded in cmp
- [Python] RuntimeError: maximum recursion depth exceeded|MemoryError: stack overflow 递归|堆栈限制
- python 最大递归次数 RuntimeError: maximum recursion depth exceeded