title: Python NCBIWWW (Hanging Load)
body: <p>Good Evening StackOverflow Pham, </p>
  
  <p>I'm attempting to use Biopython's functionality for NCBIWWW to find quick &lt;750 protein-peptide alignments. The problem I'm bumping into seems to be a hanging load when launching my program. See my code below: </p>
  
  <pre><code>import Bio
  from Bio import Seq
  from Bio.Blast import NCBIWWW
  import tkinter as tk
  from tkinter import filedialog
  
  # Use filedialog to locate txt file for query
  protein_file = filedialog.askopenfilename()
  print(protein_file)
  
  # Parse the txt file, opening and read to VERIFY grab
  protein_file = open(protein_file)
  protein_read = protein_file.read()
  print(protein_read)
  
  # Take query and run to determine homologous alignments of like proteins
  result_handle = NCBIWWW.qblast("blastp", "nt", protein_read)
  result_handle = result_handle.open('r')
  print(result_handle)
  </code></pre>
  
  <p>Once I run the program (Ctrl + Shift + F10), the first time <strong>IT WORKED!</strong> But now, it just hangs for hours. To solve this, I begun reading through the Biopython Cookbook to find out why my code wasn't working. Here is what I tried. </p>
  
  <ol>
  <li>Verify Syntax</li>
  <li>Rewrite Code</li>
  </ol>
  
  <p>I've attached a screenshot to hopefully provide further context... but I'm genuinely lost. </p>
  
  <p><a href="https://i.stack.imgur.com/Z1kxR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z1kxR.jpg" alt="Screenshot of my Pycharm on infinite HANG"></a></p>
  
  <p>Any suggestions? </p>
  
  <p>Thank you SO Team! </p>
  
  <p>~ D </p>