Closed Zethtren closed 1 year ago
Suggested fix add
from .ncco import *
to
https://github.com/Vonage/vonage-python-sdk/blob/main/src/vonage/ncco_builder/__init__.py
and
from .ncco_builder import *
to
https://github.com/Vonage/vonage-python-sdk/blob/main/src/vonage/__init__.py
The second one is the only one strictly needed to handle this error. The first import is simply being extra expicit
Hi, thanks for raising this. I will investigate and push a fix today.
Have made your suggested changes and released v3.2.2. You can install the new version with pip install --upgrade vonage
. I made the first change too as I didn't like how we were importing it with the objects actually needed in the Client
class.
Let me know if this helps!
Amazing! Thanks!
I am not at my computer right now but I will launch my dual boot in the morning and confirm!
Thanks for being so responsive!
I will run the upgrade and test tomorrow!
Confirmed successful run without import error. Thanks!
Great stuff, glad to hear. I'll close this now, but feel free to open an issue on here if you have any more issues. You can also join our community slack and ask questions there: https://developer.vonage.com/community/slack
Expected Behavior
That using the example code would work when imported from within in a sub-module
Current Behavior
Possible Solution
This code works perfectly fine on Linux. But not on Windows.
Potentially due to some kind of import optimizations.
Steps to Reproduce (for bugs)
Context
It is creating problems with multi-user development teams since we are all on different platforms.
Your Environment