Modify

Opened 14 years ago

Closed 14 years ago

#7603 closed defect (fixed)

Non-ASCII character '\xc3'

Reported by: Mario Fetka Owned by: Christophe Drevet
Priority: normal Component: TracGitosisPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

hello, i want to use your plugin but there is a nonasci char in a file

2010-08-31 18:22:11,147 Trac[env] INFO: -------------------------------- environment startup [Trac 0.12] --------------------------------
2010-08-31 18:22:14,453 Trac[loader] ERROR: Skipping "tracgitosis = tracgitosis": 
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/loader.py", line 70, in _load_eggs
    entry.load(require=True)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1955, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.6/site-packages/tracgitosis/__init__.py", line 2, in <module>
    from tracgitosis import *
  File "/usr/lib/python2.6/site-packages/tracgitosis/tracgitosis.py", line 103
SyntaxError: Non-ASCII character '\xc3' in file /usr/lib/python2.6/site-packages/tracgitosis/tracgitosis.py on line 103, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (tracgitosis.py, line 103))

Attachments (0)

Change History (5)

comment:1 Changed 14 years ago by Christophe Drevet

Status: newassigned

Yes, there were some comments in french (bad) and no encoding declaration for the file (very bad).

Can you please try the latest commit ?

I didn't work with 0.12 release and I don't know if the plugin even works for one repository. What I know for sure is that it won't support multiple repositories.

comment:2 Changed 14 years ago by Mario Fetka

i am still fighting with setting it up on Gentoo

yes its now working without errors

so it means it will destroy the configuration for the other repositories ?

comment:3 Changed 14 years ago by Ryan J Ollos

Description: modified (diff)

comment:4 in reply to:  2 Changed 14 years ago by Christophe Drevet

Replying to mario.fetka@gmail.com:

i am still fighting with setting it up on Gentoo

yes its now working without errors

so it means it will destroy the configuration for the other repositories ?

Actually, after a little thinking, this plugin should work partially with any configuration since the gitosis repository settings are managed by itself. The only interaction with trac repository (0.11) is to get its name for the 'repository settings' admin panel to work. So, on a second thought, it should definitely not harm trac or gitosis repositories.

But the latter panel shoult not work at all since this plugin will not be able to get trac repositories names in a multiple repo configuration. I'm not sure if it would work in a single repository configuration.

If it's important for you to support multiple repositories, you can open another bug report to request (or contribute) this support.

Thanks for your report.

comment:5 Changed 14 years ago by Christophe Drevet

Resolution: fixed
Status: assignedclosed

fixed in release 1.0.2

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christophe Drevet.
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.