title: Debianzing a Python program to get a .deb
body: <p><strong>Aim</strong></p>
  
  <p>To create an installable <code>.deb</code> file (or package). Which when clicked would install the software on a Linux machine and an icon would be put on the GNOME panel. So as to launch this application from there.</p>
  
  <p><strong>What I have referred to</strong></p>
  
  <p>I referred to two debianizing guides.</p>
  
  <p><a href="http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb&amp;fromSeriesID=37" rel="noreferrer">Guide 1</a></p>
  
  <p><a href="http://wiki.debian.org/IntroDebianPackaging#Introduction_to_Debian_Packaging" rel="noreferrer">Guide 2</a></p>
  
  <p>The first one had a video which was impossible to understand, partly because of the accent and partly because it was hopelessly outdated.(it was uploaded in 2007)</p>
  
  <p>And the second one was completely text. I got till the 4th Step, Builds the package. But when I did it I got output that did not match what was given in the guide.</p>
  
  <p><strong>What I require</strong></p>
  
  <p>I have a simple python program. It takes your age and then prints back out if the age is below, equal to, or above 18 years. There is just one file and no other dependency for this program. And I want to build this into a <code>.deb</code>.</p>
  
  <p><strong>Specs</strong></p>
  
  <p>-Python 2.7</p>
  
  <p>-Linux Mint</p>
  
  <h1>Edit</h1>
  
  <p>I followed the exact directory structure as you instructed as you. And replaced all <code>myscript</code> with <code>cowsandbulls</code>. The build completed and I got the Debian. When I installed it and then ran the command <code>cowsandbulls</code> from the terminal I got the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/bin/cowsandbulls", line 9, in &lt;module&gt;
      load_entry_point('cowsandbulls==1.0', 'gui_scripts', 'cowsandbulls')()
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2311, in load_entry_point
      return ep.load()
    File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2017, in load
      entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  ImportError: No module named cowsandbulls
  </code></pre>