I ran my code many times in my computer and didn't get this error. But all of a sudden this came
File "e:\Python 3.8.0\lib\site-packages\comtypes\client\_code_cache.py", lin
import ctypes, logging, os, sys, tempfile, types
File "e:\Python 3.8.0\lib\tempfile.py", line 45, in <module>
from random import Random as _Random
ImportError: cannot import name 'Random' from 'random' (e:\python codes\random
You've probably created a file called random.py. Since that is the exact name of a built-in module, your program will get mixed up, and import the file you've created.
To fix this, rename your fie to something like random2.py, and it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With