Error while calling a subprocess and execute another script from one py file

sandeep.bayi6 at gmail.com sandeep.bayi6 at gmail.com
Mon Dec 31 01:33:00 EST 2018


Hi all,

==========================================================================
Error code :
--------------------------------------------------------------------------

Traceback (most recent call last):
  File "E:\ocius_tjb\run.py", line 163, in <module>
    subprocess.check_call(['C:/Python34/python.exe', logxml_parser, '-i', arg1, '-o', arg2], cwd=cur_work_dir)
  File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 286, in check_call
    retcode = call(*popenargs, **kwargs)
  File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 971, in _execute_child
    args = list2cmdline(args)
  File "C:\Users\sandeep\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 461, in list2cmdline
    needquote = (" " in arg) or ("\t" in arg) or not arg
TypeError: argument of type 'module' is not iterable

--------------------------------------------------------------------------

> I'm currently facing this error while execute another py_script from one script.
> and i need to execute the program from python 3.6.6 and in  subprocess from python 3.4.1

Can i get a solution for this problem im facing?



More information about the Python-list mailing list