TypeError when importing Python's decimal module
Question: What causes the TypeError when importing the decimal module?

    
    
    [Michael@devserver MyScripts]$ cat decTest.py
    from decimal import *
    
    #item = Decimal( 0.70 )
    [Michael@devserver MyScripts]$ python3.3 decTest.py
    Traceback (most recent call last):
      File "decTest.py", line 1, in <module>
        from decimal import *
      File "/usr/local/lib/python3.3/decimal.py", line 433, in <module>
        import threading
      File "/usr/local/lib/python3.3/threading.py", line 6, in <module>
        from time import sleep as _sleep
      File "/var/www/python/ineasysteps/MyScripts/time.py", line 3, in <module>
        today = datetime.today()
    TypeError: an integer is required (got type datetime.time)
    [Michael@devserver MyScripts]$
    


Answer: You have in your own folder a file named "time.py", which conflicts with the
built-in time module. Notice how in the stack trace it shows the threading
module needing to import "time".

Rename your "time.py" to something that is not the same name as a built-in
module.

