Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

AttributeError: __enter__ in python cde

This is the peice of code which had AttributeError: __enter__
  with sr.Microphone as source:
It got resolved by adding '()' as below:
  with sr.Microphone() as source:
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #cde
ADD COMMENT
Topic
Name
2+2 =