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

New bug when starting "Refine" #32

Open
paljna opened this issue Jul 5, 2021 · 0 comments
Open

New bug when starting "Refine" #32

paljna opened this issue Jul 5, 2021 · 0 comments

Comments

@paljna
Copy link

paljna commented Jul 5, 2021

New bug on UBUNTU

Traceback (most recent call last):
File "/home/labcrescita/.local/lib/python3.9/site-packages/pyxrd/refinement/controllers/refinement_controller.py", line 59, get_pb(column=<treeview_tools.PyXRDTreeViewColumn object at 0x...treeview_tools+PyXRDTreeViewColumn at 0xa8d71a0)>, cell=<Gtk.CellRendererPixbuf object at 0x7fdbb7abecc0 (GtkCellRendererPixbuf at 0xa4ef590)>, model=<object_tree_store.ObjectTreeStore object at 0x7...+object_tree_store+ObjectTreeStore at 0xa8b8120)>, itr=<Gtk.TreeIter object at 0x7fdbb7e1ae20 (GtkTreeIter at 0xa8b8b00)>, user_data=())
if not hasattr(ref_prop, "pb") or not ref_prop.pb:
ref_prop.pb = create_pb_from_mathtext(
ref_prop.title,
File "/home/labcrescita/.local/lib/python3.9/site-packages/pyxrd/generic/mathtext_support.py", line 44, create_pb_from_mathtext(text='Chlorite', align='left', weight='medium', color='b', style='normal')
parts, fontsize = _handle_customs(text)
variables: {'parts': (None, []), 'fontsize': (None, []), '_handle_customs': ('global', <function _handle_customs at 0x7fdbe91a54c0>), 'text': ('local', 'Chlorite')}
File "/home/labcrescita/.local/lib/python3.9/site-packages/pyxrd/generic/mathtext_support.py", line 113, _handle_customs(text='Chlorite')
def _handle_customs(text):
text = text.decode('utf-8')
variables: {'text': ('local', 'Chlorite')}
AttributeError: 'str' object has no attribute 'decode'

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

1 participant