Calling python script from a Bash script
<p>I'm trying to call a python script from a bash script. I get import errors only if I try to run the .py from the bash script. If I run with python myscript.py everything is fine. This is my bash script: </p>

<pre><code>while true; do
  python script.py

  echo "Restarting...";
  sleep 3;
done
</code></pre>

<p>The error I get:</p>

<pre><code>Traceback (most recent call last):
  File "script.py", line 39, in &lt;module&gt;
    from pokemongo_bot import logger
  File "/Users/Paolo/Downloads/folder/t/__init__.py", line 4, in &lt;module&gt;
    import googlemaps
ImportError: No module named googlemaps
</code></pre>