Hi, 

Thanks Emile van Sebille for answering my last question.
I'm now testing my imported data and I get 21 errors (see attached). The 
majority sounds like:

    from wdmmgext.load import uganda
ImportError: No module named wdmmgext.load

I've searched the files that use this module. Attached is an example file.

I see 2 more errors;
1) that the file 'ukgov-finances-cra/cra_2009_db.csv' does not exist. 
2) SolrException: HTTP code=404, reason=Not Found
Maybe both are due to the wdmmgext.load error, so I'll ignore this for now and 
first try to find answer to my first question.

Thanks in advance for the help!

Ben

import json
import os
import pkg_resources
import wdmmg.model as model
from wdmmgext.load import uganda

class TestDepartments(object):

    @classmethod
    def setup_class(self):
        model.repo.delete_all()
        model.Session.remove()
        self.name = uganda.dataset_name
        filepath = 'wdmmg/tests/uganda_sample.xls'
        test_file = os.path.abspath(filepath)
        uganda.load_files(filename=test_file, commit_every=10)
        model.Session.commit()
        model.Session.remove()

    @classmethod
    def teardown_class(self):
        model.repo.delete_all()
        model.Session.commit()
        model.Session.remove()

    # check dataset exists
    def test_01_dataset(self):
        out = (model.Session.query(model.Dataset)
            .filter_by(name=self.name)
            ).first()
        assert out, out

    # Get our keys, and check values exist for them.
    def test_02_classification(self):
        for key_name in [u'from', u'time', u'uganda_id', u'gou_vote',
                u'vote_name', u'project_code', u'project_name', 
u'funded_by_donor',
                u'funded_by_govt', u'mtef_sector', u'mtef_reference', 
                u'swg', u'sector_objective', u'peap1_pillar', 
                u'peap2_objective', u'peap3_area']:
            key = 
model.Session.query(model.Key).filter_by(name=key_name).first()
            assert key, key_name
            count = (model.Session.query(model.ClassificationItem)
                .join(model.EnumerationValue)
                .filter_by(key=key)
                ).count()
            assert count, (key_name, count)

    # Check there are some entries and none of them are null
    def test_03_entry(self):
        dataset_ = (model.Session.query(model.Dataset)
            .filter_by(name=self.name)
            ).one()
        count = (model.Session.query(model.Entry)
            .filter_by(dataset_=dataset_)
            ).count()
        assert count, 'There are no Entries'
        assert not (model.Session.query(model.Entry)
            .filter_by(dataset_=dataset_)
            .filter_by(amount=None)
            ).first(), 'Some Entries have NULL amounts'
    
    # Look for a 'to' field on the first entry in the dataset.
    def test_04_entry_to(self):
        dataset_ = (model.Session.query(model.Dataset)
            .filter_by(name=self.name)
            ).one()
        txn = (model.Session.query(model.Entry)
            .filter_by(dataset_=dataset_)
            ).first()
        classif = txn.classification_as_dict()
        print classif['to']
        assert classif['to'] == 'uganda-society'
