Modify

Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#24 closed defect (fixed)

"ImportError: No module named syslog" on Windows

Reported by: michael.th@… Owned by: bas
Priority: minor Milestone:
Component: email2trac Version:
Keywords: Windows syslog import error Cc:

Description

Running email2trac.py under Windows causes the following error:

ImportError: No module named syslog

This happens for Python 2.4.4 as well as 2.5; according to my research the simple explanation is that there is no syslog-module for Python on Windows as there is no syslog...

Attached to this ticket you will find a patch to conditionally load the syslog-module in case it is available on the current platform and to skip it otherwise. This patch is against source:/trunk/email2trac.py.in@189.

Attachments (1)

no_syslog_for_windows.diff (676 bytes) - added by michael.th@… 13 years ago.
Patch to skip syslog-module import in case it's not available.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by michael.th@…

Patch to skip syslog-module import in case it's not available.

comment:1 Changed 13 years ago by bas

  • Status changed from new to assigned

Thanks i will apply it to the trunk version.

comment:2 Changed 13 years ago by bas

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

Applied to the trunk version

Add Comment

Modify Ticket

Change Properties
Action
as closed The owner will remain bas.
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.