Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#1188 closed defect (invalid)

csv macro can't work under freebsd 6.2 python 2.4.3

Reported by: dlin Owned by: Alec Thomas
Priority: normal Component: CsvMacro
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

  File "/usr/local/lib/python2.4/site-packages/trac/wiki/macros.py", line 459, in render_macro
    return module.execute(req and req.hdf, content, self.env)
  File "/trac/tfx/wiki-macros/csv.py", line 6, in execute
    sniffer = csv.Sniffer()
AttributeError: 'module' object has no attribute 'Sniffer'

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by Alec Thomas

Resolution: invalid
Status: newclosed

csv.Sniffer is part of the standard Python modules. If the macro can't find this object, something else is going on. Perhaps there is another csv module in the PYTHONPATH, or an old .pyc lying around. Either way, this is not a bug with CsvMacro.

comment:2 Changed 11 years ago by dlin

I found the problem is caused by the CSV.py must be uppercase to CSV.py, I miss typo to lowercase.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.