Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Output:
File "/usr/lib/python3.6/tempfile.py", line 184, in <module>
from random import Random as _Random
ImportError: cannot import name 'Random'
is this a bad import or is something missing?
no... it's the danger of a new command script having the same name as a module.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
create a file named
random.py
in your home directory and
foo.py
with that statement in it and try running
foo.py
and see what happens.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
it didn't have Random in it at all. it was just a command script that prints out some random hex. it got a new name. if figured out the issue before i posted. that's why i included that 2nd line in my post. i guess it was too subtle of an answer.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.