CSSE1001 / MyPyTutor

Interactive tutorial application for Python3.
Other
7 stars 12 forks source link

Interpreter fails with FileNotFoundError on Windows #120

Closed sapi closed 9 years ago

sapi commented 9 years ago

Traceback:

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python34\lib\tkinter\__init__.py", line 1533, in __call__
    return self.func(*args)
  File "c:\Users\Starsnabove\Documents\mpt\tutorlib\gui\app\menu.py", line 179,
in <lambda>
    callback = (lambda n=cb_name: lambda evt=None: self.callback(n))()
  File "c:\Users\Starsnabove\Documents\mpt\tutorlib\gui\app\menu.py", line 210,
in callback
    return method()
  File "c:\Users\Starsnabove\Documents\mpt\tutorlib\gui\app\menu.py", line 331,
in menu_tools_interpreter
    self.delegate.show_interpreter()
  File "c:\Users\Starsnabove\Documents\mpt\tutorlib\gui\utils\decorators.py", li
ne 10, in method
    return f(self, *args, **kwargs)
  File "c:\Users\Starsnabove\Documents\mpt\tutorlib\gui\app\app.py", line 787, i
n show_interpreter
    self.interpreter.reload(self.editor.get_text())
  File "c:\Users\Starsnabove\Documents\mpt\tutorlib\interface\interpreter.py", l
ine 92, in reload
    self.subprocess = Popen(self.args)
  File "C:\Python34\lib\subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
sapi commented 9 years ago

My guess is that mkstemp works differently on Windows.

starsnabove commented 9 years ago

Step order was I loaded up the first problem, entered a print and went tools/show interpreter and I get the exception above in the command line

sapi commented 9 years ago

Sigh. Windows doesn't put python in $PATH

Edit: Sigh. Python also doesn't create /Scripts/idle3.exe on Windows...