<p dir="ltr">Seems like you haven't installed biopython correctly. Your first error is "no module named Bio". 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, "Atteyet-Alla.Yassin" <<a href="mailto:Atteyet-Alla.Yassin@ukb.uni-bonn.de">Atteyet-Alla.Yassin@ukb.uni-bonn.de</a>> 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>
>>> from Bio import SeqIO<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
ImportError: No module named 'Bio'<br>
>>> with open("CP008802.out", "w") as output:<br>
... output.write("Seqname\tSource\tfeature\tStart\tEnd\tScore\tStrand\tFrame\tAttributes\n")<br>
... for record in SeqIO.parse("CP008802.txt", "genbank"):<br>
... print("Converting %s" % <a href="http://record.name" target="_blank">record.name</a>)<br>
... for f in record.features:<br>
... if f.type != "gene":<br>
... continue<br>
... locus_tag = f.qualifiers["locus_tag"][0]<br>
... if len(f.location.parts) > 1:<br>
... print("What should we do for %s (compound location)? %s" % (locus_tag, f.location))<br>
... continue<br>
... output.write('%s\tGenBank\t%s\t%i\t%i\t0,000000\t%s\t.\tlocus_tag\t"%s"; transcript_id "%s"\n'<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("Done")<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>