ImportError: cannot import name _unquotepath
<p>I am trying to use scrapy for my project &amp; after some initial struggle i started with <a href="https://doc.scrapy.org/en/latest/intro/tutorial.html" rel="nofollow">https://doc.scrapy.org/en/latest/intro/tutorial.html</a> </p>

<p>When i use :</p>

<p><code>scrapy startproject tutorial</code></p>

<p>It throws me error: </p>

<pre><code>ubuntu@ip-10-241-62-56:~/Selenim$ scrapy startproject tutorial
Traceback (most recent call last):
  File "/usr/local/bin/scrapy", line 7, in &lt;module&gt;
    from scrapy.cmdline import execute
  File "/usr/local/lib/python2.7/dist-packages/scrapy/__init__.py", line 34, in &lt;module&gt;
    from scrapy.spiders import Spider
  File "/usr/local/lib/python2.7/dist-packages/scrapy/spiders/__init__.py", line 10, in &lt;module&gt;
    from scrapy.http import Request
  File "/usr/local/lib/python2.7/dist-packages/scrapy/http/__init__.py", line 10, in &lt;module&gt;
    from scrapy.http.request import Request
  File "/usr/local/lib/python2.7/dist-packages/scrapy/http/request/__init__.py", line 13, in &lt;module&gt;
    from scrapy.utils.url import escape_ajax
  File "/usr/local/lib/python2.7/dist-packages/scrapy/utils/url.py", line 15, in &lt;module&gt;
    from w3lib.url import _safe_chars, _unquotepath
ImportError: cannot import name _unquotepath
</code></pre>

<p>How do i resolve this?</p>

<p>Upgrading w3lib (to 1.15.0) solved the problem for me.</p>

python ubuntu scrapy