When you have used remote deployment using pycharm, you may get this error: Error running: data.userName must not be null. In this tutorial, we will introduce how to fix this error.
Error running looks like below:
How to fix this running error?
There are some steps:
step 1: Open File Settings
step 2: Check Project Interpreter
This step is important, it determines what python version is used in your project.
If there no python interpreter, you have to add one. If you have set a correct python interpreter, you will see all packages installed as follows.
step 3: Add python interpreter
You can click Add to start to add python interpreter.
step 4: Add SSH Interpreter
We will use a remote python interpreter, ssh will be set.
However, you also can use other way to set python, such as conda or virtualenv.