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

install pyyaml 6.0 failed #11

Open
zbz0425 opened this issue Oct 7, 2023 · 5 comments
Open

install pyyaml 6.0 failed #11

zbz0425 opened this issue Oct 7, 2023 · 5 comments

Comments

@zbz0425
Copy link

zbz0425 commented Oct 7, 2023

~/termux-home-assistant-installer $ pip install pyyaml==6.0
Collecting pyyaml==6.0
Using cached PyYAML-6.0.tar.gz (124 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
running egg_info
writing lib/PyYAML.egg-info/PKG-INFO
writing dependency_links to lib/PyYAML.egg-info/dependency_links.txt
writing top-level names to lib/PyYAML.egg-info/top_level.txt
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "", line 204, in get_source_files
File "/data/data/com.termux/files/usr/tmp/pip-build-env-e46w33xd/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 107, in getattr
raise AttributeError(attr)
AttributeError: cython_sources
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

@zbz0425
Copy link
Author

zbz0425 commented Oct 7, 2023

/termux-home-assistant-installer $ pip install pyyaml==6.0.1
Requirement already satisfied: pyyaml==6.0.1 in /data/data/com.termux/files/usr/lib/python3.11/site-packages (6.0.1)

/termux-home-assistant-installer $ pip list
Package Version
|------------------ -------
aiohttp 3.8.5
aiohttp-cors 0.7.0
aiosignal 1.3.1
async-timeout 4.0.3
attrs 23.1.0
cffi 1.16.0
charset-normalizer 3.3.0
cryptography 41.0.4
Cython 3.0.3

Cython is installed

@romanovj
Copy link

romanovj commented Oct 7, 2023

echo "cython<3.0" >> c.txt
PIP_CONSTRAINT=c.txt pip install pyyaml==6.0

@AbdurRoufBusiness
Copy link

Having same problem how to fix it
Instructions please

@liuqinfei
Copy link

Having same problem how to fix it Instructions please

I have the same problem with pyyaml == 6.0.
So i specified as a newer version 6.0.1. It works.

@danieljbrennan
Copy link

danieljbrennan commented Jan 24, 2025

Hi, same problem here. How did you specify 6.0.1? I don't see pyyaml anywhere in the repo

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

5 participants