#1 Le 25/06/2014, à 16:10
- katian
[RESOLU] soucis module random python3.4
Salut !
en python3.4 j'ai ce soucis :
>>> import random
>>> random.random()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 12, in <module>
import subprocess, tempfile, os.path, re, pwd, grp, os, time
File "/usr/lib/python3.4/tempfile.py", line 175, in <module>
from random import Random as _Random
ImportError: cannot import name 'Random'
Original exception was:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'module' object is not callable
>>>
Pouvez-vous m'aider ???
Dernière modification par katian (Le 25/06/2014, à 16:26)
Hors ligne
#2 Le 25/06/2014, à 16:25
- katian
Re : [RESOLU] soucis module random python3.4
j'ai trouvé, dans mon répertoire courant il y avais un fichier nommé random.py...
ok je ->[]
Hors ligne