Python Scripting Error

ZAMZAM Member Posts: 21 Maven
edited September 2019 in Help
I am getting the following error when I test my python scripting binaries and when I try and use the Execute Python block, any help would be appreciated.

  • Exception: java.nio.file.InvalidPathException
  • Message: Illegal char <"> at index 0: "C:\Program Files\Python37\python.exe"
  • Stack trace:
  • sun.nio.fs.WindowsPathParser.normalize(
  • sun.nio.fs.WindowsPathParser.parse(
  • sun.nio.fs.WindowsPathParser.parse(
  • sun.nio.fs.WindowsPath.parse(
  • sun.nio.fs.WindowsFileSystem.getPath(
  • java.nio.file.Paths.get(
  • com.rapidminer.extension.pythonscripting.operator.scripting.python.PythonSetupTester.quotePath(
  • com.rapidminer.extension.pythonscripting.operator.scripting.python.PythonSetupTester.getFullPathForPythonBinary(
  • com.rapidminer.extension.pythonscripting.PluginInitPythonScripting.getDefaultPythonBinary(
  • com.rapidminer.extension.pythonscripting.PluginInitPythonScripting$3.informParameterSaved(
  • com.rapidminer.extension.pythonscripting.operator.scripting.python.PythonSetupTester.saveList(
  • com.rapidminer.extension.pythonscripting.operator.scripting.python.PythonSetupTester.forceRefreshPythonBinaries(
  • com.rapidminer.extension.pythonscripting.operator.scripting.python.PythonSetupTester.listPythonBinaries(
  • com.rapidminer.extension.pythonscripting.operator.scripting.python.PythonSetupTester.refreshPythonBinariesCache(
  • com.rapidminer.extension.pythonscripting.parameter.PythonBinariesSuggestionProvider.runRefreshOperation(
  • com.rapidminer.extension.pythonscripting.parameter.AbstractEnvironmentSuggestionProvider$RefreshAction$
  • java.util.concurrent.ThreadPoolExecutor.runWorker(
  • java.util.concurrent.ThreadPoolExecutor$


Best Answer


  • hughesfleming68hughesfleming68 Member Posts: 323 Unicorn
    edited April 2019
    • Exception: java.nio.file.InvalidPathException. Hello Zam, does your Python installation pass the test in Settings-> Preferences-> Python scripting? This looks like a path problem. Most problems come from paths or not pointing to a correct Python environment.
  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 RM Founder
    In particular it looks like the path contains a quote symbol (") which seems to be the problem?  I would try without them...
  • ZAMZAM Member Posts: 21 Maven

    @IngoRM There is no (") in the path i double checked it, and tried Python 3.7, 3.6, 3.5.
    all of them not working for the Python Scripting Block
  • ZAMZAM Member Posts: 21 Maven
    @varunm1 i double checked the path name, there is no spaces in the name.
    However i created a new Environment in Anaconda Dedicated to RapidMiner with 3.5 Python and its working now.

Sign In or Register to comment.