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

ImportError: numpy._core.multiarray failed to import #6

Open
anandhu-eng opened this issue Dec 12, 2024 · 6 comments
Open

ImportError: numpy._core.multiarray failed to import #6

anandhu-eng opened this issue Dec 12, 2024 · 6 comments

Comments

@anandhu-eng
Copy link
Contributor


Migrated from mlcommons/mlperf-automations_archived#46
Originally created by @anandhu-eng on Mon, 18 Nov 2024 13:11:45 GMT



Using MLCommons Inference source from '/home/anandhu/CM/repos/local/cache/c61b3360aaf84204/inference'
INFO:root:         ! cd /home/anandhu/CM/repos/local/cache/e96391f14ae64e0e
INFO:root:         ! call /home/anandhu/CM/repos/mlcommons@cm4mlops/script/get-dataset-coco2014/run.sh from tmp-run.sh
./download-coco-2014.sh -d /home/anandhu/CM/repos/local/cache/e96391f14ae64e0e/install -m 50

ImportError: _multiarray_umath failed to import
RuntimeError: CPU dispatcher tracer already initlized
Traceback (most recent call last):
  File "/home/anandhu/CM/repos/local/cache/c61b3360aaf84204/inference/text_to_image/tools/coco.py", line 5, in <module>
    import pandas as pd
  File "/home/anandhu/.local/lib/python3.10/site-packages/pandas/__init__.py", line 49, in <module>
    from pandas.core.api import (
  File "/home/anandhu/.local/lib/python3.10/site-packages/pandas/core/api.py", line 1, in <module>
    from pandas._libs import (
  File "/home/anandhu/.local/lib/python3.10/site-packages/pandas/_libs/__init__.py", line 17, in <module>
    import pandas._libs.pandas_datetime  # noqa: F401 # isort: skip # type: ignore[reportUnusedImport]
ImportError: numpy._core.multiarray failed to import

CM error: Portable CM script failed (name = get-dataset-coco2014, return code = 256)

run command:

cm run script --tags=run,mlperf,accuracy,_coco2014 --result_dir=/home/anandhu/test_results
@anandhu-eng
Copy link
Contributor Author


Migrated from mlcommons/mlperf-automations_archived#46 (comment)
Originally created by @arjunsuresh on Mon, 18 Nov 2024 13:20:11 GMT


What's the pandas version here?

@anandhu-eng
Copy link
Contributor Author


Migrated from mlcommons/mlperf-automations_archived#46 (comment)
Originally created by @anandhu-eng on Thu, 21 Nov 2024 14:20:27 GMT


Hi @arjunsuresh , it was 2.2.3

I tried to reproduce in I9 system,

/home/anandhu/CM/repos/local/cache/c5f60ba1e1b144af/bertthreading/bin/python3 '/home/anandhu/CM/repos/local/cache/a25b6fc49f394682/inference/text_to_image/tools/accuracy_coco.py' --mlperf-accuracy-file '/home/anandhu/test_results/mlperf_log_accuracy.json' --caption-path '/home/anandhu/CM/repos/local/cache/a25b6fc49f394682/inference/text_to_image/coco2014/captions/captions_source.tsv' --compliance-images-path '/home/anandhu/test_results/images'  --ids-path '/home/anandhu/CM/repos/local/cache/fd96c918ddd64494/install/sample_ids.txt'  > '/home/anandhu/test_results/accuracy.txt'
Traceback (most recent call last):
  File "/home/anandhu/CM/repos/local/cache/a25b6fc49f394682/inference/text_to_image/tools/accuracy_coco.py", line 17, in <module>
    from fid.fid_score import (
  File "/home/anandhu/CM/repos/local/cache/a25b6fc49f394682/inference/text_to_image/tools/fid/fid_score.py", line 47, in <module>
    sys.path.insert("..", 0)
TypeError: 'str' object cannot be interpreted as an integer

I think the format is reverse: sys.path.insert(index, path)

@anandhu-eng
Copy link
Contributor Author


Migrated from mlcommons/mlperf-automations_archived#46 (comment)
Originally created by @arjunsuresh on Mon, 18 Nov 2024 13:16:32 GMT


numpy version issue?
We are using 1.26.4 here

@anandhu-eng
Copy link
Contributor Author


Migrated from mlcommons/mlperf-automations_archived#46 (comment)
Originally created by @anandhu-eng on Thu, 21 Nov 2024 14:21:15 GMT


I think i have the old version of inference code, i saw a recent commit with the insert problem being fixed... let me try with latest pull

@anandhu-eng
Copy link
Contributor Author


Migrated from mlcommons/mlperf-automations_archived#46 (comment)
Originally created by @arjunsuresh on Tue, 26 Nov 2024 13:26:30 GMT


Hi @anandhu-eng is this issue still there?

@anandhu-eng
Copy link
Contributor Author


Migrated from mlcommons/mlperf-automations_archived#46 (comment)
Originally created by @anandhu-eng on Wed, 11 Dec 2024 03:23:28 GMT


Hi @arjunsuresh , let me test this today

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

1 participant