title: Calling Python through ssh in Python script causes "Illegal instruction (core dumped)"
body: <p>I have a Python script <code>call.py</code> to log in to another machine through ssh and execute another Python script saved on this machine, something like this</p>
  <pre><code># call.py
  import os
  
  # log into user@host machine and execute python script
  os.system(&quot;sshpass -p password ssh user@host '( python3 my_script.py )'&quot;)
  
  </code></pre>
  <p>but when I try to run it I get this error</p>
  <pre><code>Illegal instruction     (core dumped)  ( python3 my_script.py )
  </code></pre>
  <p>I tried a few things:</p>
  <ul>
  <li>If I log into ssh and launch <code>python3 my_script.py</code> through the terminal it works</li>
  <li>I also tried running the same <code>call.py</code> script without the ssh part, so trying to launch <code>my_script.py</code> on the same machine and it works</li>
  </ul>
  <p>It seems that only the combination of ssh + python inside python that gives me this error. Any pointers on what could cause the error will be very much appreciated.</p>
  <p><strong>Edit:</strong> I didn't realize it would play a role, but I'm adding now the important detail that the target machine is an Nvidia Jetson board.</p>