close

[Solved] Visual Studio Code pylint: Unable to import ‘protorpc’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Visual Studio Code pylint: Unable to import ‘protorpc’ in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Visual Studio Code pylint: Unable to import ‘protorpc’ Error Occurs?

Today I get the following error Visual Studio Code pylint: Unable to import ‘protorpc’ in python.

How To Solve Visual Studio Code pylint: Unable to import ‘protorpc’ Error ?

  1. How To Solve Visual Studio Code pylint: Unable to import 'protorpc' Error ?

    To Solve Visual Studio Code pylint: Unable to import 'protorpc' Error Open the settings file of your Visual Studio Code (settings.json) and add the library path to the "python.autoComplete.extraPaths" list.

  2. Visual Studio Code pylint: Unable to import 'protorpc'

    To Solve Visual Studio Code pylint: Unable to import 'protorpc' Error Open the settings file of your Visual Studio Code (settings.json) and add the library path to the "python.autoComplete.extraPaths" list.

Solution 1

Open the settings file of your Visual Studio Code (settings.json) and add the library path to the "python.autoComplete.extraPaths" list.

"python.autoComplete.extraPaths": [
    "~/google-cloud-sdk/platform/google_appengine/lib/webapp2-2.5.2",
    "~/google-cloud-sdk/platform/google_appengine",
    "~/google-cloud-sdk/lib",
    "~/google-cloud-sdk/platform/google_appengine/lib/endpoints-1.0",
    "~/google-cloud-sdk/platform/google_appengine/lib/protorpc-1.0"
],

Solution 2

Changing the library path worked for me. Hitting Ctrl + Shift + P and typing python interpreter and choosing one of the available shown. One was familiar (as pointed to a virtualenv that was working fine earlier) and it worked. Take note of the version of python you are working with, either 2.7 or 3.x and choose accordingly

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read