Opened 15 years ago

Closed 15 years ago

#3774 closed defect (fixed)

Error by using svnsync as repository type in trac.ini

Reported by: goldhammerdev@… Owned by: Jeff Hammel
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?

Env: Windows 2003 trac 0.11 Python 2.5 synsync latest version

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Jeff Hammel

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Jeff Hammel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.