Modify

Opened 12 years ago

Closed 12 years ago

#131 closed defect (fixed)

AttributeError: 'module' object has no attribute 'collapse_rfc2231_value'

Reported by: otto@… Owned by: bas
Priority: major Milestone: 0.80
Component: email2trac Version: trunk
Keywords: Cc:

Description

Hi,

i tried to install email2trac. But while trying

email2trac < mail.txt 
TD: new_ticket
user_dict[summary] =
user_dict[reporter] =
user_dict[owner] =
user_dict[description] =
user_dict[type] = defect
user_dict[status] =
user_dict[priority] = major
user_dict[milestone] =
user_dict[component] = test
user_dict[version] = 2.00
user_dict[keywords] =
user_dict[cc] =
TD: Message part: Content-Type: text/plain
TD:               Inline body part
TD: saving email to /tmp/tmpLj7jjn.email2trac

i got the following message in syslog an no ticked has been created:

Apr  6 17:25:52 web2 email2trac: Traceback (most recent call last):
Apr  6 17:25:52 web2 email2trac:   File "/usr/local/bin/email2trac", line 1564, in ?     tktparser.parse(sys.stdin)
Apr  6 17:25:52 web2 email2trac:   File "/usr/local/bin/email2trac", line 981, in parse     self.new_ticket(m, spam_msg)
Apr  6 17:25:52 web2 email2trac:   File "/usr/local/bin/email2trac", line 799, in new_ticket     message_parts = self.get_message_parts(msg)
Apr  6 17:25:52 web2 email2trac:   File "/usr/local/bin/email2trac", line 1136, in get_message_parts     format = email.Utils.collapse_rfc2231_value(part.get_param('Format', 'fixed')).lower()
Apr  6 17:25:52 web2 email2trac: AttributeError: 'module' object has no attribute 'collapse_rfc2231_value'

/tmp/tmp2pskyA.email2trac shows the same content as the mail.

some idea on it?

Attachments (0)

Change History (5)

comment:1 Changed 12 years ago by bas

  • Status changed from new to assigned

What is your python version?

comment:2 Changed 12 years ago by otto@…

Hi, seems like 2.3.4...

[root@web2 logs]# rpm -qa | grep python
gnome-python2-bonobo-2.6.0-3
python-clearsilver-0.10.4-2.el4.rf
gamin-python-0.1.7-1.4.EL4
gnome-python2-2.6.0-3
gnome-python2-canvas-2.6.0-3
mod_python-3.1.3-5.1
sw-libxml2-python-2.6.27-5.centos42
python-sqlite-1.1.7-1.2.1
dbus-python-0.22-12.EL.9
python-2.3.4-14.7.el4
libxml2-python-2.6.16-12.6
rpm-python-4.3.3-26_nonptl
python-urlgrabber-2.9.8-2
python-elementtree-1.2.6-7.el4.rf
MySQL-python-1.2.1_p2-1.el4.1

comment:3 Changed 12 years ago by bas

I think we need at least python 2.4 for collapse_rfc2231_value. Will find out tommorrow

comment:4 Changed 12 years ago by bas

just checked, it is only availabel for python2.4 and higher

comment:5 Changed 12 years ago by bas

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

Configure will fail if version is less then 2.4

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.