You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
I then tried moving my python file to the home directory, but then the following error was thrown:
Error log
System (please complete the following information):
The text was updated successfully, but these errors were encountered: