Imaplib error? EOF error?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Reproduce the failure with the Python 2 examples on Ubuntu or the Raspberry Pi, then inspect pattern/web/imap/init.py at the Mail constructor and login call alongside Python's imaplib connection handling. Determine the relevant configuration or compatibility problem and verify the result by rerunning test.py without the socket EOF error.
Written by the indexing model from the issue text.
Description
Hi, when I run following code on either my linux ubuntu or my raspberry pi I get the following error?
On ubuntu zesty 17.04
from pattern.web import Mail, GMAIL, SUBJECT
gmail = Mail(username='username', password='password', service=GMAIL, port=993, secure=False)
print gmail.folders.keys()
['drafts', 'spam', 'personal', 'work', 'inbox', 'mail', 'starred', 'trash']
python test.py
Traceback (most recent call last):
File "test.py", line 7, in <module>
gmail = Mail(username='username', password='password', service=GMAIL, port=993, secure=False)
File "/home/myname/anaconda2/lib/python2.7/site-packages/pattern/web/imap/__init__.py", line 115, in __init__
self.login(username, password)
File "/home/myname/anaconda2/lib/python2.7/site-packages/pattern/web/imap/__init__.py", line 133, in login
self._imap4 = (self._secure and IMAP4_SSL or IMAP4)(self._host, self._port)
File "/home/myname/anaconda2/lib/python2.7/imaplib.py", line 194, in __init__
self.welcome = self._get_response()
File "/home/myname/anaconda2/lib/python2.7/imaplib.py", line 931, in _get_response
resp = self._get_line()
File "/home/myname/anaconda2/lib/python2.7/imaplib.py", line 1031, in _get_line
raise self.abort('socket error: EOF')
imaplib.abort: socket error: EOF
On RPi
same input
python test.py
Traceback (most recent call last):
File "test.py", line 7, in <module>
gmail = Mail(username='username', password='password', service=GMAIL, port=993, secure=False)
File "/usr/local/lib/python2.7/dist-packages/pattern/web/imap/__init__.py", line 115, in __init__
self.login(username, password)
File "/usr/local/lib/python2.7/dist-packages/pattern/web/imap/__init__.py", line 133, in login
self._imap4 = (self._secure and IMAP4_SSL or IMAP4)(self._host, self._port)
File "/usr/lib/python2.7/imaplib.py", line 193, in __init__
self.welcome = self._get_response()
File "/usr/lib/python2.7/imaplib.py", line 928, in _get_response
resp = self._get_line()
File "/usr/lib/python2.7/imaplib.py", line 1028, in _get_line
raise self.abort('socket error: EOF')
imaplib.abort: socket error: EOF
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from clips/pattern
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
gradio-app/gradio#13895 ·
Maintainers usually reply within 1 day
-
build-error
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
spack/spack-packages#6713 ·
Maintainers usually reply within 1 day
-
Use issue templatesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ActivityWatch/activitywatch#1464 · 1 reaction ·
Maintainers usually reply within 1 day
-
[Bug]: The ckg tool drops the return type of every decorated Python method in class search resultsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bytedance/trae-agent#483 ·
Maintainers usually reply within 1 day