Discuss / Python / 几个报错

几个报错

Topic source

流云

#1 Created at ... [Delete] [Delete and Lock User]

报错1:AttributeError: 'Pool' object has no attribute 'get'

解决:参考 Pool — aiomysql 0.1.2.dev106+g83aa96e documentation  ,将get()方法改为 acquire()

报错2:NameError: name '__pool' is not defined

解决: 将from www import orm 改为 import orm    参考**:https://github.com/michaelliao/awesome-python3-webapp/issues/32**


  • 1

Reply