AttributeError: module ‘logging’ has no attribute ‘getLogger’

OS (Sierra):
PsychoPy version (3.0.2):
Standard Standalone? (y)

I just started using psychopy and I am very new to coding. It ran one experiment but after that whenever I try to run any experiment it shows the following error:

File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/lib2to3/pgen2/driver.py”, line 120, in load_grammar
logger = logging.getLogger()
AttributeError: module ‘logging’ has no attribute ‘getLogger’

I am not sure what I’m supposed to do and to my knowledge I didn’t change anything between the experiments.

It looks like something to do with overwriting the logging module. Does your experiment have any code components? Do the demos not even run?

I tried a demo and that one ran. I didn’t add any code when I tried to make an experiment, I just added a text stimulus in which I wrote a text and set a duration for 15 seconds