IntelliJ Idea 2020.2 The system cannot find the path specified error on debugging

While debugging a python script I am getting this error in IntelliJ Idea Community 2020.2 version.

 

My test code is per below :

from pyspark.sql import SparkSession

spark = SparkSession \
.builder \
.master("local") \
.appName("POC") \
.getOrCreate()

sc = spark.sparkContext

spark.stop()

The Console Log is per below:

..\AppData\Roaming\JetBrains\IdeaIC2020.2\plugins\python-ce\helpers\pydev\pydevd.py --multiproc --qt-support=auto --client 127.0.0.1 --port 49882 --file D:/POC/Main.py

Connected to pydev debugger (build 202.6397.94)

The system cannot find the path specified.

Please let me know about this error.

0
2 comments

Does it happen only when you debug?
Is D:/ a local drive?

0
Avatar
Permanently deleted user

Sergey Karpov - Yes, D is a local drive. I fixed the problem. It turned out that my JAVA_HOME environment variable was pointing to jre folder instead of the latest jdk folder. Also I uninstalled and installed pyspark. Now this error isnt coming. But it'll be helpful if the error message says which file is missing. As it was very tough to point to why the error was happening.

0

Please sign in to leave a comment.