intel-analytics / analytics-zoo

Distributed Tensorflow, Keras and PyTorch on Apache Spark/Flink & Ray
https://analytics-zoo.readthedocs.io/
Apache License 2.0
18 stars 4 forks source link

Add filelock and packaging to our dependencies? #113

Closed hkvision closed 3 years ago

hkvision commented 3 years ago

Sometimes seems after installation,

Traceback (most recent call last):
  File "dien_preprocessing.py", line 74, in <module>
    init_orca_context("local", cores=args.executor_cores, memory=args.executor_memory)
  File "/opt/work/anaconda3/envs/dien/lib/python3.6/site-packages/zoo/orca/common.py", line 261, in init_orca_context
    from zoo.ray import RayContext
  File "/opt/work/anaconda3/envs/dien/lib/python3.6/site-packages/zoo/ray/__init__.py", line 17, in <module>
    from .raycontext import RayContext
  File "/opt/work/anaconda3/envs/dien/lib/python3.6/site-packages/zoo/ray/raycontext.py", line 25, in <module>
    import filelock
ModuleNotFoundError: No module named 'filelock'

Traceback (most recent call last):
  File "dien_preprocessing.py", line 74, in <module>
    init_orca_context("local", cores=args.executor_cores, memory=args.executor_memory)
  File "/opt/work/anaconda3/envs/dien/lib/python3.6/site-packages/zoo/orca/common.py", line 261, in init_orca_context
    from zoo.ray import RayContext
  File "/opt/work/anaconda3/envs/dien/lib/python3.6/site-packages/zoo/ray/__init__.py", line 17, in <module>
    from .raycontext import RayContext
  File "/opt/work/anaconda3/envs/dien/lib/python3.6/site-packages/zoo/ray/raycontext.py", line 27, in <module>
    from packaging import version
ModuleNotFoundError: No module named 'packaging'

probably some python environment doesn't have these two packages by default? cc @yushan111

shanyu-sys commented 3 years ago

Sure, we could add the two packages to our dependencies.