You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can import modules from the amplitude-experiments library when installed.
Current Behavior
Error when importing due to a missing dependency, dataclasses-json.
from amplitude_experiment import Variant
File "/usr/local/lib/python3.9/site-packages/amplitude_experiment/__init__.py", line 11, in <module>
from .factory import Experiment
File "/usr/local/lib/python3.9/site-packages/amplitude_experiment/factory.py", line 3, in <module>
from .local.client import LocalEvaluationClient
File "/usr/local/lib/python3.9/site-packages/amplitude_experiment/local/client.py", line 13, in <module>
from ..deployment.deployment_runner import DeploymentRunner
File "/usr/local/lib/python3.9/site-packages/amplitude_experiment/deployment/deployment_runner.py", line 8, in <module>
from ..flag.flag_config_api import FlagConfigApi
File "/usr/local/lib/python3.9/site-packages/amplitude_experiment/flag/flag_config_api.py", line 4, in <module>
from ..evaluation.types import EvaluationFlag
File "/usr/local/lib/python3.9/site-packages/amplitude_experiment/evaluation/types.py", line 3, in <module>
from dataclasses_json import dataclass_json
ModuleNotFoundError: No module named 'dataclasses_json'
Possible Solution
Add the dependency to setup.py?
Steps to Reproduce
Install amplitude-experiments package v1.6.2
Run a file containing from amplitude_experiment import Variant (or similar import)
Environment
SDK Version: 1.6.2
Language Version: 3.9
The text was updated successfully, but these errors were encountered:
Expected Behavior
Can import modules from the
amplitude-experiments
library when installed.Current Behavior
Error when importing due to a missing dependency,
dataclasses-json
.Possible Solution
Add the dependency to
setup.py
?Steps to Reproduce
amplitude-experiments
package v1.6.2from amplitude_experiment import Variant
(or similar import)Environment
The text was updated successfully, but these errors were encountered: