Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #9784

Re: Namespace conflict for python-magic

From Mathias Behrle <mbehrle@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Namespace conflict for python-magic
Date 2017-09-05 13:10 +0200
Message-ID <umjTZ-1V1-33@gated-at.bofh.it> (permalink)
References <um26J-7EI-15@gated-at.bofh.it> <um3vQ-8os-31@gated-at.bofh.it>
Organization .

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

* Christoph Biedl: " Re: Namespace conflict for python-magic" (Mon, 4 Sep 2017
  19:38:56 +0200):

> Mathias Behrle wrote...
> 
> > Current python(3)-magic in Debian is built from source package 'file'[0].  
> (...)
> > OTOH the package providing python-magic on PyPi[3] is provided by another
> > Upstream[4].  
> 
> ... and I assume the APIs are not identical?

Indeed.
 
> > The cleanest solution for me would look like
> > - package file in Debian should provide python(3)-file-magic
> > - python-magic should be the package name corresponding to the PyPi package
> >   python-magic[4]  
> 
> This would result in users of the current python-magic (from file) would
> be forced into the other one. Unless we (as in Debian) can guarantee
> this will work in each and every use case, I fail to see why this should
> be considered a clean solution.

When saying clean solution I talked about the solution inside Debian.

I think it could be made to work, but the result doesn't justify the effort and
still wouldn't solve the conflicting namespace.
 
> The cleanest solution indeed was to bring both upstreams together and
> ask them to reconcile the APIs and eventually make one of the both
> implementations obsolete. As things happen such an attempt was started
> two years ago but appearently never came to a result.[1]

Agreed, that this would be the cleanest solution, but as you say there is
little probability, that the two upstreams will work together to merge their
implementations.

> Trying to address this conflict in Debian is always only second best. If
> this is the only feasible way, it still should leave a choice to users
> so they can install the implementation of their own preference. Co-
> installability of both package was certainly nice-to-have but will
> probably impossible for technical reasons.

It is indeed an ugly mess. For me both packages must be co-installable, because
the relative rdepends must be usable at the same time.

Reading through the issues of python-magic (as on PyPi) the problem of course
dates from the very beginning[2], spans multiple issues[3] with currently still
open this one[4].

So finally I am still quite undetermined what to do to get the actual release
of relatorio packaged[5] (it will be needed for the next release of Tryton). For
now there is only one usage of python-magic[6], so probably best to patch
relatorio for now to use file-magic...

> [1] The file mailing list server is currently down, so I cannot provide
>     URLs. The Message-IDs are 
>     <CAJTao09xATQYZ3qR-4CR+oOrrqB_W=kYUJV8esOe4b3bdA5nwA@mail.gmail.com>
>     <20151020133008.9B79517FDAB@rebar.astron.com>

Still down:(, If you could provide some content for me that would be nice.

Cheers,
Mathias

[2] https://github.com/ahupp/python-magic/issues/21
[3] https://github.com/ahupp/python-magic/issues/57
    https://github.com/LibreTime/libretime/issues/166
    ...
[4] https://github.com/ahupp/python-magic/issues/33
[5] http://hg.tryton.org/relatorio/file/tip/setup.py


-- 

    Mathias Behrle
    PGP/GnuPG key availabable from any keyserver, ID: 0xD6D09BE48405BBF6
    AC29 7E5C 46B9 D0B6 1C71  7681 D6D0 9BE4 8405 BBF6

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2017-09-04 18:10 +0200
  Re: Namespace conflict for python-magic Scott Kitterman <debian@kitterman.com> - 2017-09-04 18:20 +0200
  Re: Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2017-09-04 19:40 +0200
    Re: Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2017-09-05 13:10 +0200
      Re: Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2017-09-05 18:30 +0200
        Re: Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2017-09-06 10:30 +0200
          Re: Namespace conflict for python-magic Adam Hupp <adam@hupp.org> - 2017-10-03 20:30 +0200
            Re: Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2017-10-05 12:20 +0200
              Re: Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2017-10-06 08:40 +0200
                Re: Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2017-10-06 09:30 +0200
                Re: Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2017-10-27 21:50 +0200
              Re: [tryton-debian] Namespace conflict for python-magic Mathias Behrle <mathiasb@m9s.biz> - 2017-10-27 14:50 +0200
                Re: [tryton-debian] Namespace conflict for python-magic Adam Hupp <adam@hupp.org> - 2017-12-04 21:20 +0100
                Re: [tryton-debian] Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2017-12-04 23:10 +0100
                Re: [tryton-debian] Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2018-01-01 15:10 +0100
                Re: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-06 20:30 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-08 12:00 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-08 13:30 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Adam Hupp <adam@hupp.org> - 2018-01-15 07:50 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-16 20:20 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-16 20:50 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-14 21:40 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2018-01-14 23:10 +0100
                Bug#877849: [tryton-debian] Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-15 09:40 +0100
                Bug#877849: [tryton-debian] Bug#877849: Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2018-01-19 19:10 +0100
                Re: [tryton-debian] Bug#877849: Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2018-01-21 17:30 +0100
      Re: Namespace conflict for python-magic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2017-09-05 18:50 +0200
        Re: Namespace conflict for python-magic Mathias Behrle <mbehrle@debian.org> - 2017-09-06 11:00 +0200
  Bug#877849: ITP: python-magic -- A python wrapper for libmagic Christoph Biedl <debian.axhn@manchmal.in-ulm.de> - 2017-10-06 08:40 +0200

csiph-web