{"action":"opened","issue":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1200","repository_url":"https://api.github.com/repos/sysrepo/sysrepo","labels_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1200/labels{/name}","comments_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1200/comments","events_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/1200/events","html_url":"https://github.com/sysrepo/sysrepo/issues/1200","id":337576021,"node_id":"MDU6SXNzdWUzMzc1NzYwMjE=","number":1200,"title":"Issue with sysrepo python plugin - error with dp_get_items_subscribe","user":{"login":"abubakarmuqaddas","id":15729874,"node_id":"MDQ6VXNlcjE1NzI5ODc0","avatar_url":"https://avatars2.githubusercontent.com/u/15729874?v=4","gravatar_id":"","url":"https://api.github.com/users/abubakarmuqaddas","html_url":"https://github.com/abubakarmuqaddas","followers_url":"https://api.github.com/users/abubakarmuqaddas/followers","following_url":"https://api.github.com/users/abubakarmuqaddas/following{/other_user}","gists_url":"https://api.github.com/users/abubakarmuqaddas/gists{/gist_id}","starred_url":"https://api.github.com/users/abubakarmuqaddas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abubakarmuqaddas/subscriptions","organizations_url":"https://api.github.com/users/abubakarmuqaddas/orgs","repos_url":"https://api.github.com/users/abubakarmuqaddas/repos","events_url":"https://api.github.com/users/abubakarmuqaddas/events{/privacy}","received_events_url":"https://api.github.com/users/abubakarmuqaddas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T15:59:31Z","updated_at":"2018-07-02T15:59:31Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI am using the oven.yang model as an example to learn sysrepo. However I am using a custom python script, using the python API of sysrepo instead of the 'c' code for the oven example. I am using the docker sysrepo-netopeer2 image. I am having some issues \r\n\r\nSteps:\r\n\r\n1. Installed the yang model: oven.yang using:\r\n`sysrepoctl --install --yang=oven.yang`\r\n2. Next, ran the python script to connect to sysrepo. This script is attached (script.txt).\r\n```\r\nroot@f1926a3ef0f1:/workspace/server# python3 daemon2.py\r\n```\r\n3. Then, I followed the tutorial on [this page ](http://www.sysrepo.org/static/doc/html/start_page.html), to execute NETCONF commands using the netopeer2-cli:\r\n```\r\nroot@f1926a3ef0f1:/workspace# netopeer2-cli\r\n> connect --login=netop\r\nInteractive SSH Authentication\r\nType your password:\r\nPassword:\r\n>\r\n```\r\n4. I execute the following command to update \r\n`> get --filter-xpath /oven:*`\r\n\r\n    This terminates the python script and gives the following error:\r\n```\r\nterminate called after throwing an instance of 'std::runtime_error'\r\n  what():  Python callback dp_get_items failed.\r\n```\r\nPlease inform how this error can be avoided.\r\n[oven.yang.txt](https://github.com/sysrepo/sysrepo/files/2155771/oven.yang.txt)\r\n[script.txt](https://github.com/sysrepo/sysrepo/files/2155893/script.txt)\r\n"}}
{"actor":{"display_login":"abubakarmuqaddas"}}