[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
** Changed in: matplotlib (Ubuntu) Importance: Undecided => Wishlist ** Changed in: matplotlib (Ubuntu) Status: Confirmed => Triaged ** Summary changed: - python-matplotlib: missing package dependency (python-tk) + auto backend discovery at start time -- auto backend discovery at start time https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
There is no bug filed in the Debian bug tracking system. The auto backend discovery at start time wish was discussed on the matplotlib- devel mailing list. -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
Sandro, Is there a bug filed for this upstream at Debian? -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
You can test the built package on your system using my PPA https://launchpad.net/~jhaitas/+archive/python-matplotlib deb http://ppa.launchpad.net/jhaitas/python-matplotlib/ubuntu jaunty main deb-src http://ppa.launchpad.net/jhaitas/python-matplotlib/ubuntu jaunty main This repository is signed with 1024R/3F4D6BEE OpenPGP key. Dmitrijs, I am awaiting your feedback in particular. -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
Here is the aforementioned ubuntu4.debdiff ** Attachment added: "matplotlib_0.98.5.2-1ubuntu4.debdiff" http://launchpadlibrarian.net/26598333/matplotlib_0.98.5.2-1ubuntu4.debdiff -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
For now I will provide a patch that depends exclusively on 'python-tk' since this is the default configuration for the package as it is provided by upstream. An exclusive install depend on 'python-tk' will resolve THIS bug. Users who are aware of other options should have the ability to create a ~/.matplotlib/matplotlibrc file that requests the 'backend' of their choice. Anyone with this knowledge should have the ability to install the appropriate packages to realize this. We can open a new bug regarding automatic selection of the 'best' available backend. -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
On Fri, May 8, 2009 at 22:14, John Haitas wrote: > How bout we do an ubuntu4 that depends on python-tk Did you actually read the files I've mentioned above? that *is* part the change. > We can work on an ubuntu5 that selects the best option. Sure, please do it if you feel it's required; please give it back to Debian then. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
How bout we do an ubuntu4 that depends on python-tk We can work on an ubuntu5 that selects the best option. -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
On Fri, May 8, 2009 at 21:20, John Haitas wrote: > Given that there is not yet an upstream fix for this. > > Can we just patch the current code so the packaging will work? > > We can revisit the issue when a new version is released. > > In the meantime, our users are going to struggle to understand what's > going on. > > Can we provide a working solution even if it is not the preferred long > term solution? The working solution is here: /usr/share/doc/python-matplotlib/NEWS.Debian.gz /usr/share/doc/python-matplotlib/README.Debian I'm pretty sure Benjamin kept this file from Debian to Ubuntu. There is documentation written ad-hoc for this change. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
Given that there is not yet an upstream fix for this. Can we just patch the current code so the packaging will work? We can revisit the issue when a new version is released. In the meantime, our users are going to struggle to understand what's going on. Can we provide a working solution even if it is not the preferred long term solution? -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
On Tue, May 5, 2009 at 06:09, John Haitas wrote: > That's why I went with the method I did. If the patch is this [1] then it's wrong. [1] http://launchpadlibrarian.net/26327836/matplotlib_0.98.5.2-1ubuntu4.debdiff > A guy in #ubuntu-motu thought my > method was wrong. I agree with that guy > I still think it is right to depend on python-tk and then > do the OR for the rest of the packages on the line. I know it will fix the > bug. I will try to have a PPA tomorrow. Please try my patch for now. This is > the first patch I have submitted. I would feel a huge sense of > accomplishment if I can get it right and receive credit for it. No, read documentation we added in Debian packages about how to fix this problem. This is a configuration that needs to be done by the system administrator, the one that installs the package and setup the environment. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
2009/5/5 Дмитрий Ледков : > 2009/5/5 John Haitas : >> I am already working on a patch that moves python-gtk2 etc... to the >> Suggests line... >> >> would that produce the desired results? >> > > Dunno... The idea here is that matplolib GUI has many types depending > on different backends. > > A KDE user _can_ run the qt gui. > A Gnome user _can_ run the GTK gui. > etc. > > At runtime the _available_ backends should be checked and one should > be picked which is curently available, ie. installed. > > Due to python / apt nature what is avaiable at install time is > different from what is there at the runtime. > > Ideally we should be able to detect that. And we already talked with upstream authors to implement such functionality. > I got this idea to use Python-Apt bindings to write a small function > that will check with apt what's installed and pick the pretties one. > I'll work on this, should be easy. Hopefully I will have something > ready (patch, debdiff, PPA) in a few hours. No, that should be done inside matplotlib: check what's binding is available, choose the best. > This will be Debian/Ubuntu solution. The solution descrive above will enter Debian, not anything else. Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
That's why I went with the method I did. A guy in #ubuntu-motu thought my method was wrong. I still think it is right to depend on python-tk and then do the OR for the rest of the packages on the line. I know it will fix the bug. I will try to have a PPA tomorrow. Please try my patch for now. This is the first patch I have submitted. I would feel a huge sense of accomplishment if I can get it right and receive credit for it. -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
2009/5/5 John Haitas : > I am already working on a patch that moves python-gtk2 etc... to the > Suggests line... > > would that produce the desired results? > Dunno... The idea here is that matplolib GUI has many types depending on different backends. A KDE user _can_ run the qt gui. A Gnome user _can_ run the GTK gui. etc. At runtime the _available_ backends should be checked and one should be picked which is curently available, ie. installed. Due to python / apt nature what is avaiable at install time is different from what is there at the runtime. Ideally we should be able to detect that. I got this idea to use Python-Apt bindings to write a small function that will check with apt what's installed and pick the pretties one. I'll work on this, should be easy. Hopefully I will have something ready (patch, debdiff, PPA) in a few hours. This will be Debian/Ubuntu solution. Forward looking when PackageKit will catch on this solution can be ported to use PackageKit to be used cross-distro. -- With best regards Dmitrijs Ledkovs (for short Dima), Ледков Дмитрий Юрьевич -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
I am already working on a patch that moves python-gtk2 etc... to the Suggests line... would that produce the desired results? -- John Haitas jhai...@gmail.com -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
John, that patch will make python-gtk a dependency, which is what we were trying to avoid. Perhaps we should using python-gd as a placeholder on the | so that we ensure python-tk is always installed without bringing in gtk/qt dependencies. It looks like that's what Debian did in the stable package as Chris pointed out. -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)
here is a patch ** Attachment added: "patch to resolve bug" http://launchpadlibrarian.net/26327836/matplotlib_0.98.5.2-1ubuntu4.debdiff -- python-matplotlib: missing package dependency (python-tk) https://bugs.launchpad.net/bugs/301007 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs