Modify

Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#225 closed setup (fixed)

Attribute Error(s)

Reported by: anonymous Owned by: bas
Priority: minor Milestone:
Component: email2trac Version: 1.6.0
Keywords: Cc:

Description

I am receiving the following after running python email2trac.py < C:\Inetpub\mailroot\Drop\msg.eml from the command prompt:

Traceback (most recent call last):

File "email2trac.py", line 2223, in <module>

logger = setup_log(settings, os.path.basename(settings.project), debug_inter

active)

File "email2trac.py", line 2128, in setup_log

log_handler = logging.handlers.SysLogHandler?('/dev/log')

File "C:\PROGRA~1\BITNAM~1\python\lib\logging\handlers.py", line 594, in ini

t

self._connect_unixsocket(address)

File "C:\PROGRA~1\BITNAM~1\python\lib\logging\handlers.py", line 602, in _conn

ect_unixsocket

self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)

AttributeError?: 'module' object has no attribute 'AF_UNIX' Error in atexit._run_exitfuncs: Traceback (most recent call last):

File "C:\Program Files\BitNami? Trac Stack\python\lib\atexit.py", line 24, in _

run_exitfuncs

func(*targs, kargs)

File "C:\PROGRA~1\BITNAM~1\python\lib\logging\init.py", line 1355, in shut

down

h.close()

File "C:\PROGRA~1\BITNAM~1\python\lib\logging\handlers.py", line 635, in close

self.socket.close()

AttributeError?: SysLogHandler? instance has no attribute 'socket' Error in sys.exitfunc: Traceback (most recent call last):

File "C:\Program Files\BitNami? Trac Stack\python\lib\atexit.py", line 24, in _

run_exitfuncs

func(*targs, kargs)

File "C:\PROGRA~1\BITNAM~1\python\lib\logging\init.py", line 1355, in shut

down

h.close()

File "C:\PROGRA~1\BITNAM~1\python\lib\logging\handlers.py", line 635, in close

self.socket.close()

AttributeError?: SysLogHandler? instance has no attribute 'socket'

Here's my environment: Trac running on Windows Server 2003, SP 2, x86 That server is not running Exchange, so I installed the built-in SMTP server. I followed the directions at https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation/Windows (downloaded the three files, renamed them, put them in C:\Program Files\BitNami? Trac Stack\python\, and changed #configfile = '@email2trac_conf@' to configfile = 'email2trac.conf')

My overall goal is to be able to send emails to an email address, and have those emails generate a ticket within Trac. I am able to see that my email made it to C:\Inetpub\mailroot\Drop\, but it looks like the email is not being processed. My guess is that there is an issue with the configuration of a few files, but I'm at a loss as to a fix, as I am a complete noob.

Does anyone have any thoughts?

Attachments (0)

Change History (3)

comment:1 follow-up: Changed 13 years ago by bas

  • Status changed from new to assigned
  • Version set to 1.6.0

You are on windows system and the default log_type is syslog. What is an Unix logging system. I will fix it in a new release. For now set the logging system in email2trac.conf to:

  • log_type : none or log_type: eventlog

See the TracLogging in the help guide and email2trac configuration:

comment:2 in reply to: ↑ 1 Changed 13 years ago by jkreider@…

Replying to bas:

You are on windows system and the default log_type is syslog. What is an Unix logging system. I will fix it in a new release. For now set the logging system in email2trac.conf to:

  • log_type : none or log_type: eventlog

See the TracLogging in the help guide and email2trac configuration:

Thank you

comment:3 Changed 13 years ago by bas

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

(In [489]) fixed log_type error on windows platfor, closes #225

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.