Python Forum
Python Error in subprocess.py
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Error in subprocess.py
#1
Hello,

I got problem when running command using python. the command purpose is to restore db (RDS) in AWS.
Here are the problem:
Error:
File "/home/rdianton/.local/lib/python2.7/site-packages/python_terraform/__init__.py", line 179, in init return self.cmd('init', *args, **options) File "/home/rdianton/.local/lib/python2.7/site-packages/python_terraform/__init__.py", line 292, in cmd cwd=working_folder, env=environ_vars) File "/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory
I am new in this forum, please advice if this post is not in the right place.

Thanks in advance.
Reply
#2
'No such file or directory' from 'self.cmd('init', *args, **options)'
Probably 'init' is not a command from where it runs. Check execution environment, and tell us more (os, code, etc) if you are not successfull.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [subprocess] Simple way to handle error in Popen()? Winfried 1 1,174 Oct-14-2025, 09:22 AM
Last Post: snippsat
  Asyncio subprocess blocking with python workload only lloydbond 1 2,437 Dec-20-2024, 05:14 PM
Last Post: lloydbond
  Error when running mktorrent subprocess command pythonnewbie138 4 6,780 Sep-16-2020, 01:55 AM
Last Post: pythonnewbie138
  python loop in subprocess vinothkumargomu 6 6,036 Jul-06-2020, 12:02 PM
Last Post: vinothkumargomu
  Getting error from subprocess module swechsler 2 7,303 Sep-16-2019, 11:04 PM
Last Post: snippsat
  OS command via python subprocess module alinaveed786 21 18,263 Oct-23-2018, 05:40 AM
Last Post: alinaveed786
  subprocess error : The system cannot find the file specified evilcode1 0 12,278 Oct-03-2018, 08:04 AM
Last Post: evilcode1
  subprocess in thread python to check reachability anna 3 5,282 Sep-05-2018, 04:01 PM
Last Post: woooee
  Using Subprocess.Popen to start another python script running in background on Window johnb546 0 15,655 Jun-01-2018, 01:57 PM
Last Post: johnb546
  proc communicate not exiting on python subprocess timeout leoonardoo 0 4,833 Sep-13-2017, 09:54 AM
Last Post: leoonardoo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020