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

homebrew disabled pyyaml, this breaks "make" in OpenROAD-flow-scripts/flow #2545

Open
stefanottili opened this issue Nov 2, 2024 · 5 comments

Comments

@stefanottili
Copy link

Subject

[Flow] for any util, flow Makefile, or flow script issues.

Describe the bug

MacOS M1. I know: not officially supported, but it worked for the last 4 years.
homebrew "disabled" pyyaml on 2024-10-06.

flow % make
Traceback (most recent call last):
  File "OpenROAD-flow-scripts/flow/scripts/defaults.py", line 4, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
...
make: *** [results/nangate45/gcd/base/1_synth.v] Error 2

flow % brew install pyyaml
==> Downloading https://formulae.brew.sh/api/formula.jws.json
########################################################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
########################################################################################################################################################################### 100.0%
Error: pyyaml has been disabled because it does not meet homebrew/core's requirements for Python library formulae! It was disabled on 2024-10-06.

Expected Behavior

Any hint on how to install yaml in a different way ?

Environment

MacOS Sequoia, M1, using homebrew

To Reproduce

cd flow
make

Relevant log output

No response

Screenshots

No response

Additional Context

No response

@stefanottili
Copy link
Author

stefanottili commented Nov 3, 2024

It seems that brew alone is not enough any more, one has to set up a "virtual env".

https://discuss.python.org/t/on-macos-14-pip-install-throws-error-externally-managed-environment/50352/4

@maliberty
Copy link
Member

No clue but if you get it to work please make a PR.

@oharboe
Copy link
Collaborator

oharboe commented Nov 5, 2024

ubuntu 24 removed "sudo pip3 install". Could it be that brew did something similiar for the same reasons? ("security" is the usual suspect....)

@stefanottili
Copy link
Author

Not security, too many users messed up their os with different versions.
https://github.com/orgs/Homebrew/discussions/5707#discussioncomment-11150840

@oharboe
Copy link
Collaborator

oharboe commented Nov 5, 2024

Makes sense. Same argument goes for Ubuntu 24, I think.

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

3 participants