title: Visual Studio Code pylint: Unable to import 'protorpc'
body: <p>I'm using <a href="https://github.com/DonJayamanne/pythonVSCode/wiki/Linting#pylint" rel="noreferrer">pylint</a> in <a href="https://code.visualstudio.com/" rel="noreferrer">Visual Studio Code</a> to develop a Google App Engine (GAE) <a href="https://cloud.google.com/endpoints/docs/frameworks/python/about-cloud-endpoints-frameworks" rel="noreferrer">Cloud Endpoint API in Python</a>. I'm unable to resolve a lint error. I don't know what's causing the error, but at a guess, <a href="https://github.com/DonJayamanne/pythonVSCode/wiki/Linting#pylint" rel="noreferrer">pylint</a> cannot find the <code>protorpc</code> library?</p>
  
  <p><a href="https://i.stack.imgur.com/dpq1v.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dpq1v.png" alt="enter image description here"></a></p>
  
  <p>The recommended fix in <a href="https://github.com/DonJayamanne/pythonVSCode/wiki/Troubleshooting-Linting" rel="noreferrer">Troubleshooting Linting</a> is to configure workspace settings to point to fully qualified python executable. I have done this, but the lint error remains.</p>
  
  <p><a href="https://i.stack.imgur.com/USrnH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/USrnH.png" alt="enter image description here"></a></p>
  
  <p><code>protorpc</code> itself is installed to: </p>
  
  <pre><code>~/google-cloud-sdk/platform/google_appengine/lib/protorpc-1.0/protorpc
  </code></pre>
  
  <p>...and this contains the <code>remote.py</code> module that cannot be imported:</p>
  
  <pre><code>__init__.py             generate_python.py      protojson.py            transport.py
  definition.py           google_imports.py       protourlencode.py       util.py
  descriptor.py           message_types.py        registry.py             webapp
  generate.py             messages.py             remote.py               wsgi
  generate_proto.py       protobuf.py             static
  </code></pre>
  
  <p>I've added this path to <code>$PYTHONPATH</code> (along with the <a href="http://www.thefreedictionary.com/kitchen+sink" rel="noreferrer">kitchen sink</a>):</p>
  
  <pre><code>export GOOGLE_CLOUD_SDK=~/google-cloud-sdk
  export APPENGINE_PATH=$GOOGLE_CLOUD_SDK/platform/google_appengine
  
  export PYTHONPATH=$PYTHONPATH:$GOOGLE_CLOUD_SDK
  export PYTHONPATH=$PYTHONPATH:$GOOGLE_CLOUD_SDK/lib
  export PYTHONPATH=$PYTHONPATH:$GOOGLE_CLOUD_SDK/lib/googlecloudsdk
  export PYTHONPATH=$PYTHONPATH:$GOOGLE_CLOUD_SDK/lib/googlecloudsdk/api_lib
  export PYTHONPATH=$PYTHONPATH:$GOOGLE_CLOUD_SDK/platform/google_appengine/lib
  export PYTHONPATH=$PYTHONPATH:$GOOGLE_CLOUD_SDK/platform/google_appengine/lib/protorpc-1.0/protorpc
  </code></pre>
  
  <p>The application runs locally and also when deployed, so this appears to be just a lint error, but it's frustrating that I can't solve it.</p>
  
  <p><a href="https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27" rel="noreferrer">Using third-party libraries</a> states:</p>
  
  <blockquote>
    <p>The Python runtime in the standard environment includes the Python
    standard library, the App Engine libraries, and a few bundled
    third-party packages.</p>
  </blockquote>
  
  <p>Because of this, I <em>assumed</em> 'the App Engine libraries' includes <code>protorpc</code>, but I'm unsure.  Moreover, <a href="https://cloud.google.com/endpoints/docs/frameworks/python/quickstart-frameworks-python#adding_the_cloud_endpoints_frameworks_library_to_the_sample_api" rel="noreferrer">Adding the Cloud Endpoints Frameworks library to the sample API</a> only requires google-endpoints be installed to the app's lib directory:</p>
  
  <pre><code>pip install -t lib google-endpoints --extra-index-url=https://gapi-pypi.appspot.com/admin/nurpc-dev --ignore-installed
  </code></pre>
  
  <p>My point is, I don't think I've not installed something, and I don't think I'm missing anything in my (web) app's lib directory.</p>