Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

AttributeError: 'NoneType' object has no attribute 'value' #2

Closed
Earnestly opened this issue Jun 25, 2018 · 2 comments
Closed

AttributeError: 'NoneType' object has no attribute 'value' #2

Earnestly opened this issue Jun 25, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@Earnestly
Copy link

Hi, I've attempted to package termtosvg with the following versions in play:

However when attempting to run the command I am experiencing this error:

% termtosvg
Recording started, enter "exit" command or Control-D to end
Traceback (most recent call last):
  File "/usr/bin/termtosvg", line 11, in <module>
    load_entry_point('termtosvg==0.2.1', 'console_scripts', 'termtosvg')()
  File "/usr/lib/python3.6/site-packages/termtosvg/__main__.py", line 134, in main
    columns, lines, theme = term.get_configuration(output_fileno)
  File "/usr/lib/python3.6/site-packages/termtosvg/term.py", line 340, in get_configuration
    xresources_str = _get_xresources()
  File "/usr/lib/python3.6/site-packages/termtosvg/term.py", line 360, in _get_xresources
    return data.value.decode('utf-8')
AttributeError: 'NoneType' object has no attribute 'value'
@nbedos nbedos added the bug Something isn't working label Jun 25, 2018
@nbedos
Copy link
Owner

nbedos commented Jun 25, 2018

Hey man, thanks for the report.

I did not realize get_full_property from Xlib could return None. I've released a new version which should fix this crash:

pip install termtosvg==0.2.2

@Earnestly
Copy link
Author

Seems good now, thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants