Usually, the error module x has no attribute y
means that:
- Your working directory contains a
x
file, which collides with python’sx
module - You are running a python script from a directory (thereby making it your current working directory) where file
x
collides with python’sx
module