Fix PyCharm Error running: data.userName must not be null – PyCharm Tutorial

By | June 8, 2021

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:

Fix PyCharm Error running data.userName must not be null

How to fix this running error?

There are some steps:

step 1: Open File Settings

pycharm file settings

step 2: Check Project Interpreter

pycharm 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.

pycharm project interpreter package list

step 3: Add python interpreter

You can click Add to start to add python interpreter.

pycharm add project interpreter

step 4: Add SSH Interpreter

We will use a remote python interpreter, ssh will be set.

pycharm add interpreter

However, you also can use other way to set python, such as conda or virtualenv.

Leave a Reply

Your email address will not be published. Required fields are marked *