User Profile

Collapse

Profile Sidebar

Collapse
David Bobson
David Bobson
Last Activity: Jun 6 '11, 09:33 PM
Joined: Jun 6 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Sorry, folks. I finally found the issue. It was starring me straight in the face. I found that I had created a previous python program and used the same name as a python class/module, which I should not have done.
    See more | Go to post

    Leave a comment:


  • David Bobson
    started a topic TypeError: 'module' object is not callable

    TypeError: 'module' object is not callable

    All, I am trying to learn python. The below code is from a book example. I have researched the error:
    Code:
    Traceback (most recent call last):
      File "bin/flips.py", line 4, in <module>
        import random
      File "/home/david/bin/random.py", line 10, in <module>
        if random.random() < 0.5:
    TypeError: 'module' object is not callable

    What I have found is that the...
    See more | Go to post
No activity results to display
Show More
Working...