This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ihooks chokes on BioPython package
Type: Stage:
Components: Library (Lib) Versions: Python 2.3
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, waterloo
Priority: normal Keywords:

Created on 2004-05-10 14:29 by waterloo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg60485 - (view) Author: mpalmer (waterloo) Date: 2004-05-10 14:29
I'm trying to use the BioPython package
(www.biopython.org) with Webware. Webware uses ihooks.
Ihooks chokes on importing Bio:

>>>import  ihooks
>>>ihooks.install()
>>>import  Bio

gives an error.  Here is the traceback:


Traceback (most recent call last):
  File "weg.py", line 5, in ?
    from Bio import GenBank
  File "C:\PYTHON23\lib\ihooks.py", line 398, in
import_module
    q, tail = self.find_head_package(parent, str(name))
  File "C:\PYTHON23\lib\ihooks.py", line 434, in
find_head_package
    q = self.import_it(head, qname, parent)
  File "C:\PYTHON23\lib\ihooks.py", line 489, in import_it
    m = self.loader.load_module(fqname, stuff)
  File "C:\PYTHON23\lib\ihooks.py", line 274, in
load_module
    m = self.hooks.load_package(name, filename, file)
  File "C:\PYTHON23\lib\ihooks.py", line 174, in
load_package
    return imp.load_module(name, file, filename, ("",
"", PKG_DIRECTORY))
  File "C:\PYTHON23\Lib\site-packages\Bio\__init__.py",
line 106, in ?
    _load_registries()
  File "C:\PYTHON23\Lib\site-packages\Bio\__init__.py",
line 83, in _load_registries
    config_imports = __import__("Bio.config", {}, {},
["Bio"])
  File "C:\PYTHON23\lib\ihooks.py", line 403, in
import_module
    self.ensure_fromlist(m, fromlist)
  File "C:\PYTHON23\lib\ihooks.py", line 470, in
ensure_fromlist
    raise ImportError, "No module named " + subname
ImportError: No module named Bio.config.Bio

After

>>>ihooks.uninstall()

the import works.
msg61337 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-20 19:16
The bug is probably outdated. Please open a new issue if the code fails
under Python 2.5
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40241
2008-01-20 19:16:21christian.heimessetstatus: open -> closed
resolution: out of date
messages: + msg61337
nosy: + christian.heimes
2004-05-10 14:29:13waterloocreate