You are not logged in.

#1 2022-08-28 18:45:11

xerxes_
Member
Registered: 2018-04-29
Posts: 676

[SOLVED] python-mistune and python-mistune1 are in conflict

When doing full system update by 'pacman -Syu' I have 2 packages in conflict:

python-mistune and python-mistune1 are in conflict. Remove python-mistune1? [y/N]

Should I answer Yes (but big N suggest No) ?

Last edited by xerxes_ (2022-08-28 22:37:18)

Offline

#2 2022-08-28 19:56:22

mpan
Member
Registered: 2012-08-01
Posts: 1,208
Website

Re: [SOLVED] python-mistune and python-mistune1 are in conflict

Depends.

python-mistune1 is a legacy version of python-mistune, still in repos because community/m2r, community/pcbdraw and community/python-flasgger explicitly require that old version.

If you have one of those packages or any other package that requires specifically python-mistune1, you can’t replace it. To find out, what on your system depends on a given package, you may use pactree from the community/pacman-contrib package:

pactree -r python-mistune1

For each package you have installed and is reported by pactree, see if it depends on python-mistune (any of it) or python-mistune1. If it accepts any python-mistune, replacement is fine. An alternative, quickier, but a bit dirtier way is to remove each package that depends on python-mistune1 with --recursive (-s) option and after all of them are removed and python-mistune1 is no longer present, reinstall each of the packages. If they need python-mistune1, they will pull it. If not, they will accept python-mistune.

Last edited by mpan (2022-08-28 19:56:58)


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2022-08-28 20:48:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,560

Re: [SOLVED] python-mistune and python-mistune1 are in conflict

Just answer 'y'. If anything requires that old version, pacman will error and and tell you.

Offline

#4 2022-08-28 20:48:45

xerxes_
Member
Registered: 2018-04-29
Posts: 676

Re: [SOLVED] python-mistune and python-mistune1 are in conflict

pactree -r python-mistune1
python-mistune1
├─jupyter-nbconvert
│ ├─jupyter-notebook
│ │ └─jupyter-widgetsnbextension
│ └─jupyter-server
│   ├─jupyter-notebook-shim
│   │ └─jupyterlab
│   │   └─jupyterlab_pygments
│   │     └─jupyter-nbconvert
│   └─python-jupyterlab_server
│     └─jupyterlab
└─m2r
pactree -r python-mistune
python-mistune1 provides python-mistune
├─jupyter-nbconvert
│ ├─jupyter-notebook
│ │ └─jupyter-widgetsnbextension
│ └─jupyter-server
│   ├─jupyter-notebook-shim
│   │ └─jupyterlab
│   │   └─jupyterlab_pygments
│   │     └─jupyter-nbconvert
│   └─python-jupyterlab_server
│     └─jupyterlab
└─m2r
pacman -Ss m2r
community/m2r 0.2.1-11 [installed]
pacman -Sii m2r
Repository      : community
Name            : m2r
Version         : 0.2.1-11
Description     : Markdown to reStructuredText converter
Architecture    : any
URL             : https://github.com/miyakogi/m2r
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : python-mistune1  python-docutils
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Download Size   : 21.34 KiB
Installed Size  : 73.45 KiB
Packager        : Antonio Rojas <arojas@archlinux.org>
Build Date      : Sun Jul 31 20:55:37 2022
MD5 Sum         : a99647a9f06411b1c651499a632d7de6
SHA-256 Sum     : 881cfc502748ffdaffa528b6ec119db893d686105b2169ab9280a226c5e0c985
Signatures      : 7A4E76095D8A52E4
pacman -Ss python-docutils
community/python-docutils 1:0.19-1 [installed]

I think about dirty way or about removing m2r and python-docutils.

OK, I may see what wise pacman would tell me.

Last edited by xerxes_ (2022-08-28 20:51:46)

Offline

#5 2022-08-28 21:02:41

mpan
Member
Registered: 2012-08-01
Posts: 1,208
Website

Re: [SOLVED] python-mistune and python-mistune1 are in conflict

scimmia: pacman will indeed prevent them from breaking anything, even if they answer ‘y’, if the packages installed explicitly require python-mistune1. Or at least make a warning if that’s an optdepends. That is the case for packages in the official repos. The same can’t be assured for foreign packages or unofficial repos, which may indicate only python-mistune as their dependency. Hence I offered the longer way, which will clearly tell them where they stand.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#6 2022-08-28 22:36:48

xerxes_
Member
Registered: 2018-04-29
Posts: 676

Re: [SOLVED] python-mistune and python-mistune1 are in conflict

I removed m2r package and system update was possible. After that m2r package can't be installed because of conflict between python-mistune1 and python-mistune.

Offline

#7 2022-08-29 01:45:14

mpan
Member
Registered: 2012-08-01
Posts: 1,208
Website

Re: [SOLVED] python-mistune and python-mistune1 are in conflict


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB