Error running 'run': data.userName must not be null

Problem Scenario:
falsk project configuration is connected python interpreter on a remote machine, run after the normal start; later the project due after other causes close, set aside a period of time is not running;
then later the boss lets start this project, I rely on, what the hell and found the lower right corner Event log pycharm in the log is "Error running 'run': data.userName must not be null" ( probably means: data.username can not be empty), the interpreter normal checks on the remote machine, then Baidu found that no one has written such a mistake, there is no way, the fact that I hold the attitude to reconfigure remote interpreter, and then start on the success!

On pycharm specific reconfigure python interpreter I have said in here and then outline quickly:

Path: File -> Setting ... -> Project: your project name -> Project Interpreter

After completion of the above guidelines path into the interpreter configuration page, then:
1, click on the red circle of the Settings button, select Add ...

2. Select SSH Interpreter, fill in the remote host ip, port, and user name, click on the next connect, enter the password Unicom, click next

3, configure the remote host interpreter, click Finish

4, to fall back to Project Interpreter interface, you can see various interpreter on the remote installation package

5, configure the mapping project, the local project is to upload to a remote machine, both synchronous

Run the program, success!

Guess you like

Origin www.cnblogs.com/We612/p/11139599.html