EEEEEEEEEE...EEEE.EEEEEE....E
======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_aggregate.TestAggregateController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_aggregate.py", 
line 8, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_api.TestApiController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_api.py", line 
10, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 'wdmmg.tests.functional.test_api.TestApiSearch'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_api.py", line 
123, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_dataset.TestDatasetController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_dataset.py", 
line 7, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_entry.TestEntryController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_entry.py", line 
8, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_enumeration_value.TestEnumerationValueController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File 
"/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_enumeration_value.py", 
line 8, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_home.TestHomeController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_home.py", line 
6, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_key.TestKeyController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_key.py", line 
7, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_rest.TestRestController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_rest.py", line 
7, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for <class 
'wdmmg.tests.functional.test_search.TestSearchController'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/functional/test_search.py", 
line 10, in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'wdmmg'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and 
{'myghty.data_dir': '/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 
'mako.directories': ['/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'], 
'myghty.component_root': [{'templates': 
'/Users/bteeuwen/Sites/wdmmg/wdmmg/templates'}], 'kid.encoding': 'utf-8', 
'kid.assume_encoding': 'utf-8', 'mako.module_directory': 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/templates', 'myghty.allow_globals': 
['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 
'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 
'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 
'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default 
template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path 
info altering = True
--------------------- >> end captured logging << ---------------------

======================================================================
ERROR: test suite for test_search.TestSearch
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/lib/test_search.py", line 13, 
in setup_class
    self.oursolr.delete_query('*:*')
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/solr/core.py",
 line 326, in wrapper
    return self._update(content, query)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/solr/core.py",
 line 550, in _update
    rsp = self._post(selector, request, self.xmlheaders)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/solr/core.py",
 line 639, in _post
    return check_response_status(self.conn.getresponse())
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/solr/core.py",
 line 1096, in check_response_status
    raise ex
SolrException: HTTP code=404, reason=Not Found

======================================================================
ERROR: test suite for <class 'wdmmg.tests.test_aggregator.TestAggregator'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_aggregator.py", line 12, 
in setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load

======================================================================
ERROR: test suite for <class 'wdmmg.tests.test_as_dict.TestAsDict'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 208, in run
    self.setUp()
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 291, in setUp
    self.setupContext(ancestor)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/suite.py",
 line 314, in setupContext
    try_run(context, names)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/util.py",
 line 478, in try_run
    return func()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_as_dict.py", line 7, in 
setup_class
    Fixtures.setup()
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/lib/cli.py", line 101, in setup
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load

======================================================================
ERROR: Failure: ImportError (No module named wdmmgext.load)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py",
 line 390, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_barnet.py", line 4, in 
<module>
    from wdmmgext.load import barnet
ImportError: No module named wdmmgext.load

======================================================================
ERROR: Failure: ImportError (No module named wdmmgext.load)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py",
 line 390, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_cofog.py", line 4, in 
<module>
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load

======================================================================
ERROR: Failure: ImportError (No module named wdmmgext.load)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py",
 line 390, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_cra.py", line 4, in 
<module>
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load

======================================================================
ERROR: Failure: ImportError (No module named wdmmgext.load)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py",
 line 390, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_cra_2010.py", line 4, in 
<module>
    from wdmmgext.load import cofog
ImportError: No module named wdmmgext.load

======================================================================
ERROR: Checks that the CRA datapkg is available and has all the files we expect 
it
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/case.py",
 line 187, in runTest
    self.test(*self.arg)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_cra_datapkg.py", line 15, 
in test_datapkg
    assert pkg.stream('cra_2009_db.csv')
  File "/Users/bteeuwen/Sites/wdmmg/src/datapkg/datapkg/package.py", line 121, 
in stream
    return self.dist.stream(*args, **kwargs)
  File "/Users/bteeuwen/Sites/wdmmg/src/datapkg/datapkg/distribution/base.py", 
line 26, in stream
    return open(full_path)
IOError: [Errno 2] No such file or directory: 
'/Users/bteeuwen/Sites/wdmmg/pylons_data/getdata/ukgov-finances-cra/cra_2009_db.csv'

======================================================================
ERROR: Failure: ImportError (No module named wdmmgext.load)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py",
 line 390, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_departments.py", line 5, 
in <module>
    from wdmmgext.load import departments
ImportError: No module named wdmmgext.load

======================================================================
ERROR: Failure: ImportError (No module named wdmmgext.load)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py",
 line 390, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_dfid.py", line 5, in 
<module>
    from wdmmgext.load import dfid
ImportError: No module named wdmmgext.load

======================================================================
ERROR: Failure: ImportError (No module named wdmmgext.load)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/loader.py",
 line 390, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/nose/importer.py",
 line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/bteeuwen/Sites/wdmmg/wdmmg/tests/test_uganda.py", line 5, in 
<module>
    from wdmmgext.load import uganda
ImportError: No module named wdmmgext.load

----------------------------------------------------------------------
Ran 16 tests in 0.954s

FAILED (errors=21)
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to