Skip to content

Instantly share code, notes, and snippets.

@morenopc
Created March 24, 2014 20:10
Show Gist options
  • Save morenopc/9748048 to your computer and use it in GitHub Desktop.
Save morenopc/9748048 to your computer and use it in GitHub Desktop.
OSError: [Errno 13] Permission denied
In [19]: subprocess.call(["/tmp"])
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (20, 0))
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/vagrant/sherpany/onlinebr/venv/local/lib/python2.7/site-packages/django/core/management/commands/shell.pyc in <module>()
----> 1 subprocess.call(["/tmp"])
/usr/lib/python2.7/subprocess.pyc in call(*popenargs, **kwargs)
491 retcode = call(["ls", "-l"])
492 """
--> 493 return Popen(*popenargs, **kwargs).wait()
494
495
/usr/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
677 p2cread, p2cwrite,
678 c2pread, c2pwrite,
--> 679 errread, errwrite)
680
681 if mswindows:
/usr/lib/python2.7/subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
1247 if fd is not None:
1248 os.close(fd)
-> 1249 raise child_exception
1250
1251
OSError: [Errno 13] Permission denied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment