title: Crontab with python and venv
body: <p>I got a basic cron job working
  <code>* * * * * echo &quot;something&quot; &gt; /Users/sam/Desktop/crontest.txt</code></p>
  <p>But now I'm trying to get my python script that uses venv to work and still cant get it after trying several of the answers here to previous questions.</p>
  <p>Main 2 I've tried, with syntax variations:</p>
  <ol>
  <li>Bash script of</li>
  </ol>
  <pre><code>#!/bin/bash    
  source /Users/sam/Desktop/python/venv/bin/activate
  python /Users/sam/Desktop/python/py_files/script.py
  </code></pre>
  <p>with crontab:
  <code>27 8 * * * bash /Users/sam/Desktop/python/venv_wrapper.sh</code></p>
  <ol start="2">
  <li>All in cron</li>
  </ol>
  <p><code>27 8 * * * /Users/sam/Desktop/python/venv/bin/python /Users/sam/Desktop/python/py_files/script.py</code></p>