FAQ
Hi all,
I am using Biopython to fetch pumed Id's ,The module i use is (from Bio
import Entrez)

But i am getting this error
from Bio import Entrez
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: cannot import name Entrez


what should i do know can anybody suggest me an alternative for this
--
Beema Shafreen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080909/bc4e5258/attachment.htm>

Search Discussions

  • Skip at Sep 9, 2008 at 11:12 am
    from Bio import Entrez
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    ImportError: cannot import name Entrez

    Can you import Bio, e.g.:

    import Bio

    ? If not, check to see where it's installed and make sure the directory
    containing Bio (or Bio.py) is in sys.path, either by setting the PYTHONPATH
    environment variable before running Python or adding a Bio.pth file to a
    directory which is in sys.path so it can be found.

    http://docs.python.org/lib/module-site.html
    http://docs.python.org/tut/node8.html

    Skip
  • Sebastian Bassi at Sep 9, 2008 at 1:16 pm

    On 9/9/08, Beema Shafreen wrote:
    I am using Biopython to fetch pumed Id's ,The module i use is (from Bio
    import Entrez)
    But i am getting this error
    from Bio import Entrez
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    ImportError: cannot import name Entrez
    Looks like is bad installed. It works for me:

    /home/user/MMC-SD/Kingston/py252/bin> ./python2.5
    Python 2.5.2 (r252:60911, Jul 7 2008, 16:11:08)
    [GCC 3.3.5 (Debian 1:3.3.5-3)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    from Bio import Entrez
    dir(Entrez)
    ['File', '__builtins__', '__doc__', '__file__', '__name__',
    '__path__', '_open', 'efetch', 'egquery', 'einfo', 'elink', 'epost',
    'esearch', 'espell', 'esummary', 'os', 'query', 'read', 'time',
    'urllib']


    --
    Sebasti?n Bassi. Diplomado en Ciencia y Tecnolog?a.
    Vendo isla: http://www.genesdigitales.com/isla
    What's new in Python 3: http://tinyurl.com/5cd89r
    Curso Biologia molecular para programadores: http://tinyurl.com/2vv8w6
  • Gabriel Genellina at Sep 9, 2008 at 8:16 pm
    En Tue, 09 Sep 2008 05:53:19 -0300, Beema Shafreen
    <beema.shafreen at gmail.com> escribi?:
    Hi all,
    I am using Biopython to fetch pumed Id's ,The module i use is (from Bio
    import Entrez)

    But i am getting this error
    from Bio import Entrez
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    ImportError: cannot import name Entrez


    what should i do know can anybody suggest me an alternative for this
    Ensure that you don't have *another* Bio module that is being imported
    instead of the true one.

    --
    Gabriel Genellina

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedSep 9, '08 at 8:53a
activeSep 9, '08 at 8:16p
posts4
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase