Opened 6 years ago

Closed 6 years ago

#3774 closed defect (fixed)

Error by using svnsync as repository type in trac.ini

Reported by: goldhammerdev@… Owned by: k0s
Priority: normal Component: SvnsyncPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


By using the svnsync as repository trac brings up an error browing through all parts (wiki, tickets etc.) of it.

The trace is:
2008-09-22 11:03:18,890 Trac[main] ERROR: unknown encoding: cp0
Traceback (most recent call last):

File "d:\trac\python2.5\lib\site-packages\Trac-0.11.1-py2.5.egg\trac\web\", line 423, in _dispatch_request


File "d:\trac\python2.5\lib\site-packages\Trac-0.11.1-py2.5.egg\trac\web\", line 173, in dispatch


File "d:\trac\python2.5\lib\site-packages\Trac-0.11.1-py2.5.egg\trac\web\", line 286, in _pre_process_request

chosen_handler = filter_.pre_process_request(req, chosen_handler)

File "d:\trac\python2.5\lib\site-packages\Trac-0.11.1-py2.5.egg\trac\versioncontrol\", line 86, in pre_process_request


File "d:\trac\python2.5\lib\site-packages\Trac-0.11.1-py2.5.egg\trac\versioncontrol\", line 157, in get_repository

repos = self._connector.get_repository(rtype, rdir, authname)

File "d:\trac\python2.5\lib\site-packages\svnsyncplugin-0.1.1-py2.5.egg\svnsyncplugin\", line 35, in get_repository

svnsync.sync(directory, self.repository_url)

File "d:\trac\python2.5\lib\site-packages\svnsyncplugin-0.1.1-py2.5.egg\svnsyncplugin\", line 64, in sync

retval = create(directory, repository, username)

File "d:\trac\python2.5\lib\site-packages\svnsyncplugin-0.1.1-py2.5.egg\svnsyncplugin\", line 41, in create

sh('svnadmin', 'create', directory)

File "d:\trac\python2.5\lib\site-packages\svnsyncplugin-0.1.1-py2.5.egg\svnsyncplugin\", line 19, in sh

print '> %s' % command

LookupError: unknown encoding: cp0

Maybe the solution by using str()-function under url helps?

Windows 2003
trac 0.11
Python 2.5
synsync latest version

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by k0s

  • Resolution set to fixed
  • Status changed from new to closed

(In [4339]) convert command to a string. hopefully this fixes #3774 though honestly i dont understand the issue

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from k0s. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.