python - Error while starting new scrapy project -
i have installed scrapy using ubuntu packages provided in scrapy website. on starting scrapy project
scrapy startproject test
i getting error message as.
traceback (most recent call last): file "/usr/bin/scrapy", line 5, in <module> pkg_resources import load_entry_point file "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3084, in <module> file "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3070, in _call_aside file "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set file "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 653, in _build_master file "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 666, in _build_from_requirements file "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 844, in resolve pkg_resources.contextualversionconflict: (pyasn1 0.1.7 (/usr/lib/python2.7/dist-packages), requirement.parse('pyasn1>=0.1.8'), set(['pyasn1-modules']))
please me solve error. running python 2.7.6
according 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 greater or equal 0.1.8 , have installed in global py2.7 dist-packages v0.1.7.
sudo pip install pyasn1 --upgrade
update current pyasn1 package latest version , should solve problem.
note: may wish check other projects or applications have depend on library still functioning correctly.
as solution above notice, please have @ creating virtualenv
's python project isolate dependant packages project (global ones remain unaffected). more information on virtualenv can found here
Comments
Post a Comment