Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied error #1

Open
iamprayush opened this issue Nov 2, 2020 · 0 comments
Open

Permission denied error #1

iamprayush opened this issue Nov 2, 2020 · 0 comments

Comments

@iamprayush
Copy link

Describe the bug
My python file is in a folder in Desktop and running cf-run 1426 B ./pytest.py on it gives a permission denied error.

Error log
$ cf-run 1426 B ./pytest.py 
B. Symmetric Matrix
time limit per test: 1 second
memory limit per test: 256 megabytes

Traceback (most recent call last):
  File "/home/prayush/.local/bin/cf-run", line 8, in <module>
    sys.exit(main())
  File "/home/prayush/.local/lib/python3.8/site-packages/codeforces/cf_run.py", line 64, in main
    proc = subprocess.run(
  File "/usr/lib/python3.8/subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './pytest.py'

I then tried moving my python file to the home directory, but then the following error was thrown:

Error log
$ cf-run 1426 B ./pytest.py 
B. Symmetric Matrix
time limit per test: 1 second
memory limit per test: 256 megabytes

Traceback (most recent call last):
  File "/home/prayush/.local/bin/cf-run", line 8, in <module>
    sys.exit(main())
  File "/home/prayush/.local/lib/python3.8/site-packages/codeforces/cf_run.py", line 64, in main
    proc = subprocess.run(
  File "/usr/lib/python3.8/subprocess.py", line 489, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: './pytest.py'

System (please complete the following information):

  • OS: Ubuntu 20.04.1 LTS
  • python-codeforces version 0.2.7
  • python version 3.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant