alexa/alexa-skills-kit-sdk-for-python

Cannot import the SpokenInfo class (ask_sdk_model.services.reminder_management)

dooinwell opened this issue · 2 comments

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Expected Behavior

Based on documentation, I expect to be able to import the SpokenInfo class by doing

from ask_sdk_model.services.reminder_management import SpokenInfo

Current Behavior

The import fails with the following error:
ImportError: cannot import name 'SpokenInfo' from 'ask_sdk_model.services.reminder_management'

I also tried many variations with no luck.

Your Environment

ask-sdk-core==1.15.0
ask-sdk-model==1.29.0
Python 3.7 (Google App Engine)

Hey @dooinwell , the SpokenInfo class is actually named as AlertInfoSpokenInfo, as can be seen here. This is because the models are autogenerated and there seems to be an issue with that class definition leading to that.

Can you please try importing the AlertInfoSpokenInfo module for your needs, and let us know if you still face issues?