# Cannot install python-websockets

**URL:** <https://forum.endeavouros.com/t/cannot-install-python-websockets/70852>\
**Category:** EndeavourOS repo\
**Created:** [May 1, 2025, 5:30am UTC](https://forum.endeavouros.com/t/cannot-install-python-websockets/70852 "2025-05-01T05:30:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Archie1](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/archie1/32/111095_2.png) [@Archie1](https://forum.endeavouros.com/u/Archie1)\
**Post date:** [May 1, 2025, 5:30am UTC](https://forum.endeavouros.com/t/cannot-install-python-websockets/70852/1 "2025-05-01T05:30:56Z")

</div>

I have been trying to install `python-websockets` package from the repos. But each time I get the following error. `python-websockets` is required for `yt-dlp` which in turn is required for `haruna`. Without `yt-dlp` ability to stream YouTube videos on `haruna` does not work. Can you please help me figure out how to solve this problem?

```auto
(1/4) python-websockets-12.0-3-x86_64
python-websockets-12.0-3-x86_64 is up to date
Eerror: failed retrieving file 'python-websockets-12.0-3-x86_64.pkg.tar.zst' from mirror.osbeck.com : The requested URL returned error: 404
error: failed retrieving file 'python-websockets-12.0-3-x86_64.pkg.tar.zst.sig' from de.mirrors.cicku.me : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

```

---

<div class="post-metadata">

**Author:** ![UncleSpellbinder](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/unclespellbinder/32/127055_2.png) [@UncleSpellbinder](https://forum.endeavouros.com/u/UncleSpellbinder)\
**Post date:** [May 1, 2025, 5:35am UTC](https://forum.endeavouros.com/t/cannot-install-python-websockets/70852/2 "2025-05-01T05:35:20Z")

</div>

I’d update mirrors and give it another go.

UPDATE ARCH MIRRORS:  
`reflector --protocol https --verbose --latest 25 --sort rate | sudo tee /etc/pacman.d/mirrorlist`

UPDATE EOS MIRRORS:  
`eos-rankmirrors --verbose`

AFTER UPDATING MIRRORLISTS, UPDATE SYSTEM:  
`yay -Syyu`

---

<div class="post-metadata">

**Author:** ![cactux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/cactux/32/134907_2.png) [@cactux](https://forum.endeavouros.com/u/cactux)\
**Post date:** [May 1, 2025, 5:46am UTC](https://forum.endeavouros.com/t/cannot-install-python-websockets/70852/3 "2025-05-01T05:46:21Z")

</div>

Looks to be only optional dep and not required by yt-dlp.

---

<div class="post-metadata">

**Author:** ![Archie1](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/archie1/32/111095_2.png) [@Archie1](https://forum.endeavouros.com/u/Archie1)\
**Post date:** [May 1, 2025, 5:48am UTC](https://forum.endeavouros.com/t/cannot-install-python-websockets/70852/4 "2025-05-01T05:48:24Z")

</div>

It does provide the ability to work with websockets. Otherwise `yt-dlp` cannot open streams that use websockets.

---

<div class="post-metadata">

**Author:** ![cactux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/cactux/32/134907_2.png) [@cactux](https://forum.endeavouros.com/u/cactux)\
**Post date:** [May 1, 2025, 5:50am UTC](https://forum.endeavouros.com/t/cannot-install-python-websockets/70852/5 "2025-05-01T05:50:34Z")

</div>

Yeah, I understand that. But at any rate, it is an optional dep. Not a required dep.

Anyways, @UncleSpellbinder suggestion is a good one.

You should always install packages on a fully updated system. Your local sync database seems to be out of date and that’s why pacman cannot find the the package on an up to date server.

> [@Archie1](#):
>
> `error: failed retrieving file 'python-websockets-12.0-3-x86_64.pkg.tar.zst.sig' from de.mirrors.cicku.me : The requested URL returned error: 404`

It is looking for 12.0-3 while the current version on an up to date server is 15.0.1-1 and therefor it fails.
