Greetings,
I ran into the following issue when trying to use some of the kaa
modules under a Django app.
kaa.base 0.99.2dev_r4641_20111116
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 438, in execute_manager
utility.execute()
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/core/management/base.py",
line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/core/management/base.py",
line 220, in execute
output = self.handle(*args, **options)
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/gunicorn/management/commands/run_gunicorn.py",
line 76, in handle
self.validate(display_num_errors=True)
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/core/management/base.py",
line 249, in validate
num_errors = get_validation_errors(s, app)
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/core/management/validation.py",
line 35, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/db/models/loading.py",
line 146, in get_app_errors
self._populate()
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/db/models/loading.py",
line 61, in _populate
self.load_app(app_name, True)
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/db/models/loading.py",
line 83, in load_app
if not module_has_submodule(app_module, 'models'):
File
"/home/mik/.virtualenvs/up2tube/local/lib/python2.7/site-packages/django/utils/module_loading.py",
line 16, in module_has_submodule
if finder.find_module(name):
TypeError: find_module() takes exactly 3 arguments (2 given)
I don't know if the issue lies on Django's side or with the kaa.base
module, but I fixed it by allowing 'path' to be an optional argument
for kaa.base.KaaFinder's find_module method.
def find_module(self, name, path):
It looks like the 'path' argument should be optional according to PEP302 too:
"A finder object has a single method: finder.find_module(fullname,
path=None)"
Regards,
Mikael Norgren
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel