Modify

#11325 closed defect (duplicate)

AttributeError in installation

Reported by: kubes@… Owned by: seccanj
Priority: normal Component: TagsPlugin
Severity: normal Keywords: install
Cc: Trac Release: 1.0

Description (last modified by rjollos)

I have followed the installation steps:
install TracGenericClassPlugin - OK
install TracGenericWorkflowPlugin - OK

C:\Python27\Scripts>trac-admin e:\trac\mew upgrade
The upgrade failed. Please fix the issue and try again.
AttributeError:


There are no details about AttributeError.

In log, I have found:
2013-09-18 10:03:16,256 Trac[init] DEBUG: SELECT value FROM system WHERE name='visitcounter_version'
2013-09-18 10:03:16,273 Trac[model] DEBUG: System key 'resourceworkflowstate_version' not found
2013-09-18 10:03:16,273 Trac[model] DEBUG: Returning system key 'resourceworkflowstate_version' with value None
2013-09-18 10:03:16,273 Trac[model] DEBUG: Database backend is 'sqlite:db/trac.db'
2013-09-18 10:03:16,273 Trac[model] DEBUG: Current database version for class 'resourceworkflowstate' is -1
2013-09-18 10:03:16,273 Trac[model] INFO: Need to create db tables for class 'resourceworkflowstate'.
2013-09-18 10:03:16,273 Trac[env] WARNING: Component <tracgenericworkflow.model.GenericWorkflowModelProvider object at 0x02476D30> requires environment upgrade
2013-09-18 10:03:16,273 Trac[init] DEBUG: SELECT value FROM system WHERE name='visitcounter_version'
2013-09-18 10:03:16,273 Trac[model] DEBUG: System key 'resourceworkflowstate_version' not found
2013-09-18 10:03:16,273 Trac[model] DEBUG: Returning system key 'resourceworkflowstate_version' with value None
2013-09-18 10:03:16,273 Trac[model] DEBUG: Database backend is 'sqlite:db/trac.db'
2013-09-18 10:03:16,273 Trac[model] DEBUG: Current database version for class 'resourceworkflowstate' is -1
2013-09-18 10:03:16,273 Trac[model] INFO: Need to create db tables for class 'resourceworkflowstate'.
2013-09-18 10:03:16,273 Trac[env] WARNING: Component <tracgenericworkflow.model.GenericWorkflowModelProvider object at 0x02476D30> requires environment upgrade
2013-09-18 10:03:16,273 Trac[init] DEBUG: SELECT value FROM system WHERE name='visitcounter_version'
2013-09-18 10:03:16,273 Trac[model] DEBUG: System key 'resourceworkflowstate_version' not found
2013-09-18 10:03:16,273 Trac[model] DEBUG: Returning system key 'resourceworkflowstate_version' with value None
2013-09-18 10:03:16,273 Trac[model] DEBUG: Database backend is 'sqlite:db/trac.db'
2013-09-18 10:03:16,273 Trac[model] DEBUG: Current database version for class 'resourceworkflowstate' is -1
2013-09-18 10:03:16,273 Trac[model] INFO: Need to create db tables for class 'resourceworkflowstate'.
2013-09-18 10:03:16,273 Trac[model] ERROR: DatabaseError: no such table: wiki_namespace
2013-09-18 10:03:16,381 Trac[console] ERROR: Exception in trac-admin command: 
Traceback (most recent call last):
  File "c:\docume~1\kubest~1.e-b\locals~1\temp\easy_install-i25xod\Trac-1.0-py2.7-win32.egg.tmp\trac\admin\console.py", line 108, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "C:\Python27\lib\cmd.py", line 218, in onecmd
    return self.default(line)
  File "c:\docume~1\kubest~1.e-b\locals~1\temp\easy_install-i25xod\Trac-1.0-py2.7-win32.egg.tmp\trac\admin\console.py", line 284, in default
    return cmd_mgr.execute_command(*args)
  File "c:\docume~1\kubest~1.e-b\locals~1\temp\easy_install-i25xod\Trac-1.0-py2.7-win32.egg.tmp\trac\admin\api.py", line 124, in execute_command
    return f(*fargs)
  File "c:\docume~1\kubest~1.e-b\locals~1\temp\easy_install-i25xod\Trac-1.0-py2.7-win32.egg.tmp\trac\env.py", line 970, in _do_upgrade
    self.env.upgrade(backup=no_backup is None)
  File "c:\docume~1\kubest~1.e-b\locals~1\temp\easy_install-i25xod\Trac-1.0-py2.7-win32.egg.tmp\trac\env.py", line 686, in upgrade
    if participant.environment_needs_upgrade(db):
  File "build\bdist.win32\egg\tractags\model.py", line 23, in environment_needs_upgrade
    if self._need_migration(db):
  File "build\bdist.win32\egg\tractags\model.py", line 47, in _need_migration
    db.rollback()
  File "c:\docume~1\kubest~1.e-b\locals~1\temp\easy_install-i25xod\Trac-1.0-py2.7-win32.egg.tmp\trac\db\util.py", line 107, in __getattr__
    raise AttributeError
AttributeError: 

My Trac information is:

System Information
Package	Version
Trac 	1.0
Babel 	1.3
Genshi 	0.7 (without speedups)
Pygments 	1.6
pysqlite 	2.6.0
Python 	2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
pytz 	2013d
RPC 	1.1.2
setuptools 	1.1.5
SQLite 	3.6.21
Subversion 	1.8.3 (r1516576)
jQuery	1.7.2
Installed Plugins
Name	Version	Location
backlinksmacro 	7.0dev 	e:\trac\mew\plugins\backlinksmacro-7.0dev-py2.7.egg
tracaccountmanager 	0.4.3 	c:\python27\lib\site-packages\tracaccountmanager-0.4.3-py2.7.egg
tracgenericclass 	1.1.5 	e:\trac\mew\plugins\tracgenericclass-1.1.5-py2.7.egg
trachttpauth 	1.1 	e:\trac\mew\plugins\trachttpauth-1.1-py2.7.egg
tractags 	0.6 	e:\trac\mew\plugins\tractags-0.6-py2.7.egg
tracwysiwyg 	0.12.0.5 	e:\trac\mew\plugins\tracwysiwyg-0.12.0.5-py2.7.egg
tracxmlrpc 	1.1.2 	e:\trac\mew\plugins\tracxmlrpc-1.1.2-py2.7.egg
visitcounter 	0.2 	e:\trac\mew\plugins\visitcounter-0.2-py2.7.egg
Configuration
Section 	Name 	Value
account-manager 	account_changes_notify_addresses 	
allow_delete_account 	True
authentication_url 	
cookie_refresh_pct 	10
db_htdigest_realm 	
db_htpasswd_hash_type 	crypt
environ_auth_overwrite 	True
force_passwd_change 	True
generated_password_length 	8
hash_method 	HtPasswdHashMethod
htdigest_file 	
htdigest_realm 	
htpasswd_file 	
htpasswd_hash_type 	crypt
login_opt_list 	
notify_actions 	
password_file 	.\..\..\svn-repository\passwd
password_format 	
password_store 	SvnServePasswordStore
persistent_sessions 	
refresh_passwd 	
register_check 	BasicCheck, EmailCheck, BotTrapCheck, RegExpCheck, UsernamePermCheck
reset_password 	True
username_char_blacklist 	:[]
verify_email 	True
attachment 	max_size 	462144
max_zip_size 	2097152
render_unsafe_content 	false
browser 	color_scale 	True
downloadable_paths 	/trunk, /branches/*, /tags/*
hide_properties 	svk:merge
intermediate_color 	
intermediate_point 	
newest_color 	(255, 136, 136)
oldest_color 	(136, 136, 255)
oneliner_properties 	trac:summary
render_unsafe_content 	true
wiki_properties 	trac:description
changeset 	max_diff_bytes 	10000000
max_diff_files 	0
wiki_format_messages 	true
components 	acct_mgr.admin.* 	enabled
acct_mgr.admin.accountmanageradminpage 	enabled
acct_mgr.api.* 	enabled
acct_mgr.api.accountmanager 	enabled
acct_mgr.db.* 	enabled
acct_mgr.db.sessionstore 	enabled
acct_mgr.htfile.* 	enabled
acct_mgr.htfile.htdigeststore 	enabled
acct_mgr.htfile.htpasswdstore 	enabled
acct_mgr.http.* 	enabled
acct_mgr.notification.* 	enabled
acct_mgr.pwhash.* 	enabled
acct_mgr.pwhash.htdigesthashmethod 	enabled
acct_mgr.svnserve.* 	enabled
acct_mgr.web_ui.* 	enabled
acct_mgr.web_ui.accountmodule 	enabled
acct_mgr.web_ui.loginmodule 	enabled
acct_mgr.web_ui.registrationmodule 	disabled
graphviz.* 	enabled
httpauth.* 	enabled
mergeinfoenhancer.enhancer.mergeinfoenhancer 	enabled
mergeinfoenhancer.enhancer.mergeinfoenhancermodule 	enabled
revtree.* 	enabled
revtree.optimizer.defaultrevtreeoptimizer 	enabled
trac.web.auth.loginmodule 	disabled
tracopt.versioncontrol.svn.* 	enabled
tracopt.versioncontrol.svn.svn_fs.subversionconnector 	enabled
tracopt.versioncontrol.svn.svn_prop.subversionmergepropertydiffrenderer 	enabled
tracopt.versioncontrol.svn.svn_prop.subversionmergepropertyrenderer 	enabled
tracopt.versioncontrol.svn.svn_prop.subversionpropertyrenderer 	enabled
tracrpc.* 	enabled
tractags.api.tagsystem 	enabled
tractags.macros.listtaggedmacro 	enabled
tractags.macros.tagcloudmacro 	enabled
tractags.ticket.tickettagprovider 	enabled
tractags.web_ui.tagrequesthandler 	enabled
tractags.web_ui.tagtemplateprovider 	enabled
tractags.wiki.tagwikisyntaxprovider 	enabled
tractags.wiki.wikitaginterface 	enabled
tractags.wiki.wikitagprovider 	enabled
tracvote.* 	enabled
tracwysiwyg.* 	enabled
tracwysiwyg.wysiwygmodule 	enabled
visitcounter.core.* 	enabled
visitcounter.init.* 	enabled
header_logo 	alt 	(please configure the [header_logo] section in trac.ini)
height 	-1
link 	/mew
src 	site/BTL_LogoMedicalTechnologies.png
width 	-1
httpauth 	formats 	
paths 	/xmlrpc, /login/xmlrpc
inherit 	htdocs_dir 	
plugins_dir 	
templates_dir 	
logging 	log_file 	trac.log
log_format 	
log_level 	DEBUG
log_type 	file
milestone 	stats_provider 	DefaultTicketGroupStatsProvider
mimeviewer 	enscript_modes 	text/x-dylan:dylan:4
enscript_path 	enscript
max_preview_size 	262144
mime_map 	text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb
mime_map_patterns 	text/plain:README|INSTALL|COPYING.*
php_path 	php
pygments_default_style 	trac
pygments_modes 	
tab_width 	8
treat_as_binary 	application/octet-stream, application/pdf, application/postscript, application/msword,application/rtf,
notification 	admit_domains 	
always_notify_owner 	false
always_notify_reporter 	false
always_notify_updater 	true
ambiguous_char_width 	single
batch_subject_template 	$prefix Batch modify: $tickets_descr
email_sender 	SmtpEmailSender
ignore_domains 	
mime_encoding 	base64
sendmail_path 	sendmail
smtp_always_bcc 	
smtp_always_cc 	
smtp_default_domain 	
smtp_enabled 	false
smtp_from 	trac@localhost
smtp_from_author 	false
smtp_from_name 	
smtp_password 	
smtp_port 	25
smtp_replyto 	trac@localhost
smtp_server 	localhost
smtp_subject_prefix 	__default__
smtp_user 	
ticket_subject_template 	$prefix #$ticket.id: $summary
use_public_cc 	false
use_short_addr 	false
use_tls 	false
project 	admin 	
admin_trac_url 	.
descr 	BTL Wikipedia
footer 	BTL WIKI
icon 	common/trac.ico
name 	MEW
url 	http://svnworks/
query 	default_anonymous_query 	status!=closed&cc~=$USER
default_query 	status!=closed&owner=$USER
items_per_page 	100
ticketlink_query 	?status=!closed
report 	items_per_page 	100
items_per_page_rss 	0
revisionlog 	default_log_limit 	100
graph_colors 	#cc0#0c0#0cc#00c#c0c#c00
revtree 	contexts 	changeset, browser
roadmap 	stats_provider 	DefaultTicketGroupStatsProvider
search 	default_disabled_filters 	
min_query_length 	3
sqlite 	extensions 	
svn 	branches 	trunk,branches/*
tags 	tags/*
tags 	ignore_closed_tickets 	True
ticket_fields 	keywords
ticket 	default_cc 	
default_component 	
default_description 	
default_keywords 	
default_milestone 	
default_owner 	
default_priority 	major
default_resolution 	fixed
default_severity 	
default_summary 	
default_type 	defect
default_version 	
max_comment_size 	262144
max_description_size 	262144
preserve_newlines 	default
restrict_owner 	false
workflow 	ConfigurableTicketWorkflow
ticket-workflow 	accept 	new,assigned,accepted,reopened -> accepted
accept.operations 	set_owner_to_self
accept.permissions 	TICKET_MODIFY
leave 	* -> *
leave.default 	1
leave.operations 	leave_status
reassign 	new,assigned,accepted,reopened -> assigned
reassign.operations 	set_owner
reassign.permissions 	TICKET_MODIFY
reopen 	closed -> reopened
reopen.operations 	del_resolution
reopen.permissions 	TICKET_CREATE
resolve 	new,assigned,accepted,reopened -> closed
resolve.operations 	set_resolution
resolve.permissions 	TICKET_MODIFY
timeline 	abbreviated_messages 	true
changeset_collapse_events 	false
changeset_long_messages 	false
changeset_show_files 	0
default_daysback 	30
max_daysback 	90
newticket_formatter 	oneliner
ticket_show_details 	false
trac 	auth_cookie_lifetime 	
auth_cookie_path 	
authz_file 	
authz_module_name 	
auto_preview_timeout 	2.0
auto_reload 	False
backup_dir 	db
base_url 	http://svnworks/mew/
check_auth_ip 	true
database 	sqlite:db/trac.db
debug_sql 	
default_charset 	iso-8859-15
default_date_format 	
default_dateinfo_format 	relative
default_handler 	WikiModule
default_language 	
default_timezone 	
genshi_cache_size 	128
htdocs_location 	
ignore_auth_case 	false
jquery_location 	
jquery_ui_location 	
jquery_ui_theme_location 	
mainnav 	wiki,timeline,roadmap,browser,tickets,newticket,search,revtree
metanav 	login,logout,prefs,help,about
mysqldump_path 	mysqldump
never_obfuscate_mailto 	false
permission_policies 	DefaultPermissionPolicy, LegacyAttachmentPolicy
permission_store 	DefaultPermissionStore
pg_dump_path 	pg_dump
repository_dir 	e:\svn-repository\mew
repository_sync_per_request 	(default)
repository_type 	svn
request_filters 	
resizable_textareas 	true
secure_cookies 	
show_email_addresses 	false
show_ip_addresses 	false
timeout 	20
use_base_url_for_redirect 	False
use_xsendfile 	false
tracwysiwyg 	templates 	
wysiwyg_stylesheets 	
versioncontrol 	allowed_repository_dir_prefixes 	
wiki 	ignore_missing_pages 	true
max_size 	262144
render_unsafe_content 	true
safe_schemes 	cvs, file, ftp, git, irc, http, https, news, sftp, smb, ssh, svn, svn+ssh
split_page_names 	false

Attachments (0)

Change History (2)

comment:1 Changed 12 months ago by rjollos

  • Description modified (diff)

comment:2 Changed 12 months ago by jun66j5

  • Component changed from TestManagerForTracPlugin to TagsPlugin
  • Keywords install added; installation removed
  • Resolution set to duplicate
  • Status changed from new to closed

That is a TagsPlugin issue with Trac 1.0.x, refs #9521. The issue has been fixed in http://trac-hacks.org/svn/tagsplugin/trunk/. Please try the latest version of TagsPlugin.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.