Hi Divy: On Wed, Jan 27, 2010 at 6:13 PM, Divy Le Ray <[email protected]> wrote: > 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'
Ooops... my mistake while applying a patch, will fix this. > 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? You might want to either wait until I fix 0.11.1 or you can try out the newly released autotest branch 0.12.0. I have tested that version and you shouldn't have problems. I have branched 0.12.0 on purpose before the heavy work that was going to be done on the web interface so people can get autotest fairly up to date yet with easy installation. http://test.kernel.org/releases/0.12.0-prerelease/ > Is my issue with the latest released package an 'operator' issue with > an easy fix? Yes, like I've said, it was a last minute stupid mistake that I'll fix shortly. Give me a day to do it! But please try the prerelease to see if you can get it working! Cheers, Lucas _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
