Hello,

I'm experimenting with autotest and am running into issues while 
installing it.

I'm following http://autotest.kernel.org/wiki/AutotestServerInstall 
<http://autotest.kernel.org/wiki/AutotestServerInstall>,
on a fresh installed kubuntu 9.10 server (x86_64).

If I install the latest released package, build_expternal.py breaks:

autot...@xenserver2:/usr/local/autotest$
/usr/local/autotest/utils/build_externals.py
/usr/local/autotest/utils/build_externals.py:15: DeprecationWarning:
the sha module is deprecated; use the hashlib module instead
import compileall, logging, os, sha, shutil, sys, tempfile, time,
urllib2
Traceback (most recent call last):
File "/usr/local/autotest/utils/build_externals.py", line 691, in
<module>
  class SimplejsonPackage(ExternalPackage):
File "/usr/local/autotest/utils/build_externals.py", line 698, in
SimplejsonPackage
  _build_and_install =
ExternalPackage._build_and_install_from_package
AttributeError: type object 'ExternalPackage' has no attribute
'_build_and_install_from_package'

So I pulled from git
(autot...@xenserver2:/usr/local$ sudo git clone 
git://github.com/ehabkost/autotest.git 
<http://github.com/ehabkost/autotest.git>),
which seems to be a moving target:
earlier today, initialization of the databases would fail,
now after a git pull, I can wrap up the installation, but the web
server test fails with the following trace while accessing 
http://localhost/afe/server/rpc_doc <http://localhost/afe/server/rpc_doc>:

MOD_PYTHON ERROR

ProcessId:      19895
Interpreter:    'afe_interpreter'

ServerName:     '127.0.1.1'
DocumentRoot:   '/var/www'

URI:            '/afe/server/rpc_doc'
Location:       '/afe/server'
Directory:      None
Filename:
'/usr/local/autotest/frontend/client/www/autotest.AfeClient/server'
PathInfo:       '/rpc_doc'

Phase:          'PythonHandler'
Handler:        'django.core.handlers.modpython'

Traceback (most recent call last):

File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1537, in HandlerDispatch
  default=default_handler, arg=req, silent=hlist.silent)

File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1229, in _process_target
  result = _execute_target(config, req, object, arg)

File "/usr/lib/python2.6/dist-packages/mod_python/importer.py", line
1128, in _execute_target
  result = object(arg)

File "/usr/local/autotest/site-packages/django/core/handlers/modpython.py",
line 228, in handler
  return ModPythonHandler()(req)

File "/usr/local/autotest/site-packages/django/core/handlers/modpython.py",
line 201, in __call__
  response = self.get_response(request)

File "/usr/local/autotest/site-packages/django/core/handlers/base.py",
line 73, in get_response
  response = middleware_method(request)

File "/usr/local/autotest/site-packages/django/middleware/common.py",
line 56, in process_request
  if (not _is_valid_path(request.path_info) and

File "/usr/local/autotest/site-packages/django/middleware/common.py",
line 142, in _is_valid_path
  urlresolvers.resolve(path)

File "/usr/local/autotest/site-packages/django/core/urlresolvers.py",
line 303, in resolve
  return get_resolver(urlconf).resolve(path)

File "/usr/local/autotest/site-packages/django/core/urlresolvers.py",
line 218, in resolve
  sub_match = pattern.resolve(new_path)

File "/usr/local/autotest/site-packages/django/core/urlresolvers.py",
line 216, in resolve
  for pattern in self.url_patterns:

File "/usr/local/autotest/site-packages/django/core/urlresolvers.py",
line 245, in _get_url_patterns
  patterns = getattr(self.urlconf_module, "urlpatterns", 
self.urlconf_module)

File "/usr/local/autotest/site-packages/django/core/urlresolvers.py",
line 240, in _get_urlconf_module
  self._urlconf_module = import_module(self.urlconf_name)

File "/usr/local/autotest/site-packages/django/utils/importlib.py",
line 35, in import_module
  __import__(name)

File "/usr/local/autotest/frontend/afe/urls.py", line 4, in <module>
  from autotest_lib.frontend.afe import resources

File "/usr/local/autotest/frontend/afe/resources.py", line 2, in <module>
  from autotest_lib.frontend.shared import query_lib, resource_lib

ImportError: No module named shared


What is the recommended way to reliably install autotest?
Is my issue with the latest released package an 'operator' issue with
an easy fix?

cheers,
Divy
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to