Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'endswith' #12

Open
thierryjanssens opened this issue Jun 13, 2019 · 1 comment
Open

Comments

@thierryjanssens
Copy link

Hi,

I run into the following error when I want to concatenate a bunch of svg files as follows

svg_stack.py --direction=v --margin=100 Figure\ S1.svg Figure\ S2.svg Figure\ S3.svg Figure\ S4.svg Figure\ S5.svg Figure\ S6.svg Figure\ S7.svg Figure\ S8.svg Figure\ S9.svg Figure\ S10.svg Figure\ S11.svg Figure\ S12.svg Figure\ S13.svg Figure\ S14 Figure\ S15.svg Figure\ S16 > Figures_SI.svg
Traceback (most recent call last):
File "/home/.conda/envs/svg/bin/svg_stack.py", line 713, in
main()
File "/home/.conda/envs/svg/bin/svg_stack.py", line 706, in main
layout.addSVG(fname,alignment=AlignCenter)
File "/home/janssetk/.conda/envs/svg/bin/svg_stack.py", line 632, in addSVG
svg_file = SVGFile(svg_file)
File "/home/.conda/envs/svg/bin/svg_stack.py", line 181, in init
height, height_units = get_unit_attr(self._root.get('height'))
File "/home/.conda/envs/svg/bin/svg_stack.py", line 44, in get_unit_attr
if value.endswith(unit_name):
AttributeError: 'NoneType' object has no attribute 'endswith'

@astraw
Copy link
Owner

astraw commented Mar 13, 2021

(Apologies for my delay.)

I think this may have been fixed by #14. Can you check this by running on the current main branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants