Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Device.get_attribute_config() requires byte-string #361

Closed
dschick opened this issue Jun 3, 2020 · 1 comment · Fixed by #360
Closed

Device.get_attribute_config() requires byte-string #361

dschick opened this issue Jun 3, 2020 · 1 comment · Fixed by #360

Comments

@dschick
Copy link

dschick commented Jun 3, 2020

Hi,

I encountered a Segmentation Fault when trying to call the get_attribute_config() method within a Device Class using native Py3 unicode strings.
See more details here: https://www.tango-controls.org/community/forum/c/development/python/get_attribute_config/
The workaround is to hand a byte-string instead of a native Py3 unicode string to the method, so
get_attribute_config(b"attribute_name") instead of get_attribute_config("attribute_name")

I am using PyTango 9.2.5 but it seems also to occur for PyTango 9.3.2.

@ajoubertza
Copy link
Member

Thanks @dschick. I made a fix for this in the linked PR.

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

Successfully merging a pull request may close this issue.

2 participants