Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 337702 - Module loader conceals ImportErrors (python3)
Summary: Module loader conceals ImportErrors (python3)
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
Depends on:
Blocks: 335925
  Show dependency tree
Reported: 2010-09-16 20:58 UTC by Dennis Schridde
Modified: 2010-09-19 07:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2010-09-16 20:58:49 UTC
import does_not_exist

portdbapi.auxdbmodule = portage.cache.test.database

Actual result:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/", line 1295, in emerge_main
    settings, trees, mtimedb = load_emerge_config()
  File "/usr/lib64/portage/pym/_emerge/", line 2800, in load_emerge_config
    setconfig = load_default_config(settings, root_trees)
  File "/usr/lib64/portage/pym/portage/_sets/", line 245, in load_default_config
    return SetConfig(_getfiles(), settings, trees)
  File "/usr/lib64/portage/pym/portage/_sets/", line 46, in __init__
  File "/usr/lib64/python3.1/", line 287, in read
    for filename in filenames:
  File "/usr/lib64/portage/pym/portage/_sets/", line 237, in _getfiles
    dbapi = trees["porttree"].dbapi
  File "/usr/lib64/portage/pym/portage/util/", line 1254, in __getitem__
    result = lazy_item.func(*pargs, **kwargs)
  File "/usr/lib64/portage/pym/portage/dbapi/", line 1084, in __init__
    self.dbapi = portdbapi(mysettings=settings)
  File "/usr/lib64/portage/pym/portage/dbapi/", line 268, in __init__
    self.auxdbmodule = self.settings.load_best_module("portdbapi.auxdbmodule")
  File "/usr/lib64/portage/pym/portage/package/ebuild/", line 896, in load_best_module
RuntimeError: No active exception to reraise

Expected result:
Failed to load "portage.cache.test.database", ImportError: "No module named does_not_exist"

Reproducible: Always
Comment 2 Zac Medico gentoo-dev 2010-09-19 07:15:28 UTC
This is fixed in and 2.2_rc84.