-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Is this a support request?
This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here or by emailing [email protected].
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
Describe the bug
Importing VersionInfo in the operators.py file gives out an import error since semver has deprecated VersionInfo and replaced it by Version
To reproduce
Run operators.py file from launchdarkly repo.
Expected behavior
Importing VersionInfo must be successful from launchdarkly
Logs
from .client import *
File "/usr/local/lib/python3.6/dist-packages/ldclient/client.py", line 18, in <module>
from ldclient.flag import EvaluationDetail, evaluate, error_reason
File "/usr/local/lib/python3.6/dist-packages/ldclient/flag.py", line 12, in <module>
from ldclient import operators
File "/usr/local/lib/python3.6/dist-packages/ldclient/operators.py", line 8, in <module>
from semver import VersionInfo
ImportError: cannot import name 'VersionInfo'
SDK version
Latest version
Language version, developer tools
Python 3.6.9 and 3.6.15
OS/platform
Ubuntu 18.04 and 20.04
Additional context
https://readthedocs.org/projects/python-semver/downloads/pdf/latest/