# \[Solved\]When building Python2 in the AUR, checking breaks after running one of the tests

**URL:** <https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147>\
**Category:** Applications\
**Created:** [September 25, 2022, 8:43pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147 "2022-09-25T20:43:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoli62](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/z/4bbf92/32.png) [@zoli62](https://forum.endeavouros.com/u/zoli62)\
**Post date:** [September 25, 2022, 8:43pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/1 "2022-09-25T20:43:16Z")

</div>

Who ran into a similar problem?

---

<div class="post-metadata">

**Author:** ![2000](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/2/ee59a6/32.png) [@2000](https://forum.endeavouros.com/u/2000)\
**Post date:** [September 25, 2022, 8:57pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/2 "2022-09-25T20:57:37Z")

</div>

(Not advised, but) you can install by skipping the check:

`yay -S python2 --mflags "--nocheck"`

---

<div class="post-metadata">

**Author:** ![Chinaboy5216](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/chinaboy5216/32/36569_2.png) [@Chinaboy5216](https://forum.endeavouros.com/u/Chinaboy5216)\
**Post date:** [September 25, 2022, 9:02pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/3 "2022-09-25T21:02:32Z")

</div>

Do we actually still need python2 ?

---

<div class="post-metadata">

**Author:** ![zoli62](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/z/4bbf92/32.png) [@zoli62](https://forum.endeavouros.com/u/zoli62)\
**Post date:** [September 25, 2022, 9:35pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/4 "2022-09-25T21:35:56Z")

</div>

Yes, among other things, this is also recommended here in the comments. [https://aur.archlinux.org/packages/python2](https://aur.archlinux.org/packages/python2)  
Using the Welcome app to update packages, can I tell the build file not to check?

---

<div class="post-metadata">

**Author:** ![zoli62](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/z/4bbf92/32.png) [@zoli62](https://forum.endeavouros.com/u/zoli62)\
**Post date:** [September 25, 2022, 9:40pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/5 "2022-09-25T21:40:22Z")

</div>

I also asked myself this question, which packages, applications, desktop environments specifically need python2.

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [September 25, 2022, 9:45pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/6 "2022-09-25T21:45:46Z")

</div>

> [@zoli62](#):
>
> I also asked myself this question, which packages, applications, desktop environments specifically need python2.

if you do not use any application that needs it you do not need to install it.  
I do not think any of the common Desktops need python2.

---

<div class="post-metadata">

**Author:** ![zoli62](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/z/4bbf92/32.png) [@zoli62](https://forum.endeavouros.com/u/zoli62)\
**Post date:** [September 25, 2022, 9:50pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/7 "2022-09-25T21:50:52Z")

</div>

As I recall, I have a couple of packages on my systems that have python as a dependency.

---

<div class="post-metadata">

**Author:** ![joekamprad](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/joekamprad/32/77608_2.png) [@joekamprad](https://forum.endeavouros.com/u/joekamprad)\
**Post date:** [September 25, 2022, 9:55pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/8 "2022-09-25T21:55:46Z")

</div>

python2 ?  
Arch only removed this old version to the benefit of python3

> [@Archlinux removing python2 from the repositories](https://forum.endeavouros.com/t/archlinux-removing-python2-from-the-repositories/32052/3):
>
> You can use the command above sudo pacman -Rc python2 and see if it wants to remove anything else before accepting the removal. Alternatively, you can use pactree -r python2

---

<div class="post-metadata">

**Author:** ![wordler](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/wordler/32/14412_2.png) [@wordler](https://forum.endeavouros.com/u/wordler)\
**Post date:** [September 25, 2022, 9:59pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/9 "2022-09-25T21:59:02Z")

</div>

I run Plasma & XFCE. Neither of those require Python2. I have a lot of packages on my plasma desktop machine and the only 2 that required Python2 were fslint and zenmap, which are both very old AUR applications. I was happy to lose those and get rid of Python2 completely. Most things are on much later Python versions. Personally I would not be happy using Python from the AUR. It is a critical component and the only things I run AUR versions of are applications. What I consider to be major components I will always use versions from the main Arch repos. They will be more reliably maintained and updated.

---

<div class="post-metadata">

**Author:** ![ajgringo619](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ajgringo619/32/35599_2.png) [@ajgringo619](https://forum.endeavouros.com/u/ajgringo619)\
**Post date:** [September 25, 2022, 10:10pm UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/10 "2022-09-25T22:10:59Z")

</div>

I had (1) python module - `python-sarge` - that still uses python2 to build the package, but not to actually use it. I just switched to using `pip` to install it instead.

---

<div class="post-metadata">

**Author:** ![anon67981488](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/dbc845/32.png) [@anon67981488](https://forum.endeavouros.com/u/anon67981488)\
**Post date:** [September 26, 2022, 6:58am UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/11 "2022-09-26T06:58:49Z")

</div>

Me, on 5 different UEFI\MBR\DE machines, each one with different dependencies.

Just uninstalled all the Python2-junk, and everything runs seamlessly.

---

<div class="post-metadata">

**Author:** ![zoli62](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/z/4bbf92/32.png) [@zoli62](https://forum.endeavouros.com/u/zoli62)\
**Post date:** [September 26, 2022, 7:45am UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/12 "2022-09-26T07:45:39Z")

</div>

In the end, I did this too, and everything really works smoothly, but before that I looked at what requires python2, but I only found it as optional dependencies for two other packages, and python2-numpy had a mandatory dependency on python2, but not anymore they support it, only python3.

---

<div class="post-metadata">

**Author:** ![zoli62](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/z/4bbf92/32.png) [@zoli62](https://forum.endeavouros.com/u/zoli62)\
**Post date:** [September 26, 2022, 7:48am UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/13 "2022-09-26T07:48:40Z")

</div>

Thanks, that was the solution, I didn’t see the forum thread you linked that after checking which packages required python2, I uninstalled it without risk.Thanks, that was the solution, after checking which ones require python2, I uninstalled it.

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [September 28, 2022, 7:48am UTC](https://forum.endeavouros.com/t/solved-when-building-python2-in-the-aur-checking-breaks-after-running-one-of-the-tests/32147/14 "2022-09-28T07:48:49Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
