daily pastebin goal
4%
SHARE
TWEET

Random doesn't work!

a guest Aug 16th, 2012 16 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> import random
  2. Traceback (most recent call last):
  3.   File "<stdin>", line 1, in <module>
  4.   File "random.py", line 14, in <module>
  5.     guessGame( )
  6.   File "random.py", line 3, in guessGame
  7.     answer = int(random.random()*10)+1
  8. TypeError: 'module' object is not callable
  9. Error in sys.excepthook:
  10. Traceback (most recent call last):
  11.   File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
  12.     from apport.fileutils import likely_packaged, get_recent_crashes
  13.   File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
  14.     from apport.report import Report
  15.   File "/usr/lib/python2.7/dist-packages/apport/report.py", line 12, in <module>
  16.     import subprocess, tempfile, os.path, urllib, re, pwd, grp, os
  17.   File "/usr/lib/python2.7/tempfile.py", line 34, in <module>
  18.     from random import Random as _Random
  19.   File "random.py", line 14, in <module>
  20.     guessGame( )
  21.   File "random.py", line 3, in guessGame
  22.     answer = int(random.random()*10)+1
  23. TypeError: 'module' object is not callable
  24.  
  25. Original exception was:
  26. Traceback (most recent call last):
  27.   File "<stdin>", line 1, in <module>
  28.   File "random.py", line 14, in <module>
  29.     guessGame( )
  30.   File "random.py", line 3, in guessGame
  31.     answer = int(random.random()*10)+1
  32. TypeError: 'module' object is not callable
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top