question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ScrapyDeprecationWarning: Module `scrapy.log` has been deprecated

See original GitHub issue

ubgpu@ubgpu:~/github/pystock-crawler$ ubgpu@ubgpu:~/github/pystock-crawler$ PYTHONPATH=/usr/local/lib/python2.7/dist-packages pystock-crawler prices GOOG,YHOO -o out.csv --sort /usr/local/bin/pystock-crawler:33: ScrapyDeprecationWarning: Module scrapy.log has been deprecated, Scrapy now relies on the builtin Python library for logging. Read the updated logging entry in the documentation to learn more. from scrapy import log Traceback (most recent call last): File “/usr/local/bin/pystock-crawler”, line 267, in <module> main() File “/usr/local/bin/pystock-crawler”, line 252, in main log.start(logfile=log_file) AttributeError: ‘module’ object has no attribute ‘start’ ubgpu@ubgpu:~/github/pystock-crawler$ ubgpu@ubgpu:~/github/pystock-crawler$ sudo pip2 install scrapy Requirement already satisfied (use --upgrade to upgrade): scrapy in /usr/local/lib/python2.7/dist-packages Cleaning up… ubgpu@ubgpu:~/github/pystock-crawler$

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mlliarmcommented, Jan 29, 2017

@eliangcs Thanks, I’ll do that right now and let you know. EDIT: It works just fine now !

1reaction
eliangcscommented, Jan 29, 2017

@mlliarm this project uses Scrapy 0.24.4. Can you reinstall Scrapy old version and try again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

scrapyd-deploy with "deploy failed (400)" - Stack Overflow
I am trying to deploy with scrapyd-deploy to a remote scrapyd server, which failes without error message: % scrapyd-deploy /Library/Frameworks/ ...
Read more >
Source code for scrapy.utils.log
This mimics the old Scrapy log behaviour and helps shortening long ... has been ' 'deprecated, use `msg` instead', ScrapyDeprecationWarning) ...
Read more >
Deprecations — Scrapy 1.8.0 documentation
This document outlines the Scrapy deprecation policy, how to handle deprecation warnings, and lists when various pieces of Scrapy have been removed or ......
Read more >
log.py · hemamaps/Scrapy - Gemfury
import logging import warnings from twisted.python.failure import Failure from ... warnings.warn("Module `scrapy.log` has been deprecated, Scrapy now relies ...
Read more >
log.py | searchcode
getLogger(__name__) 13 14warnings.warn("Module `scrapy.log` has been deprecated, Scrapy now relies on " 15 "the builtin Python library for logging.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found