Decimal problem

Jerry Hill malaclypse2 at gmail.com
Thu Jun 10 16:26:45 EDT 2010


On Thu, Jun 10, 2010 at 3:45 PM, durumdara <durumdara at gmail.com> wrote:

>    from decimal import Decimal
> ImportError: cannot import name Decimal
>
> I deleted my complete Python with all packages, and I reinstalled it.
> But the problem also appeared...
>
> What is this? And what the hell happened in this machine that
> destroyed my working python apps...?
>

My guess is that you have a file named decimal.py (and/or decimal.pyc) in
your working directory, which is shadowing the standard library's decimal
module.

-- 
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100610/aa7c3676/attachment-0001.html>


More information about the Python-list mailing list