Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata_base.PrimitiveFamily.ANOMALY_DETECTION - MISSING PRIMITIVE ANOMALY_DETECTION #105

Open
dynamite9999 opened this issue Jul 3, 2023 · 3 comments

Comments

@dynamite9999
Copy link

I am wondering why metadata_base.PrimitiveFamily is missing ANOMALY_DETECTION ?

I did python setup.py build and install, as per README.
Any hints or clues greatly appreciated.

I tried to run the simple examples, and they all fail on the same issue:
python LOF_pipeline.py
Traceback (most recent call last):
File "LOF_pipeline.py", line 11, in
primitive_0 = index.get_primitive('d3m.primitives.tods.data_processing.dataset_to_dataframe')
File "/home/d/miniconda3/envs/anomalytods/lib/python3.7/site-packages/d3m/index.py", line 116, in get_primitive
return getattr(module, name)
File "/home/d/miniconda3/envs/anomalytods/lib/python3.7/site-packages/d3m/namespace.py", line 112, in getattr
primitive = entry_point.resolve()
File "/home/d/miniconda3/envs/anomalytods/lib/python3.7/site-packages/pkg_resources/init.py", line 2477, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/home/d/miniconda3/envs/anomalytods/lib/python3.7/site-packages/tods-0.0.2-py3.7.egg/tods/init.py", line 1, in
from .utils import *
File "/home/d/miniconda3/envs/anomalytods/lib/python3.7/site-packages/tods-0.0.2-py3.7.egg/tods/utils.py", line 30, in
'anomaly_detect': metadata_base.PrimitiveFamily.ANOMALY_DETECTION,
File "/home/d/miniconda3/envs/anomalytods/lib/python3.7/enum.py", line 354, in getattr
raise AttributeError(name) from None
AttributeError: ANOMALY_DETECTION

@lhenry15
Copy link
Member

lhenry15 commented Jul 4, 2023

Try pip uninstall d3m. Then do "pip install -e ." in tods/ again. Could be the wrong version of D3M.

@Pekary
Copy link

Pekary commented Jul 12, 2023

it seems python3.6 has no this problem.

@Martini-Chwang
Copy link

python 3.6 solves the ANOMALY DETECTION error, but a new error appears. setup.py requires 'ray[tune]>=1.13.0', however python 3.6 only has ray[tune] version up to 1.12.1. Is there a solution to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants