Issue with python-pptx after recent update

How can the problem be solved?

LANG=C pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
:: Replace flake8 with extra/python-flake8? [Y/n] y
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing flake8 breaks dependency 'flake8>=2.0' required by python-pptx

ops: no

Mod edit: Added terminal output formatting. Please use the </> button at the top of the reply window with the pasted text highlighted, or add three backticks ``` or three tildes ~~~ on their own lines above and below your pasted output. Cheers! :wink:

Howto resolve problem?

LANG=C pamac update --aur
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Dankaházi ifj. István (dankahazi)
Password: 
==== AUTHENTICATION COMPLETE ====
Csomag adatbázisok szinkronizálása...
Resolving dependencies...
Checking inter-conflicts...
**Error: Failed to prepare transaction:**
**could not satisfy dependencies:**
**- removing flake8 breaks dependency 'flake8>=2.0' required by python-pptx**

Mod edit: Added code formatting; please see note on your previous post. :wink:

your issue seems to cause by a not upto-date mirror as python-pptx does use the new package name scheme along with not having a version requirement.

one thing to do is run sudo pacman-mirrors -f to get more uptodate packages.

another option is uninstalling python-pptx (or if it was install by as a dependency the program that installed it), running the update and reinstall python-pptx

Mod edit: Corrected the command for you. :wink:

Since python-pptx is not in the repo’s and in the AUR this can happen.

There is no package flake8
The package python-flake8 replaces flake8 (see output of: pamac info python-flake8)
There is a package python-flake8 in the repo.
The python-pptx package depends on python-flake8

so update without the AUR would solve the dependancy issue.

eg: pamac update --no-aur and then update the AUR packages.

p.s. The regular pacman -Syu will ask to replace flake8 with python-flake8

Please read up on AUR usage.

2 Likes

Posting about AUR packages is not appropriate in Announcements threads. It is clearly stated in each topic.

I’ve moved your reply to a new AUR topic. Posting twice about the same thing is also not appropriate. In the future, please use proper formatting.

Please see:

1 Like

This procedure should allow the update to continue, provided there are no other issues;

1. Remove the package causing the conflict:

sudo pacman -Rns python-pptx

2. Perform the sync/update normally:

sudo pacman -Syu

If the update completes successfully, you can reinstall python-pptx if it is still needed.

Regards.

1 Like