[issue21290] imaplib.error when importing email package

2014-04-18 Thread Aaron Briel

Aaron Briel added the comment:

I had a rouge compiled python file named email.pyc.  My apologies.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21290] imaplib.error when importing email package

2014-04-17 Thread R. David Murray

R. David Murray added the comment:

There is no file 'email.py' in the Python standard library.  You must have such 
a file in your python path somewhere, so when you import email it actually 
imports that file instead of the email package.  You will note that 'email.py' 
in the traceback does not have a path, so it is probably in the directory you 
are running python from.

--
resolution:  -> not a bug
stage:  -> committed/rejected
status: open -> closed
type: compile error -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21290] imaplib.error when importing email package

2014-04-17 Thread Aaron Briel

New submission from Aaron Briel:

I see an error when attempting to import the email package on a mac running 
Python 2.7.6rc1 (v2.7.6rc1:4913d0e9be30+, Oct 27 2013, 20:52:11) .  This does 
not occur on another system running Python 2.7.3 (default, Mar 25 2013, 
15:56:58) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2.

aaron-mbp15:core aaronb$ python2.7
Python 2.7.6rc1 (v2.7.6rc1:4913d0e9be30+, Oct 27 2013, 20:52:11) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import email
Traceback (most recent call last):
  File "", line 1, in 
  File "email.py", line 7, in 
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/imaplib.py", 
line 443, in fetch
typ, dat = self._simple_command(name, message_set, message_parts)
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/imaplib.py", 
line 1070, in _simple_command
return self._command_complete(name, self._command(name, *args))
  File 
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/imaplib.py", 
line 905, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: FETCH command error: BAD ['Could not parse command']
>>>

--
components: email
messages: 216752
nosy: barry, r.david.murray, teraincognita
priority: normal
severity: normal
status: open
title: imaplib.error when importing email package
type: compile error
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com