The-OpenROAD-Project / OpenROAD-flow-scripts

OpenROAD's scripts implementing an RTL-to-GDS Flow. Documentation at https://openroad-flow-scripts.readthedocs.io/en/latest/
https://theopenroadproject.org/
Other
334 stars 288 forks source link

Unable to Run Autotuner due to "adarray" not being an attribute in Numpy? #1485

Closed dalyles closed 7 months ago

dalyles commented 1 year ago

Subject

[Documentation] for documentation errors.

Describe the bug

I'm currenlty running the Autotuner but have been impeded by this message. I didn't modify any script files either.

:~/OpenROAD-flow-scripts/flow/util$ python3 distributed.py --design picorv32 --platform sky130hs  --config ../designs/sky130hs/picorv32/autotuner.json tune
Traceback (most recent call last):
  File "/home/dlyles/OpenROAD-flow-scripts/flow/util/distributed.py", line 887, in <module>
    config_dict, SDC_ORIGINAL, FR_ORIGINAL = read_config(abspath(args.config))
  File "/home/dlyles/OpenROAD-flow-scripts/flow/util/distributed.py", line 320, in read_config
    config[key] = read_tune(value)
  File "/home/dlyles/OpenROAD-flow-scripts/flow/util/distributed.py", line 251, in read_tune
    np.adarray.tolist(
  File "/home/dlyles/mambaforge/lib/python3.10/site-packages/numpy/__init__.py", line 320, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'adarray'. Did you mean: 'asarray'?

Why would an error like this show up when there has not been an inssue in the past?

Thank you

Expected Behavior

The Autotuner should execute.

Environment

.

To Reproduce

To reproduce I used this command: python3 distributed.py --design picorv32 --platform sky130hs --config ../designs/sky130hs/picorv32/autotuner.json tune

Relevant log output

No response

Screenshots

No response

Additional Context

No response

vvbandeira commented 1 year ago

It looks like you are using mambaforge, a Python package manager. Are you sure you have installed the requirements in the active environment from which you are trying to call the distributed.py script?

dalyles commented 1 year ago

From my understanding, I always source env.sh so that everything runs smoothly. This is the first time I've come across this issue in all the times I've been running distributed.py

dalyles commented 1 year ago

I did an update on numpy in Mambaforge however it still gives the same messsage.

luarss commented 7 months ago

@dalyles This seems like a syntax error. Can you try np.asarray in place of np.adarray in the distributed.py source code?