[Matplotlib-devel] v1.5.0rc2

Thomas Caswell tcaswell at gmail.com
Sun Oct 4 22:27:12 CEST 2015


This PR should address the url issue:
https://github.com/matplotlib/matplotlib/pull/5188
This PR should address the qt issue:
https://github.com/matplotlib/matplotlib/pull/5187



On Sun, Oct 4, 2015 at 3:51 PM Thomas Caswell <tcaswell at gmail.com> wrote:

> The first one is that one of our tests reaches out to the internet for a
> test.  We had a rough idea that this was not acceptable for debian, but
> were not sure.  That test probably just needs to be wrapped in a know fail
> if the internet is not accessible.
>
> The second one is a bug that I put in just before the RC2, sorry.
>
> `_path` is one of the c-extensions we build, there should be a
> `_path.so.*` in the top-level mpl folder.
>
> Tom
>
> On Sun, Oct 4, 2015 at 3:43 PM Sandro Tosi <morph at debian.org> wrote:
>
>> Ok, i managed to reach the point where I can build mpl on debian, but
>> I'm getting some weird unittest failures (cut&paste will suck, so I'm
>> also attaching the full build log):
>>
>> ```
>> ERROR: matplotlib.tests.test_style.test_use_url
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>> runTest
>>     self.test(*self.arg)
>>   File
>> "/tmp/buildd/matplotlib-1.5.0~rc2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_style.py",
>> line 61, in test_use_url
>>     with style.context('https://gist.github.com/adrn/6590261/raw'):
>>   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
>>     return self.gen.next()
>>   File
>> "/tmp/buildd/matplotlib-1.5.0~rc2/build/lib.linux-x86_64-2.7/matplotlib/style/core.py",
>> line 121, in context
>>     use(style)
>>   File
>> "/tmp/buildd/matplotlib-1.5.0~rc2/build/lib.linux-x86_64-2.7/matplotlib/style/core.py",
>> line 90, in use
>>     raise IOError(msg % style)
>> IOError: 'https://gist.github.com/adrn/6590261/raw' not found in the
>> style library and input is not a valid URL or path. See
>> `style.available` for list of available styles.
>> ```
>>
>> it seems the test is trying to reach a remote URL (and fails): in
>> debian we dont allow package to reach the internet when building, any
>> suggestions how to disable this test?
>>
>> ```
>> ERROR: Failure: RuntimeError (PyQt{4,5} bindings found despite sip
>> importing
>> Please install PyQt4 or PyQt5, uninstall sip or explicitly set the
>> pyside backend.)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 409, in
>> loadTestsFromName
>>     module = resolve_name(addr.module)
>>   File "/usr/lib/python2.7/dist-packages/nose/util.py", line 312, in
>> resolve_name
>>     module = __import__('.'.join(parts_copy))
>>   File
>> "/tmp/buildd/matplotlib-1.5.0~rc2/build/lib.linux-x86_64-2.7/matplotlib/tests/test_backend_qt4.py",
>> line 19, in <module>
>>     from matplotlib.backends.qt_compat import QtCore
>>   File
>> "/tmp/buildd/matplotlib-1.5.0~rc2/build/lib.linux-x86_64-2.7/matplotlib/backends/qt_compat.py",
>> line 144, in <module>
>>     raise RuntimeError("PyQt{4,5} bindings found despite sip importing\n"
>> RuntimeError: PyQt{4,5} bindings found despite sip importing
>> Please install PyQt4 or PyQt5, uninstall sip or explicitly set the
>> pyside backend.
>> ```
>>
>> I'm not sure I understand what it's trying to say. there are indeed by
>> Qt4 and Qt5 available as long as Sip (as it's a dependency of PyQt5),
>> so what is the problem there? note it worked with 1.4.x with these
>> packges set.
>>
>> ```
>> ERROR: test suite for <class
>> 'matplotlib.sphinxext.tests.test_tinypages.TestTinyPages'>
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 209, in run
>>     self.setUp()
>>   File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 292, in
>> setUp
>>     self.setupContext(ancestor)
>>   File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 315, in
>> setupContext
>>     try_run(context, names)
>>   File "/usr/lib/python2.7/dist-packages/nose/util.py", line 471, in
>> try_run
>>     return func()
>>   File
>> "/tmp/buildd/matplotlib-1.5.0~rc2/build/lib.linux-x86_64-2.7-pydebug/matplotlib/sphinxext/tests/test_tinypages.py",
>> line 58, in setup_class
>>     out, err))
>> RuntimeError: sphinx-build failed with stdout:
>> Running Sphinx v1.3.1
>> making output directory...
>>
>> stderr:
>>
>> Extension error:
>> Could not import extension matplotlib.sphinxext.plot_directive
>> (exception: No module named _path)
>> ```
>>
>> I dont know what this _path should be imported  from, as after
>> grepping a bit I was not able to identify that.
>>
>> let me know if you want me to report them as bugs or this email is fine.
>>
>>
>> On Sun, Oct 4, 2015 at 12:47 PM, Sandro Tosi <morph at debian.org> wrote:
>> > On Sun, Oct 4, 2015 at 3:43 AM, Thomas Caswell <tcaswell at gmail.com>
>> wrote:
>> >> It is a hard dependency, but it is only a few hundred line python file.
>> >
>> > that's ok, I'll get it packaged and will ask to be fast tracked for
>> acceptance.
>> >
>> >> If getting it in as a top-level debian package is not possible, it
>> should
>> >> not be too hard to vendor it.
>> >>
>> >> My preference would be if you could handle this as a debian-specific
>> >> vendoring, but if this is really a blocker for debian (at it's
>> down-stream
>> >> ecosystem) we can work something out up upstream.
>> >>
>> >> When we started working on cycler part of the discussion was to split
>> it off
>> >> because down-stream packagers liked to split things up!
>> >
>> > hehe, yeah we usually do (even though it sometimes makes our own lives
>> > harder ;) )
>> >
>> > thanks for the quick reply!
>> >
>> >>
>> >> Tom
>> >>
>> >> On Sat, Oct 3, 2015 at 8:02 PM Sandro Tosi <morph at debian.org> wrote:
>> >>>
>> >>> Hey! I'm working to get this into Debian, so I'd like to understand
>> >>> how strong the dependency against cycler is: is there a way to opt-out
>> >>> from it at the moment? We dont have it already available, and avoiding
>> >>> that dependency will help us the mpl in Debian (which in turn will
>> >>> help Debian migrate to python3.5)
>> >>>
>> >>> Thanks!
>> >>>
>> >>> On Sat, Oct 3, 2015 at 12:04 AM, Thomas Caswell <tcaswell at gmail.com>
>> >>> wrote:
>> >>> > Hey folks,
>> >>> >
>> >>> > I have tagged v1.5.0rc2 and created a v1.5.x branch on upstream.
>> >>> > Hopefully
>> >>> > the new conda packages will be available on `-c conda-forge` within
>> the
>> >>> > next
>> >>> > day or so.
>> >>> >
>> >>> > Please open any new PRs targetted for 1.5.0 against the v1.5.x
>> branch
>> >>> > and
>> >>> > remember to cherry pick the few open PRs for 1.5.0 back to 1.5.x
>> when
>> >>> > you
>> >>> > merge them (or ping me to do it).
>> >>> >
>> >>> > Feel free to begin merging new features into master again.
>> >>> >
>> >>> > In addition to the normal release notes we should plan to also write
>> >>> > several
>> >>> > blog posts for the numfocus blog.  I think it would be good to have
>> a
>> >>> > post
>> >>> > for at least each of
>> >>> >   - property cycling
>> >>> >   - labeled data plotting
>> >>> >   - auto-redraw
>> >>> >   - %matplotlib notebook
>> >>> >   - the new color maps
>> >>> >   - the style module + new style sheets
>> >>> >
>> >>> > Any volunteers to write those?
>> >>> >
>> >>> > Tom
>> >>> >
>> >>> > _______________________________________________
>> >>> > Matplotlib-devel mailing list
>> >>> > Matplotlib-devel at python.org
>> >>> > https://mail.python.org/mailman/listinfo/matplotlib-devel
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Sandro Tosi (aka morph, morpheus, matrixhasu)
>> >>> My website: http://matrixhasu.altervista.org/
>> >>> Me at Debian: http://wiki.debian.org/SandroTosi
>> >
>> >
>> >
>> > --
>> > Sandro Tosi (aka morph, morpheus, matrixhasu)
>> > My website: http://matrixhasu.altervista.org/
>> > Me at Debian: http://wiki.debian.org/SandroTosi
>>
>>
>>
>> --
>> Sandro Tosi (aka morph, morpheus, matrixhasu)
>> My website: http://matrixhasu.altervista.org/
>> Me at Debian: http://wiki.debian.org/SandroTosi
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20151004/3cd04bde/attachment.html>


More information about the Matplotlib-devel mailing list