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.

Unknown expected types for SVGFigure parameters

See original GitHub issue

The recently released 0.3.2 has resulted in the following (truncated) traceback:

  File "/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/viz/utils.py", line 360, in compose_view
    fig = SVGFigure(width, heights[:nsvgs].sum())
  File "/usr/local/miniconda/lib/python3.7/site-packages/svgutils/transform.py", line 242, in __init__
    self._width = width.value
AttributeError: 'numpy.int64' object has no attribute 'value'

Looking at the docs for SVGFigure, a numeric value seems appropriate. I’m not sure what sort of object with a .value attribute is expected to fix our invocation, so currently I’m pinning 0.3.1.

Issue introduced in #27.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
effigiescommented, Jan 11, 2021

Thanks, @mgxd. @btel to be clear, he’s working on the same project that I am.

1reaction
mgxdcommented, Jan 11, 2021

@btel I can confirm #58 fixes the problem - thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generic type parameters don't work with Union types #2984
Expected behavior. No type error should be raised, and spam s type should be recognized as str , not Unknown .
Read more >
Why won't the axes on my D3 SVG figure update?
I have a simple D3 scatterplot that I switch among displaying several different attributes of my data, but while I can get the...
Read more >
Test.Assert Class - YUI Library
The Assert object provides functions to test JavaScript values against known and expected results. Whenever a comparison (assertion) fails, ...
Read more >
NEWS
FIXED: umxSummary works with umxSuperModel now that paths have types. ... IMPROVED: umxPower parameters ==1 for power search with fixed n ...
Read more >
DNA methylation at enhancers identifies distinct breast cancer ...
Our results reveal a hitherto unknown connection between the ... in a specific segment type over the expected frequency of CpGs from the ......
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