<p dir="ltr">Seems like you haven&#39;t installed biopython correctly. Your first error is &quot;no module named Bio&quot;. This can be because biopython is not installed, or installed somewhere that your PYTHONPATH does not recognize. You would need to properly install biopython before you can continue. See detailed instructions here: <br>
<a href="http://biopython.org/DIST/docs/install/Installation.html">http://biopython.org/DIST/docs/install/Installation.html</a><br></p>
<p dir="ltr">Iddo Friedberg<br>
<a href="http://iddo-friedberg.net">http://iddo-friedberg.net</a><br>
Sent from a machine that promotes typos</p>
<div class="gmail_quote">On Jun 3, 2015 9:29 AM, &quot;Atteyet-Alla.Yassin&quot; &lt;<a href="mailto:Atteyet-Alla.Yassin@ukb.uni-bonn.de">Atteyet-Alla.Yassin@ukb.uni-bonn.de</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I hope that is now right. I obtained the following erreor<br>
<br>
&gt;&gt;&gt; from Bio import SeqIO<br>
Traceback (most recent call last):<br>
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
ImportError: No module named &#39;Bio&#39;<br>
&gt;&gt;&gt; with open(&quot;CP008802.out&quot;, &quot;w&quot;) as output:<br>
... output.write(&quot;Seqname\tSource\tfeature\tStart\tEnd\tScore\tStrand\tFrame\tAttributes\n&quot;)<br>
...     for record in SeqIO.parse(&quot;CP008802.txt&quot;, &quot;genbank&quot;):<br>
...         print(&quot;Converting %s&quot; % <a href="http://record.name" target="_blank">record.name</a>)<br>
...         for f in record.features:<br>
...             if f.type != &quot;gene&quot;:<br>
...                 continue<br>
...             locus_tag = f.qualifiers[&quot;locus_tag&quot;][0]<br>
...             if len(f.location.parts) &gt; 1:<br>
...                 print(&quot;What should we do for %s (compound location)? %s&quot; % (locus_tag, f.location))<br>
...                 continue<br>
... output.write(&#39;%s\tGenBank\t%s\t%i\t%i\t0,000000\t%s\t.\tlocus_tag\t&quot;%s&quot;; transcript_id &quot;%s&quot;\n&#39;<br>
...                          % (<a href="http://record.name" target="_blank">record.name</a>, f.type,<br>
...                             f.location.start + 1, f.location.end, f.location.strand,<br>
...                             locus_tag, locus_tag))<br>
... print(&quot;Done&quot;)<br>
<br>
_______________________________________________<br>
Biopython mailing list  -  <a href="mailto:Biopython@mailman.open-bio.org" target="_blank">Biopython@mailman.open-bio.org</a><br>
<a href="http://mailman.open-bio.org/mailman/listinfo/biopython" target="_blank">http://mailman.open-bio.org/mailman/listinfo/biopython</a><br>
</blockquote></div>