question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sometimes, supress_warnings misses one of its attributes

See original GitHub issue

When trying to compile skimage, I sometimes get the following error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/transform/tests/test_integral.py", line 46, in test_vectorized_integrate
    assert_equal(expected, integrate(s, r0, c0, r1, c1))  # test deprecated
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/transform/integral.py", line 86, in integrate
    warn("The syntax 'integrate(ii, r0, c0, r1, c1)' is "
  File "/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/_shared/_warnings.py", line 16, in warn
    warnings.warn(message, stacklevel=stacklevel)
  File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line 2199, in _showwarning
    self._orig_show(message, category, filename, lineno,
AttributeError: 'suppress_warnings' object has no attribute '_orig_show'

I assume this is a numpy problem, but I am not sure.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:60 (50 by maintainers)

github_iconTop GitHub Comments

1reaction
sandrotosicommented, Jan 6, 2017

I’ve uploaded 1.12.0rc2 (which contains https://github.com/numpy/numpy/pull/8427) to debian and rebuilt 3 times skimage (a slightly old version of teh debian package, without the test suite completely disabled) and all the times it built succesfully.

thanks a lot guys for working on this during the holidays!

Now, any plans for the final 1.12.0 release? 😃

0reactions
charriscommented, May 7, 2017

Fixed by #8421.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the list of valid @SuppressWarnings warning names ...
It depends on your IDE or compiler. Here is a list for Eclipse Galileo: all to suppress all warnings; boxing to suppress warnings...
Read more >
Where is the documentation on how to suppress each kind of ...
For instance, I use a logger for my java web server, but I want to output an error and quit if the configuration...
Read more >
all that jazz - List of SuppressWarnings arguments
I hate compiler warnings showing in my IDE. It's messy, and it usually indicates that something is bad. But not always. Sometimes, when...
Read more >
The @SuppressWarnings Annotation in Java - GeeksforGeeks
Use of @SuppressWarnings is to suppress or ignore warnings coming from the compiler, i.e., the compiler will ignore warnings if any for that ......
Read more >
Warning Options (Using the GNU Compiler Collection (GCC))
3.8 Options to Request or Suppress Warnings ... Warn when a declaration of a function is missing one or more attributes that a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found