# Failed building wheel for PyYAML

**URL:** <https://alice-talk.web.cern.ch/t/failed-building-wheel-for-pyyaml/1092>\
**Category:** O²\
**Tags:** build\
**Created:** [October 9, 2021, 5:48pm UTC](https://alice-talk.web.cern.ch/t/failed-building-wheel-for-pyyaml/1092 "2021-10-09T17:48:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgcn](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/j/48db29/32.png) [@jgcn](https://alice-talk.web.cern.ch/u/jgcn)\
**Post date:** [October 9, 2021, 5:48pm UTC](https://alice-talk.web.cern.ch/t/failed-building-wheel-for-pyyaml/1092/1 "2021-10-09T17:48:30Z")

</div>

Dear experts,

I am trying to build O2 in BigSur 11.6 (Xcode 13.0). When trying the prerequisites, it fails at

brew install alisw/system-deps/o2-full-deps alisw/system-deps/alibuild

The instructions state that one should repeat it several times until there are no errors, but in this case it does not work. It always stops with the same error reported below.

NOTE: The error provides a suggestion, I do not have a /usr/local/Cellar/alibuild/ directory, so I cannot follow the suggestion …

I need my system running ☹  
any help is welcome …  
have a nice day

guillermo

ps the error is:

==\> /usr/local/Cellar/alibuild/1.8.9/libexec/bin/pip install -v --no-deps --no-binary :all: --ignore-installed /private/tmp/alibuild–PyYAML-20211009-34728-q7ccpa/PyYAML-5.4.1  
Last 15 lines from /Users/jgcn/Library/Logs/Homebrew/alibuild/11.pip:  
ERROR: Failed building wheel for PyYAML  
Failed to build PyYAML  
ERROR: Could not build wheels for PyYAML which use PEP 517 and cannot be installed directly  
Exception information:  
Traceback (most recent call last):  
File “/usr/local/Cellar/alibuild/1.8.9/libexec/lib/python3.8/site-packages/pip/\_internal/cli/base\_command.py”, line 180, in \_main  
status = self.run(options, args)  
File “/usr/local/Cellar/alibuild/1.8.9/libexec/lib/python3.8/site-packages/pip/\_internal/cli/req\_command.py”, line 204, in wrapper  
return func(self, options, args)  
File “/usr/local/Cellar/alibuild/1.8.9/libexec/lib/python3.8/site-packages/pip/\_internal/commands/install.py”, line 360, in run  
raise InstallationError(  
pip.\_internal.exceptions.InstallationError: Could not build wheels for PyYAML which use PEP 517 and cannot be installed directly  
WARNING: You are using pip version 21.1.1; however, version 21.2.4 is available.  
You should consider upgrading via the ‘/usr/local/Cellar/alibuild/1.8.9/libexec/bin/python3 -m pip install --upgrade pip’ command.  
Removed build tracker: ‘/private/tmp/pip-req-tracker-w5d0q\_2k’

---

<div class="post-metadata">

**Author:** ![eulisse](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/eulisse/32/19_2.png) [@eulisse](https://alice-talk.web.cern.ch/u/eulisse)\
**Post date:** [October 12, 2021, 8:44am UTC](https://alice-talk.web.cern.ch/t/failed-building-wheel-for-pyyaml/1092/2 "2021-10-12T08:44:20Z")

</div>

We have seen this happening when multiple python versions are installed. I would suggest:

- Uninstall all python versions you have accumulated over the time with brew
- Repeat the command to install alibuild

---

<div class="post-metadata">

**Author:** ![jgcn](https://alice-talk.web.cern.ch/letter_avatar_proxy/v4/letter/j/48db29/32.png) [@jgcn](https://alice-talk.web.cern.ch/u/jgcn)\
**Post date:** [October 12, 2021, 9:04am UTC](https://alice-talk.web.cern.ch/t/failed-building-wheel-for-pyyaml/1092/3 "2021-10-12T09:04:23Z")

</div>

Dear Giulio

thanks for the hint, but it did not help. I had installed python 3.8 and 3.9. I had to use the option --ignore-dependencies because they were needed by gtk-doc, llvm, o2-full-deps and s3cmd already installed … Then I repeated the command and got the exact same error as reported before :((

Any other hint/idea that I may try?

thanks a lot

have a nice day

guillermo

---

<div class="post-metadata">

**Author:** ![eulisse](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/eulisse/32/19_2.png) [@eulisse](https://alice-talk.web.cern.ch/u/eulisse)\
**Post date:** [November 26, 2021, 9:16am UTC](https://alice-talk.web.cern.ch/t/failed-building-wheel-for-pyyaml/1092/4 "2021-11-26T09:16:22Z")

</div>

Sorry for losing focus on this. Did you manage to fix it? Can you try uninstalling and reinstalling bot alibuild and o2-full-deps?
