[Devel] Problems following instructions on wiki page
Jeff Welling
jeff.w.bulk at gmail.com
Thu Feb 3 21:54:33 UTC 2011
Hey
I'm running into a problem following the instructions on this wiki page
https://openhatch.org/wiki/Getting_started_with_the_OpenHatch_code
This is the command that is failing and the output
$ ./bin/mysite syncdb --noinput
Traceback (most recent call last):
File "./bin/mysite", line 84, in <module>
djangorecipe.manage.main('mysite.settings')
File "/home/jeff/Projects/oh-mainline/eggs/djangorecipe-0.20-py2.6.egg/djangorecipe/manage.py", line 16, in main
management.execute_manager(mod)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/core/management/__init__.py", line 362, in execute_manager
utility.execute()
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/core/management/__init__.py", line 303, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/core/management/base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/core/management/base.py", line 213, in execute
translation.activate('en-us')
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/utils/translation/__init__.py", line 73, in activate
return real_activate(language)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/utils/translation/__init__.py", line 43, in delayed_loader
return g['real_%s' % caller](*args, **kwargs)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/utils/translation/trans_real.py", line 208, in activate
_active[currentThread()] = translation(language)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/utils/translation/trans_real.py", line 197, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/utils/translation/trans_real.py", line 180, in _fetch
app = import_module(appname)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/jeff/Projects/oh-mainline/eggs/django_haystack-1.1.0-py2.6.egg/haystack/__init__.py", line 83, in <module>
backend = load_backend(settings.HAYSTACK_SEARCH_ENGINE)
File "/home/jeff/Projects/oh-mainline/eggs/django_haystack-1.1.0-py2.6.egg/haystack/__init__.py", line 62, in load_backend
return importlib.import_module('%s_backend' % backend_name)
File "/home/jeff/Projects/oh-mainline/parts/mysite/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/jeff/Projects/oh-mainline/eggs/xapian_haystack-1.1.5beta-py2.6.egg/xapian_backend.py", line 28, in <module>
raise MissingDependency("The 'xapian' backend requires the installation of 'xapian'. Please refer to the documentation.")
haystack.exceptions.MissingDependency: The 'xapian' backend requires the installation of 'xapian'. Please refer to the documentation.
To resolve the situation:
$ sudo aptitude install python-xapian
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
python-xapian
0 packages upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 530kB of archives. After unpacking 1860kB will be used.
The following packages have unmet dependencies:
python-xapian: Depends: python (< 2.6) but 2.6.6-3+squeeze5 is installed.
The following actions will resolve these dependencies:
Remove the following packages:
python-imaging
python-lxml
Downgrade the following packages:
python [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
python-minimal [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
Score is 248
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Remove the following packages:
python-lxml
Downgrade the following packages:
python [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
python-imaging [1.1.7-2 (testing, unstable, now) -> 1.1.6-3 (stable)]
python-minimal [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
Score is 209
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Remove the following packages:
python-imaging
Downgrade the following packages:
python [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
python-lxml [2.2.8-2 (testing, unstable, now) -> 2.1.1-2.1 (stable)]
python-minimal [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
Score is 209
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Downgrade the following packages:
python [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
python-imaging [1.1.7-2 (testing, unstable, now) -> 1.1.6-3 (stable)]
python-lxml [2.2.8-2 (testing, unstable, now) -> 2.1.1-2.1 (stable)]
python-minimal [2.6.6-3+squeeze5 (testing, unstable, now) -> 2.5.2-3 (stable)]
Score is 170
Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:
Install the following packages:
libxapian22 [1.2.4-1 (unstable)]
python-xapian [1.2.4-1 (unstable)]
Upgrade the following packages:
libuuid1 [1.41.3-1 (stable, now) -> 2.17.2-7.1 (unstable)]
Score is -9915
Accept this solution? [Y/n/q/?] y
The following NEW packages will be installed:
libxapian22{a} python-xapian
The following packages will be upgraded:
libuuid1
The following packages are RECOMMENDED but will NOT be installed:
uuid-runtime
1 packages upgraded, 2 newly installed, 0 to remove and 6 not upgraded.
Need to get 2732kB of archives. After unpacking 6824kB will be used.
Do you want to continue? [Y/n/?] y
[ ... Installing packages ... ]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Current status: 6 updates [-1].
[jeff at CnD ~/Projects/oh-mainline (master)]$ ./bin/mysite syncdb --noinput
Syncing...
Creating table ghettoq_queue
Creating table ghettoq_message
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table registration_registrationprofile
Creating table django_authopenid_nonce
Creating table django_authopenid_association
Creating table django_authopenid_userassociation
Creating table south_migrationhistory
Creating table celery_taskmeta
Creating table celery_tasksetmeta
Creating table invitation_invitationkey
Creating table votes
Creating table reversion_revision
Creating table reversion_version
Installing index for ghettoq.Message model
Installing index for auth.Permission model
Installing index for auth.Message model
Installing index for admin.LogEntry model
Installing index for django_authopenid.UserAssociation model
Installing index for invitation.InvitationKey model
Installing index for voting.Vote model
Installing index for reversion.Revision model
Installing index for reversion.Version model
Synced:
> ghettoq
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sessions
> django.contrib.sites
> django.contrib.webdesign
> django.contrib.admin
> registration
> django_authopenid
> django_extensions
> south
> django_assets
> celery
> invitation
> haystack
> voting
> reversion
Not synced (use migrations):
- mysite.search
- mysite.profile
- mysite.customs
- mysite.account
- mysite.base
- mysite.project
- mysite.missions
(use ./manage.py migrate to migrate these)
[jeff at CnD ~/Projects/oh-mainline (master)]$
It would appear that an addition is needed in the README.mkd file in the "Installing on Debian Stable" on the 'sudo aptitude' line to add the 'python-xapian' package to the list. I suspect the same change is required "System Dependancies" section as well.
Thanks :)
Jeff
More information about the Devel
mailing list