Update "python-mechanicalsoup" results in error

Hi, my latest update results in error. I managed to update all packages except this AUR package “python-mechanicalsoup”.

this is the output of my pamac …

Building python-mechanicalsoup...
==> Making package: python-mechanicalsoup 1.4.0-1 (Mon 14 Jul 2025 19:24:06 BST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v1.4.0.tar.gz
==> Validating source files with sha512sums...
    v1.4.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting v1.4.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib/python3.13/site-packages/installer/__main__.py", line 98, in <module>
    _main(sys.argv[1:], "python -m installer")
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/installer/__main__.py", line 86, in _main
    with WheelFile.open(args.wheel) as source:
         ~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.13/contextlib.py", line 141, in __enter__
    return next(self.gen)
  File "/usr/lib/python3.13/site-packages/installer/sources.py", line 162, in open
    with zipfile.ZipFile(path) as f:
         ~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/zipfile/__init__.py", line 1367, in __init__
    self.fp = io.open(file, filemode)
              ~~~~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'dist/*.whl'
==> ERROR: A failure occurred in package().
    Aborting...

I have tried google and no results match my search… any idea what may be the cause? I’m running Manjaro Xfce on a DELL Inspiron 5559 laptop (9 years old)

I ran…

$ pactree -r python-mechanicalsoup
python-mechanicalsoup
└─python-gmusicapi
  ├─google-music-manager-auth
  │ └─google-music-manager-uploader
  └─google-music-manager-uploader
$ 

I have learned a bit about Linux but I’m wondering how to fix this or can I remove the package without causing any problems with the installation.

Any help would be appreciated. thanks

As the latest comment on the AUR page mentions, it’s missing python-setuptools in the makedepends() array.

The package python-mechanicalsoup was installed via the AUR. The AUR is not officially supported by Manjaro, but for those who insist, it is recommended to be used only with the Unstable branch.

However, switching to Unstable (See Switching Branches) will not magically make it work, if issues such as mentioned by @Yochanan exist.

As the problematic package is not part of Manjaro; is something that you have installed separately; then, yes, it can be removed without affecting Manjaro.

Using pacman;

sudo pacman -Rns python-mechanicalsoup

should remove the package and any leftovers.

Regards.


Just noting that best practice is to perform an update of the system first, and only after that has completed, build packages from the AUR as needed.

For example;

1. A normal update/sync using pacman;

sudo pacman -Syu

2. Rebuild any AUR packages using pamac;

pamac update --aur

3. Update flatpak support and packages;

flatpak update

In this way, errant packages from AUR and other foreign sources should not interfere with the system update (proper).

Regards.

thanks @soundofthunder for advice, I tried to remove…

python-mechanicalsoup

… but got “this breaks dependency” message, so I had to remove…

google-music-manager-uploader

and then…

google-music-manager-auth

… that got rid of “python-mechanicalsoup” package completely… looks good now, your advice is much appreciated. It makes sense now, but I’m always a bit scared when I’m deleting pacages. thanks again :grinning: :+1:

2 Likes