{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/4379","repository_url":"https://api.github.com/repos/kivy/kivy","labels_url":"https://api.github.com/repos/kivy/kivy/issues/4379/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/4379/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/4379/events","html_url":"https://github.com/kivy/kivy/issues/4379","id":159518609,"number":4379,"title":"Crash with unicode_literals: expected str, got unicode","user":{"login":"Fak3","id":991641,"avatar_url":"https://avatars0.githubusercontent.com/u/991641?v=4","gravatar_id":"","url":"https://api.github.com/users/Fak3","html_url":"https://github.com/Fak3","followers_url":"https://api.github.com/users/Fak3/followers","following_url":"https://api.github.com/users/Fak3/following{/other_user}","gists_url":"https://api.github.com/users/Fak3/gists{/gist_id}","starred_url":"https://api.github.com/users/Fak3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fak3/subscriptions","organizations_url":"https://api.github.com/users/Fak3/orgs","repos_url":"https://api.github.com/users/Fak3/repos","events_url":"https://api.github.com/users/Fak3/events{/privacy}","received_events_url":"https://api.github.com/users/Fak3/received_events","type":"User","site_admin":false},"labels":[{"id":712641310,"url":"https://api.github.com/repos/kivy/kivy/labels/stale","name":"stale","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-06-09T22:01:58Z","updated_at":"2018-04-20T11:15:54Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi. I am using current master kivy version and python2.7 on linux. I am experiencing a crash with following error:\n\n```\n Traceback (most recent call last):\n   File \"mmain0.py\", line 27, in <module>\n     MyApp().run()\n   File \"/home/u1/.virtualenvs/rest/lib/python2.7/site-packages/kivy/app.py\", line 802, in run\n     root = self.build()\n   File \"mmain0.py\", line 24, in build\n     return Label()\n   File \"/home/u1/.virtualenvs/rest/lib/python2.7/site-packages/kivy/uix/label.py\", line 275, in __init__\n     super(Label, self).__init__(**kwargs)\n   File \"/home/u1/.virtualenvs/rest/lib/python2.7/site-packages/kivy/uix/widget.py\", line 345, in __init__\n     Builder.apply(self, ignored_consts=self._kwargs_applied_init)\n   File \"/home/u1/.virtualenvs/rest/lib/python2.7/site-packages/kivy/lang/builder.py\", line 447, in apply\n     self._apply_rule(widget, rule, rule, ignored_consts=ignored_consts)\n   File \"/home/u1/.virtualenvs/rest/lib/python2.7/site-packages/kivy/lang/builder.py\", line 492, in _apply_rule\n     rule.create_missing(widget)\n   File \"/home/u1/.virtualenvs/rest/lib/python2.7/site-packages/kivy/lang/parser.py\", line 281, in create_missing\n     widget.create_property(name, value)\n TypeError: Argument 'name' has incorrect type (expected str, got unicode)\n```\n\nThis happens every time if an app has **from ____future____ import unicode_literals** in the beginning of the .py file and it has undefined property assignment in the kv language. As written in the docs, kivy should automatically create the ObjectProperty, but it crashes.\n\nExample app: \n\n```\n# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nfrom kivy.app import App\nfrom kivy.uix.label import Label\n\nfrom kivy.lang import Builder\n\n\nBuilder.load_string('''\n<Label>:\n    lol: True\n    text: 'Hello World'\n''')\n\n\nclass MyApp(App):\n    def build(self):\n        return Label()\n\nif __name__ == '__main__':\n    MyApp().run()\n```\n"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/383065081","html_url":"https://github.com/kivy/kivy/issues/4379#issuecomment-383065081","issue_url":"https://api.github.com/repos/kivy/kivy/issues/4379","id":383065081,"user":{"login":"kuzeyron","id":8863149,"avatar_url":"https://avatars0.githubusercontent.com/u/8863149?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzeyron","html_url":"https://github.com/kuzeyron","followers_url":"https://api.github.com/users/kuzeyron/followers","following_url":"https://api.github.com/users/kuzeyron/following{/other_user}","gists_url":"https://api.github.com/users/kuzeyron/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzeyron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzeyron/subscriptions","organizations_url":"https://api.github.com/users/kuzeyron/orgs","repos_url":"https://api.github.com/users/kuzeyron/repos","events_url":"https://api.github.com/users/kuzeyron/events{/privacy}","received_events_url":"https://api.github.com/users/kuzeyron/received_events","type":"User","site_admin":false},"created_at":"2018-04-20T11:15:54Z","updated_at":"2018-04-20T11:15:54Z","author_association":"NONE","body":"Remove `from __future__ import unicode_literals`."}}
{"actor":{"display_login":"kuzeyron"}}