How to troubleshoot an “AttributeError: __exit__” in multiproccesing in Python?

后端 未结 4 671
执笔经年
执笔经年 2020-12-13 22:41

I tried to rewrite some csv-reading code to be able to run it on multiple cores in Python 3.2.2. I tried to use the Pool object of multiprocessing, which I adap

4条回答
  •  失恋的感觉
    2020-12-13 23:47

    The reason behind this error is : Flask app is already running, hasn't shut down and in middle of that we try to start another instance by: with app.app_context(): #Code Before we use this with statement we need to make sure that scope of the previous running app is closed.

提交回复
热议问题