<div dir="ltr"><div>Ah, /usr/lib/pyshared/ only has python 2.6 on our BL6 machine, whereas myself and the user who alerted me to it are using a local 2.7 installation so that&#39;s why it&#39;s not finding it.<br></div><div>
<br></div><div style>We&#39;re in the process of upgrading all the machines so I&#39;ll hold tight until that&#39;s done.</div><div style><br></div><div style>Thanks Tim!</div><div style>Dan</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 30 April 2013 14:03, Tim Booth <span dir="ltr">&lt;<a href="mailto:tbooth@ceh.ac.uk" target="_blank">tbooth@ceh.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Dan,<br>
<br>
/usr/share/pyshared should not be directly in PYTHONPATH, but the<br>
package manager is supposed to symlink and byte-compile all the modules<br>
into /usr/lib/pymodules/python2.7.  This is what I see on my system and<br>
so I can do this:<br>
<br>
===<br>
tbooth@balisaur[tbooth]python<br>
Python 2.7.3 (default, Aug  1 2012, 05:14:39)<br>
[GCC 4.6.3] on linux2<br>
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>
&gt;&gt;&gt; from Bio import SeqIO<br>
&gt;&gt;&gt; import sys<br>
&gt;&gt;&gt; print sys.path<br>
[&#39;&#39;, &#39;/usr/lib/python2.7&#39;, &#39;/usr/lib/python2.7/plat-linux2&#39;,<br>
&#39;/usr/lib/python2.7/lib-tk&#39;, &#39;/usr/lib/python2.7/lib-old&#39;,<br>
&#39;/usr/lib/python2.7/lib-dynload&#39;,<br>
&#39;/usr/local/lib/python2.7/dist-packages&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/PIL&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/gst-0.10&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/gtk-2.0&#39;,<br>
&#39;/usr/lib/pymodules/python2.7&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/ubuntu-sso-client&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/ubuntuone-client&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/ubuntuone-control-panel&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/ubuntuone-couch&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/ubuntuone-installer&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol&#39;,<br>
&#39;/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode&#39;]<br>
&gt;&gt;&gt;<br>
tbooth@balisaur[tbooth]locate SeqIO<br>
/usr/lib/pymodules/python2.7/Bio/SeqIO<br>
&lt;snip&gt;<br>
/usr/share/pyshared/Bio/SeqIO<br>
&lt;snip&gt;<br>
===<br>
<br>
So it seems you have some issue with the Python package or with the<br>
Biopython package.  What do you have in /usr/lib/pyshared/python2.7?  I<br>
have 26 symlinks to .so files and 35 assorted directories.  If you<br>
reinstall the packages does anything change, or do you get any useful<br>
error message?<br>
<br>
Cheers,<br>
<br>
TIM<br>
<div><div class="h5"><br>
<br>
<br>
On Tue, 2013-04-30 at 13:35 +0100, Daniel Pass wrote:<br>
&gt; Hi All/Tim<br>
&gt;<br>
&gt;<br>
&gt; Just been alerted by a user that biopython isn&#39;t on biolinux, although<br>
&gt; of course it actually is.<br>
&gt;<br>
&gt;<br>
&gt; I found that the default install is at /usr/share/pyshared/Bio/<br>
&gt; (via dpkg -L python-biopython) but this isn&#39;t in the default<br>
&gt; PYTHONPATH on either of our biolinux 6 or 7 machines hence the error.<br>
&gt;<br>
&gt;<br>
&gt; I assume that this is a biolinux wide issue? And is there any advice<br>
&gt; on adding the path for every user without manually exporting to<br>
&gt; everyone&#39;s .bashrc?<br>
&gt;<br>
&gt;<br>
&gt; Dan<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Daniel Pass<br>
&gt;<br>
&gt; Tel: (029208)76680<br>
&gt; Mob: 07735658687<br>
&gt; <a href="http://www.kille-morgan.org.uk" target="_blank">http://www.kille-morgan.org.uk</a><br>
&gt;<br>
&gt; Room 0.39,<br>
&gt; School of Biosciences,<br>
&gt; Biological Sciences Building,<br>
&gt; Museum Avenue,<br>
&gt; Cardiff,<br>
&gt; CF10 3AT<br>
&gt;<br>
<br>
</div></div>--<br>
Tim Booth &lt;<a href="mailto:tbooth@ceh.ac.uk">tbooth@ceh.ac.uk</a>&gt;<br>
NERC Environmental Bioinformatics Centre<br>
<br>
Centre for Ecology and Hydrology<br>
Maclean Bldg, Benson Lane<br>
Crowmarsh Gifford<br>
Wallingford, England<br>
OX10 8BB<br>
<br>
<a href="http://nebc.nerc.ac.uk" target="_blank">http://nebc.nerc.ac.uk</a><br>
<a href="tel:%2B44%201491%2069%202705" value="+441491692705">+44 1491 69 2705</a><br>
_______________________________________________<br>
Bio-Linux-dev mailing list<br>
<a href="mailto:Bio-Linux-dev@nebclists.nerc.ac.uk">Bio-Linux-dev@nebclists.nerc.ac.uk</a><br>
<a href="http://nebclists.nerc.ac.uk/mailman/listinfo/bio-linux-dev" target="_blank">http://nebclists.nerc.ac.uk/mailman/listinfo/bio-linux-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br><br><br>Daniel Pass<br><br>Tel: (029208)76680<br>Mob: 07735658687<div><a href="http://www.kille-morgan.org.uk" target="_blank">http://www.kille-morgan.org.uk</a><br>
<br>Room 0.39,<br>School of Biosciences,<br>Biological Sciences Building,<br>Museum Avenue,<br>Cardiff,<br>CF10 3AT<br></div>
</div>