473,503 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange email.Parser error?

I am getting the following traceback after upgrading my app to Python
2.4.1. It's telling me that there is an error in Parser.py. It tells
me that 'fp.read(8192)' is given 2 arguments, but it is clearly not
true. Does anybody know what's going on here?

Traceback (most recent call last):
File "/opt/etext/lib/python2.4/site-packages/etext/enqueue.py", line
252, in work
worker(e.linkval, info)
File "/opt/etext/bin/etreceive", line 30, in worker
result = decode.searchfile(f)
File "/opt/etext/lib/python2.4/site-packages/etext/decode.py", line
43, in searchfile
return Email(f)
File "/opt/etext/lib/python2.4/site-packages/etext/decode.py", line
510, in __init__
self.child.append(Email(mf))
File "/opt/etext/lib/python2.4/site-packages/etext/decode.py", line
404, in __init__
msg = Parser().parse(f)
File "/opt/etext/lib/python2.4/email/Parser.py", line 65, in parse
data = fp.read(8192)
TypeError: read() takes exactly 1 argument (2 given)

Thanks,
Andre.

--

Aug 18 '05 #1
0 1047

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3726
by: Thomas Williams | last post by:
Thanks, I tried it and it stop at: f = file("mail.txt") with the error message. TypeError: 'str' object is not callable Tom Williams
1
5268
by: Karalius, Joseph | last post by:
Can anyone explain what is happening here? I haven't found any useful info on Google yet. Thanks in advance. mmagnet:/home/jkaralius/src/zopeplone/Python-2.3.5 # make gcc -pthread -c...
4
1410
by: francescomoi | last post by:
Hi. I want to parse this XML file: ----------------- <doc> <item> <name>John Morrow</name> <contact type="email">john@john.com</contact> Blah blah </item>
6
3860
by: ST | last post by:
Hi, I keep getting the parser error, and I have no idea why. I've tried a number of things including: 1)building/rebuilding about 100x 2)making sure all dll's are in the bin folder in the root...
12
1484
by: ishtar2020 | last post by:
Hi everybody I've been writing my very first application in Python and everything is running smoothly, except for a strange problem that pops up every once in a while. I'm sure is the kind of...
12
20610
by: John | last post by:
I can't get my head around this! I have the following code: <% .... Code for connection to the database ... .... Code for retrieving recordset ... If Not rs.EOF Then ... Do something...
3
1592
by: Robbert van Geldrop | last post by:
By making a call to a webservice I receive the following error page, we did a complete new build but the error still exist: The installation of the webservice is on an win 2003 standard service...
0
1409
by: Li-fan Chen | last post by:
Hi, We work with email in a large CRM solution and one of the email-related tasks that has plagued us is our decision to make use of a 3rd-party local-sourcer to work on the parsing of inbound...
3
1809
by: Shelly | last post by:
I am encountering two strange problems. First one: I get a "server misconfiguration error", but only sometimes. It occurs on the first screen that accesses the database on a submit. This error...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7087
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5579
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.