'How to Resolve this Error in Ubuntu ,OSError: [Errno 8] Exec format error:

Running this on Ubunutu(Vps)
Getting exec format error at this line :

process = subprocess.Popen(command_line,
                                       bufsize=1,
                                       stdout=subprocess.PIPE, 
                                       stderr=subprocess.STDOUT,
                                       encoding='utf-8',
                                       errors='ignore',
                                       universal_newlines=True)

Error :

/home/ubuntu/.local/lib/python3.8/site-packages/telegram/ext/filters.py:198: TelegramDeprecationWarning: Filters.group is deprecated. Use Filters.chat_type.groups instead.
  return self.filter(update.effective_message)
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/ubuntu/Fclone_Tg_Bot/telegram_gcloner/utils/fire_save_files.py", line 95, in run
    process = subprocess.Popen(command_line,
  File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/ubuntu/Fclone_Tg_Bot/fclone'
OSError: [Errno 8] Exec format error: '/home/ubuntu/Fclone_Tg_Bot/fclone'

How to resolve this error ,i am beginner at this so your help will be greatly appricated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source