在Azure应用程序服务上的Django应用程序中获取错误
从昨天开始,我从昨天起就开始努力工作,早期的升级效果
很好
错误:
模块'键入'没有属性'_classvar'
我的python env是3.7和django版本2.1.3
I am getting since yesterday on appliction from yesterday it's working fine early some upgradtion on cloud breaks the application
This is the error
Error :
module 'typing' has no attribute '_ClassVar'
My python env is 3.7 and Django version 2.1.3
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请检查以下步骤是否有助于解决该问题:
pip卸载dataclasses
Please check the below steps if that helps to fix the issue:
pip uninstall dataclasses
when using the Python Version 3.7我过去遇到了类似的问题。第一件事是确定您的应用程序是否实际使用此模块。如果是,请确保您根据自己的要求有它。如果否,请参阅日志以了解哪个Python文件正在引用它并删除其参考。
I had a similar problem in the past. The first thing is determine if your application is actually using this module. If yes, make sure you have it at your requirements.txt. If no, refer to the logs to understand which python file is referencing it and remove the reference for it.