Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 125A4E00D2F; Thu, 2 Jun 2016 09:31:30 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, WEIRD_PORT autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.24 listed in list.dnswl.org] * 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 84603E00D13 for ; Thu, 2 Jun 2016 09:31:23 -0700 (PDT) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 02 Jun 2016 09:31:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,407,1459839600"; d="scan'208";a="979599245" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by fmsmga001.fm.intel.com with ESMTP; 02 Jun 2016 09:31:23 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.97]) by IRSMSX103.ger.corp.intel.com ([169.254.3.240]) with mapi id 14.03.0248.002; Thu, 2 Jun 2016 17:31:21 +0100 From: "Barros Pena, Belen" To: "toaster@yoctoproject.org" Thread-Topic: python3 issues Thread-Index: AQHRvOwyOnOTWEyIK06qwtNWSy4O/Q== Date: Thu, 2 Jun 2016 16:31:21 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.4.160422 x-originating-ip: [10.252.13.156] MIME-Version: 1.0 Cc: "Avery, Brian" , "Bartosh, Eduard" Subject: python3 issues X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2016 16:31:30 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <0393341A3B0E674E86C0F1B72F20D0BF@intel.com> Content-Transfer-Encoding: quoted-printable I was asked to look at the branch that makes sure Toaster works with python 3 http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=3Ded/oe/pytho= n3 I've found a few issues. I am not a 100% sure if they are this branch only or if they also happen in master (python3 changes apparently have been merged), but I thought I'd share early. Here comes the list: * We need to remove old releases from toasterconf.json, since the change to Python 3 means we can no longer support those. Ed is already on the case, I believe * Image artifact downloads don't seem to be working (all other artifacts are fine) Environment: Request Method: GET Request URL:=20 http://icarus.isw.intel.com:8000/toastergui/build/4/artifact/imagefile/id/1 Django Version: 1.8.13 Python Version: 3.4.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.humanize', 'bldcollector', 'toastermain', 'bldcontrol', 'orm', 'toastergui') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File=20 "/home/belen/.local/lib/python3.4/site-packages/django/core/handlers/base.p y" in get_response 132. response =3D wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in build_artifact 2991. response =3D HttpResponse(fsock, content_type =3D content_type) File=20 "/home/belen/.local/lib/python3.4/site-packages/django/http/response.py" in __init__ 342. self.content =3D content File=20 "/home/belen/.local/lib/python3.4/site-packages/django/http/response.py" in content 363. value =3D b''.join(self.make_bytes(chunk) for chunk in value) File=20 "/home/belen/.local/lib/python3.4/site-packages/django/http/response.py" in 363. value =3D b''.join(self.make_bytes(chunk) for chunk in value) File "/usr/lib/python3.4/codecs.py" in decode 319. (result, consumed) =3D self._buffer_decode(data, self.errors= , final) Exception Type: UnicodeDecodeError at /toastergui/build/4/artifact/imagefile/id/1 Exception Value: 'utf-8' codec can't decode byte 0xdb in position 1032: invalid continuation byte =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * Filters in the tasks page (build information) don't seem to be working. All of them return an error Environment: Request Method: GET Request URL:=20 http://icarus.isw.intel.com:8000/toastergui/build/4/tasks/?orderby=3Dorder%= 3A %2B&count=3D25&filter=3Dtask_executed%3A1&page=3D1&search=3D Django Version: 1.8.13 Python Version: 3.4.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.humanize', 'bldcollector', 'toastermain', 'bldcontrol', 'orm', 'toastergui') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File=20 "/home/belen/.local/lib/python3.4/site-packages/django/core/handlers/base.p y" in get_response 132. response =3D wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in tasks 1263. return tasks_common(request, build_id, 'tasks', '') File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in tasks_common 1066. queryset =3D _get_queryset(Task, queryset_all, filter_string, search_term, ordering_string, 'order') File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in _get_queryset 354. filter_query =3D _get_filtering_query(filter_string) File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in _get_filtering_query 271. x =3D __get_q_for_val(k, val) Exception Type: NameError at /toastergui/build/4/tasks/ Exception Value: name 'k' is not defined =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D * The variables table returns an error Environment: Request Method: GET Request URL:=20 http://icarus.isw.intel.com:8000/toastergui/build/4/configvars?orderby=3Dva= ri able_name%3A%2B&page=3D1&filter=3Ddescription__regex%3A.%2B&count=3D100 Django Version: 1.8.13 Python Version: 3.4.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.staticfiles', 'django.contrib.humanize', 'bldcollector', 'toastermain', 'bldcontrol', 'orm', 'toastergui') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') Traceback: File=20 "/home/belen/.local/lib/python3.4/site-packages/django/core/handlers/base.p y" in get_response 132. response =3D wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in configvars 1419. queryset =3D _get_queryset(Variable, queryset, filter_string, search_term, ordering_string, 'variable_name') File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in _get_queryset 354. filter_query =3D _get_filtering_query(filter_string) File "/home/belen/toaster-python3/bitbake/lib/toaster/toastergui/views.py" in _get_filtering_query 271. x =3D __get_q_for_val(k, val) Exception Type: NameError at /toastergui/build/4/configvars Exception Value: name 'k' is not defined =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D * In the custom image details page, the add | remove filter is not working: the filtering does not happen * The all projects table is showing builds in progress information (builds in progress information should not appear in any tables) * My builds for custom images don't seem to be working. I start them, but I never see any progress in the UI. The toaster_ui.log doesn't show them at all, so I am kind of confused. I think that's it so far. Cheers Bel=E9n