Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import random
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "random.py", line 14, in <module>
- guessGame( )
- File "random.py", line 3, in guessGame
- answer = int(random.random()*10)+1
- TypeError: 'module' object is not callable
- Error in sys.excepthook:
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
- from apport.fileutils import likely_packaged, get_recent_crashes
- File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
- from apport.report import Report
- File "/usr/lib/python2.7/dist-packages/apport/report.py", line 12, in <module>
- import subprocess, tempfile, os.path, urllib, re, pwd, grp, os
- File "/usr/lib/python2.7/tempfile.py", line 34, in <module>
- from random import Random as _Random
- File "random.py", line 14, in <module>
- guessGame( )
- File "random.py", line 3, in guessGame
- answer = int(random.random()*10)+1
- TypeError: 'module' object is not callable
- Original exception was:
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- File "random.py", line 14, in <module>
- guessGame( )
- File "random.py", line 3, in guessGame
- answer = int(random.random()*10)+1
- TypeError: 'module' object is not callable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement