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

Installing on CentOS7 (Python 2.7.5) #3889

Closed
Hiroki111 opened this issue Jul 19, 2019 · 2 comments
Closed

Installing on CentOS7 (Python 2.7.5) #3889

Hiroki111 opened this issue Jul 19, 2019 · 2 comments

Comments

@Hiroki111
Copy link

@Hiroki111 Hiroki111 commented Jul 19, 2019

I've run pip install scrapy, but it doesn't seem that this has been installed properly.

Now when I ran scrapy on CLI, it ends up in the following message.

Traceback (most recent call last):
  File "/usr/bin/scrapy", line 6, in <module>
    from scrapy.cmdline import execute
  File "/usr/lib64/python2.7/site-packages/scrapy/cmdline.py", line 10, in <module>
    from scrapy.crawler import CrawlerProcess
  File "/usr/lib64/python2.7/site-packages/scrapy/crawler.py", line 11, in <module>
    from scrapy.core.engine import ExecutionEngine
  File "/usr/lib64/python2.7/site-packages/scrapy/core/engine.py", line 14, in <module>
    from scrapy.core.scraper import Scraper
  File "/usr/lib64/python2.7/site-packages/scrapy/core/scraper.py", line 18, in <module>
    from scrapy.core.spidermw import SpiderMiddlewareManager
  File "/usr/lib64/python2.7/site-packages/scrapy/core/spidermw.py", line 13, in <module>
    from scrapy.utils.conf import build_component_list
  File "/usr/lib64/python2.7/site-packages/scrapy/utils/conf.py", line 4, in <module>
    import configparser
ImportError: No module named configparser

I googled configparser, and apparently this used to be called ConfigParser.

Has anyone seen this issue?
Any advice will be appreciated.

@marsam
Copy link

@marsam marsam commented Jul 20, 2019

addressed by #3887

@elacuesta
Copy link
Member

@elacuesta elacuesta commented Jul 20, 2019

Hello @Hiroki111, please see my explanation at #3887 (comment).
As a temporary workaround, I believe you should be able to make it work by installing the configparser backport (https://pypi.org/project/configparser/)

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

Successfully merging a pull request may close this issue.

3 participants