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

scrapy.utils.log.StreamLogger doesn't seem to have flush method - breaks Python3 #2125

Closed
zelenij opened this issue Jul 14, 2016 · 1 comment
Closed
Labels

Comments

@zelenij
Copy link

@zelenij zelenij commented Jul 14, 2016

Might be necessary to add the flush method to StreamLogger class, to make this work with Python3 and LOG_STDOUT = True:

  File "<frozen importlib._bootstrap>", line 986, in _gcd_import

  File "<frozen importlib._bootstrap>", line 969, in _find_and_load

  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked

  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked

  File "<frozen importlib._bootstrap_external>", line 658, in exec_module

  File "<frozen importlib._bootstrap_external>", line 764, in get_code

  File "<frozen importlib._bootstrap_external>", line 724, in source_to_code

  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed

builtins.SyntaxError: invalid syntax (pipelines.py, line 19)
Exception ignored in: <scrapy.utils.log.StreamLogger object at 0x10fddd978>
AttributeError: 'StreamLogger' object has no attribute 'flush'
@molavy
Copy link

@molavy molavy commented Sep 14, 2016

Exception ignored in: <scrapy.utils.log.StreamLogger object at 0x7fcd38612f60>
AttributeError: 'StreamLogger' object has no attribute 'flush'
also have this problem on python 3

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

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.