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


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

Bug#877849: [tryton-debian] Namespace conflict for python-magic

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#877849: [tryton-debian] Namespace conflict for python-magic
Date Mon, 08 Jan 2018 12:00:02 +0100
Message-ID <v5Daa-4Gb-3@gated-at.bofh.it> (permalink)
References <um26J-7EI-15@gated-at.bofh.it> <um3vQ-8os-31@gated-at.bofh.it> <umjTZ-1V1-33@gated-at.bofh.it> <umoTD-55T-11@gated-at.bofh.it> <umDSG-7ph-5@gated-at.bofh.it> <uwA78-4eO-17@gated-at.bofh.it> <uxbq1-1rf-7@gated-at.bofh.it> <uFcff-3CO-3@gated-at.bofh.it> <uxusF-65m-1@gated-at.bofh.it> <uT5dT-VH-5@gated-at.bofh.it> <uxusF-65m-1@gated-at.bofh.it> <uT5dT-VH-5@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Jan 8 10:51:10 2018
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -3.961
Reply-To Christoph Biedl <debian.axhn@manchmal.in-ulm.de>, 877849@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc wnpp@debian.org
X-Debian-Pr-Message followup 877849
X-Debian-Pr-Package wnpp
X-Spam-Bayes score:0.0000 Tokens: new, 23; hammy, 150; neutral, 136; spammy, 0. spammytokens: hammytokens:0.000-+--H*UA:2014-03-12, 0.000-+--H*u:2014-03-12, 0.000-+--H*u:1.5.23, 0.000-+--H*UA:1.5.23, 0.000-+--H*c:pgp-sha512
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uJrvpPjGB3z5kYrA"
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1431809
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 107
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Mathias Behrle <mathiasb@m9s.biz>, Tryton package maintenance in Debian <tryton-debian@lists.alioth.debian.org>, Christos Zoulas <christos@zoulas.com>, debian-python <debian-python@lists.debian.org>
X-Original-Date Mon, 8 Jan 2018 11:48:59 +0100
X-Original-Message-ID <1515408308@msgid.manchmal.in-ulm.de>
X-Original-References <20170904174256.40241925@monsterix.mbehrle.de> <1504545692@msgid.manchmal.in-ulm.de> <20170905130017.1eb29221@monsterix.mbehrle.de> <1504628090@msgid.manchmal.in-ulm.de> <20170906102348.6587419c@monsterix.mbehrle.de> <CAJTao0_zc7yb5pm9rDUE0yq2yXQdae0HmfVKFtncXOF1JNzMkg@mail.gmail.com> <20171005120116.3a92221a@monsterix.mbehrle.de> <20171027144420.5194574a@monsterix.mbehrle.de> <1507271366@msgid.manchmal.in-ulm.de> <CAJTao0-jhKARBKckAqWD1NkixmC_Or6taS1SN_U4KyMmhq37Zw@mail.gmail.com> <1507271366@msgid.manchmal.in-ulm.de> <CAJTao0-jhKARBKckAqWD1NkixmC_Or6taS1SN_U4KyMmhq37Zw@mail.gmail.com>
Xref csiph.com linux.debian.bugs.dist:874019 linux.debian.maint.python:10023

Cross-posted to 2 groups.

Show key headers only | View raw


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

Adam Hupp wrote...

> I've pushed an update here:
>
> https://github.com/ahupp/python-magic/tree/libmagic-compat
>
> It includes a copy of libmagic's bindings, wrapped in deprecation
> warnings.  So apps should work regardless of which they depend on.
> Could you take a look and see if this works for your case?

There are two glitches, you got mails in private about these.
Doing a first round of tests showed regressions so far.

Hence, here is a preliminary packaging of python-magic for Debian:

  https://www.in-ulm.de/~cbiedl/debian/python-magic/python-magic_0.4.15-1~exp1.dsc

Debianites, please give it a try.

About the deprecation warning: I figured out right now (at least for
Debian) it would mostly scare users. Once Christos acknowledges your
work (hopefully) and deprecates the [file] python-magic implementation,
it's about time to alert authors of programs that use python-magic but
no earlier.

Therefore I created a switch that mutes that warning unless a
PYTHONMAGIC_WARN_DEPRECATED environment variable is set, patch below.
Using this switch, users can already test whether a particular
application needs an adjustment for the [pypi] API.

At least in Debian, I expect this transition to take two years anyway.

Cheers,

    Christoph

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