Error While Starting New Scrapy Project
Solution 1:
According to the error:
pkg_resources.ContextualVersionConflict: (pyasn1 0.1.7 (/usr/lib/python2.7/dist-packages),
Requirement.parse('pyasn1>=0.1.8'), set(['pyasn1-modules']))
The required pyasn1 version should be greater or equal to 0.1.8 and you currently have installed in your global py2.7 dist-packages v0.1.7.
sudo pip install pyasn1 --upgrade
will update your current pyasn1 package to the latest version and should solve the problem.
Note: you may wish to check that other projects or applications you have that depend on this library are still functioning correctly.
As a solution to the above notice, please have a look at creating virtualenv
's for your python project as this will isolate dependant packages to your project (global ones remain unaffected). more information on virtualenv can be found HERE
Solution 2:
first you should visit https://pypi.python.org/pypi/pyasn1/ then download pyasn1-0.1.9-py2.7.egg (md5) and then execute easy_install pyasn1-0.1.9-py2.7.egg it works on my computer (CentOS 7)
Solution 3:
i just had exactly the same problem. it's something with not updated dependencies. try something like this:
sudo apt-get autoremove python
then:
apt-get install python
apt-get install python-scrapy
Post a Comment for "Error While Starting New Scrapy Project"