Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with session_scope(self.Session) as session #1

Open
carrie0307 opened this issue Aug 22, 2017 · 0 comments
Open

with session_scope(self.Session) as session #1

carrie0307 opened this issue Aug 22, 2017 · 0 comments

Comments

@carrie0307
Copy link

您好,https://github.com/yidao620c/scrapy-cookbook/blob/master/source/scrapy-02.md 里代码中的with session_scope(self.Session) as session运行报错global name 'session_scope' is not defined;
查资料后有 from sqlalchemy.orm import scoped_session用scoped_session代替session_scope的,但是报错
AttributeError: exit
请问是我哪里搞错了吗?

新手学习,谢谢啦!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant