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


Groups > linux.debian.maint.python > #9778 > unrolled thread

Namespace conflict for python-magic

Started byMathias Behrle <mbehrle@debian.org>
First post2017-09-04 18:10 +0200
Last post2017-10-06 08:40 +0200
Articles 9 on this page of 29 — 5 participants

Back to article view | Back to linux.debian.maint.python


Contents

  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

Page 2 of 2 — ← Prev page 1 [2]


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

FromChristoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date2018-01-16 20:50 +0100
SubjectBug#877849: [tryton-debian] Namespace conflict for python-magic
Message-ID<v8Fp8-4Rd-1@gated-at.bofh.it>
In reply to#10061

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

Christoph Biedl wrote...

> Adam Hupp wrote...

> > - disable the deprecation warning. this wouldn't actually show
> > anything by default unless you run python with the warning enabled
> > (-Wd), but until there's a clear plan for the future of this package
> > it seems premature to declare deprecation.
> 
> Um, I cannot see that one.

Got it, so never mind.

    Christoph

[toc] | [prev] | [next] | [standalone]


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

FromChristoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date2018-01-14 21:40 +0100
SubjectBug#877849: [tryton-debian] Namespace conflict for python-magic
Message-ID<v7Xeq-8c4-1@gated-at.bofh.it>
In reply to#10023

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

Christoph Biedl wrote...

> 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.

No reaction of any kind, so just uploaded to experimental. Let the games
begin.

    Christoph

[toc] | [prev] | [next] | [standalone]


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

FromMathias Behrle <mbehrle@debian.org>
Date2018-01-14 23:10 +0100
SubjectBug#877849: [tryton-debian] Namespace conflict for python-magic
Message-ID<v7YDw-KC-19@gated-at.bofh.it>
In reply to#10047
* Christoph Biedl: " Re: Bug#877849: [tryton-debian] Namespace conflict for
  python-magic" (Sun, 14 Jan 2018 21:30:22 +0100):

> Christoph Biedl wrote...
> 
> > 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.  
> 
> No reaction of any kind, so just uploaded to experimental. Let the games
> begin.
> 
>     Christoph

Thanks, Christoph.

I found

$ apt-cache rdepends python-magic
python-magic
Reverse Depends:
  alot
  dff
  syslog-summary
  s3cmd
  rpmlint
  fdroidserver
  autoradio
  apt-offline
  alot
  lava-dispatcher
  check-all-the-things
  syslog-summary
  python-swiftsc
  rpmlint
  rows
  lava-dispatcher
  python-ginga
  python-eyed3
  autoradio

May be we should signal them explicitely to test the new package in
experimental? What do you think?

Mathias

-- 

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

[toc] | [prev] | [next] | [standalone]


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

FromChristoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date2018-01-15 09:40 +0100
SubjectBug#877849: [tryton-debian] Namespace conflict for python-magic
Message-ID<v88tb-7qP-3@gated-at.bofh.it>
In reply to#10048

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

Mathias Behrle wrote...

> I found
>
> $ apt-cache rdepends python-magic
(...)

Yeah, I already had checked a few of them where possible with little
efforts. These were the test I had been talking of (actually, including
python3-magic rdeps as well).

> May be we should signal them explicitely to test the new package in
> experimental? What do you think?

My plan is to send a call for testing to debian-devel once python-magic
has been accepted. It shouldn't hurt to add the dd-list output for these
packages. That would be 27 addresses. I might be convinced to send out
individual notices - but I think that's exaggerting. Odds for bugs are
fairly low, and there's still a lot of time until the buster freeze to
detect and fix them.

    Christoph, it's called "unstable" for a reason

[toc] | [prev] | [next] | [standalone]


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

FromMathias Behrle <mbehrle@debian.org>
Date2018-01-19 19:10 +0100
SubjectBug#877849: [tryton-debian] Bug#877849: Namespace conflict for python-magic
Message-ID<v9J7j-6rF-7@gated-at.bofh.it>
In reply to#10051

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

* Christoph Biedl: " Re: [tryton-debian] Bug#877849: Namespace conflict for
  python-magic" (Mon, 15 Jan 2018 09:37:51 +0100):

Hi Christoph,

> Mathias Behrle wrote...
> 
> > I found
> >
> > $ apt-cache rdepends python-magic  
> (...)
> 
> Yeah, I already had checked a few of them where possible with little
> efforts. These were the test I had been talking of (actually, including
> python3-magic rdeps as well).
> 
> > May be we should signal them explicitely to test the new package in
> > experimental? What do you think?  
> 
> My plan is to send a call for testing to debian-devel once python-magic
> has been accepted. It shouldn't hurt to add the dd-list output for these
> packages. That would be 27 addresses. I might be convinced to send out
> individual notices - but I think that's exaggerting. Odds for bugs are
> fairly low, and there's still a lot of time until the buster freeze to
> detect and fix them.
> 
>     Christoph, it's called "unstable" for a reason

JFTR: relatorio_0.8.0-1~exp1 was just built and uploaded. It builds against 
python-magic (>=2:0.4.15-1~exp1) and all tests are passing succesfully.

Mathias

-- 

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

[toc] | [prev] | [next] | [standalone]


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

FromChristoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date2018-01-21 17:30 +0100
SubjectRe: [tryton-debian] Bug#877849: Namespace conflict for python-magic
Message-ID<vaqFj-Pm-3@gated-at.bofh.it>
In reply to#10074

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

Mathias Behrle wrote...

> JFTR: relatorio_0.8.0-1~exp1 was just built and uploaded. It builds against
> python-magic (>=2:0.4.15-1~exp1) and all tests are passing succesfully.

Good to hear, and thanks for testing. I've sent the Call for tests to
debian-devel a few minutes ago.

    Christoph

[toc] | [prev] | [next] | [standalone]


#9786

FromChristoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date2017-09-05 18:50 +0200
Message-ID<umpd3-5fU-51@gated-at.bofh.it>
In reply to#9784

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

Mathias Behrle wrote...

> 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...

Since I doubt it's super-urgent, just wait a few weeks to see what's
going to happen.

In the best outcome, this issue will resolve itself within the next
weeks. Another idea was to add a compability layer in Debian, probably
by switching to PyPi and providing glue code for the users of the
file(1) version. Since to me it seems PyPi is the saner implementation,
CMIIW.

Worst approach: Ship a code copy. Appearently kopanocore, peframe and
sqlmap already do that. You'll have to clean up afterwards, though.

    Chri- "The delivery of good medica^W packaging is to do as much nothing as possible" stoph

[toc] | [prev] | [next] | [standalone]


#9788

FromMathias Behrle <mbehrle@debian.org>
Date2017-09-06 11:00 +0200
Message-ID<umElH-7Em-9@gated-at.bofh.it>
In reply to#9786

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

* Christoph Biedl: " Re: Namespace conflict for python-magic" (Tue, 5 Sep 2017
  18:45:31 +0200):

> Mathias Behrle wrote...
> 
> > 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...  
> 
> Since I doubt it's super-urgent, just wait a few weeks to see what's
> going to happen.

You are right. I tend to work as proactively as possible towards new Tryton
releases, the next one being scheduled for 2017-10-30. So there is some time
left.

> In the best outcome, this issue will resolve itself within the next
> weeks. Another idea was to add a compability layer in Debian, probably
> by switching to PyPi and providing glue code for the users of the
> file(1) version. Since to me it seems PyPi is the saner implementation,
> CMIIW.

Sounds interesting just in case the above proposed solution will not work. I
agree that the PyPi impementation seems to be more complete.
 
> Worst approach: Ship a code copy. Appearently kopanocore, peframe and
> sqlmap already do that. You'll have to clean up afterwards, though.

We will see. Thanks for your input!
 
>     Chri- "The delivery of good medica^W packaging is to do as much nothing
> as possible" stoph

:)

Cheers,
Mathias

-- 

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

[toc] | [prev] | [next] | [standalone]


#9922 — Bug#877849: ITP: python-magic -- A python wrapper for libmagic

FromChristoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date2017-10-06 08:40 +0200
SubjectBug#877849: ITP: python-magic -- A python wrapper for libmagic
Message-ID<uxusF-65m-1@gated-at.bofh.it>
In reply to#9778

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

Package: wnpp
Severity: wishlist
Owner: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>

* Package name    : python-magic
  Version         : 0.4.13
  Upstream Author : Adam Hupp <adam@hupp.org>
* URL             : https://github.com/ahupp/python-magic/
* License         : MIT
  Programming Lang: Python
  Description     : A python wrapper for libmagic

Tentative long description:

python-magic is a python interface to the libmagic file type
identification library. libmagic identifies file types by checking
their headers according to a predefined list of file types.


Some background:

For quite some time, there have been two but incompatible
implementations for python-magic, providing python bindings for
libmagic (src:file).

The one provided by file ("[file]") itself might be a bit older but
appearently Adam Hupp's implementation ("[pypi]") provides a better
feature set and might even have a broader user base.

Some discussion on this took place on the debian-python list, starting
at [1]: Debian currently provides [file] so at least three packages
that require [pypi] ship their own code copy, more to come. In
upstream[2], there has been a basic understanding between Christos
Zoulas ([file]) and Adam Hupp ([pypi]) to resolve that conflict, and
Adam has announced[3] to work on a merge.

The tentative transition plan is as follows, and I'm open for
suggestions:

* Wait until [pypi] provides the [file] API.
* Ship the library using a different binary package name like
  "Package: python-magic-pypi, Provides: python-magic". Same for
  python3, here and in all the following.
* Ask users of python-magic to install this new package and check
  for regression.
* Big switch when it seems feasible: Then src:file will no longer
  provide python-magic, this package here will do insted.
  (For the records, Debian maintainer for src:file is yours truly.)
* Ask maintainers who ship a [pypi] code copy to use the package
  instead. Would be a MBF if there weren't just a few.

As my Python knowledge is limited, I'm not particulary keen on
maintaining this for Debian and I might even ITA it after the
transition. If somebody else wishes to do the job instead, please step
forward. For the filexit time however, good coordination is required.

    Christoph

[1] https://lists.debian.org/debian-python/2017/09/msg00008.html
[2] The file mailing list archive is down, relevant parts are
    quoted in
    https://lists.debian.org/debian-python/2017/09/msg00015.html
[3] https://lists.debian.org/debian-python/2017/10/msg00021.html

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | linux.debian.maint.python


csiph-web