homus@kdehomus:~$ python3.8 Рабочий\ стол/random.py
Traceback (most recent call last):
File "Рабочий стол/random.py", line 1, in <module>
rnd = __import__("random")
File "/home/homus/Рабочий стол/random.py", line 3, in <module>
print("Вывод случайного целого числа ", rnd.randint(0, 9))
AttributeError: partially initialized module 'random' has no attribute 'randint' (most likely due to a circular import)
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, io
File "/usr/lib/python3.8/tempfile.py", line 184, in <module>
from random import Random as _Random
File "/home/homus/Рабочий стол/random.py", line 3, in <module>
print("Вывод случайного целого числа ", rnd.randint(0, 9))
AttributeError: partially initialized module 'random' has no attribute 'randint' (most likely due to a circular import)
Original exception was:
Traceback (most recent call last):
File "Рабочий стол/random.py", line 1, in <module>
rnd = __import__("random")
File "/home/homus/Рабочий стол/random.py", line 3, in <module>
print("Вывод случайного целого числа ", rnd.randint(0, 9))
AttributeError: partially initialized module 'random' has no attribute 'randint' (most likely due to a circular import)