From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from muon.bsdio.com (muon.bsdio.com [65.103.231.193]) by mx.groups.io with SMTP id smtpd.web10.1317.1573843415457729389 for ; Fri, 15 Nov 2019 10:43:35 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: bsdio.com, ip: 65.103.231.193, mailfrom: rebecca@bsdio.com) Received: from muon.bsdio.com (localhost [127.0.0.1]) by muon.bsdio.com (Postfix) with ESMTP id 5B22F8D2B2 for ; Fri, 15 Nov 2019 11:46:14 -0700 (MST) Received: from muon.bsdio.com ([127.0.0.1]) by muon.bsdio.com (muon.bsdio.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id o1wf5hr4Bjup for ; Fri, 15 Nov 2019 11:46:13 -0700 (MST) Received: from [10.0.10.120] (unknown [10.0.10.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by muon.bsdio.com (Postfix) with ESMTPSA for ; Fri, 15 Nov 2019 11:46:13 -0700 (MST) To: devel@edk2.groups.io From: rebecca@bsdio.com Subject: Instructions for running EDK2 CI on an Ubuntu system? ("System.TypeLoadException: Failure has occurred while loading a type.") Message-ID: <8e853177-1dd6-55a8-f48c-3dcb7190fa01@bsdio.com> Date: Fri, 15 Nov 2019 11:43:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Is there any guide to getting the CI system (e.g. .pytool/CISettings.py)=20 working on an Ubuntu system? I ran "pip install -r pip-requirements.txt", then installed mono-runtime=20 to get stuart_setup working, and have then installed=20 libmono-system-componentmodel-composition4.0-cil,=20 libmono-system-componentmodel-dataannotations4.0-cil,=20 libmono-system-net-http4.0-cil, libmono-windowsbase4.0-cil,=20 libmono-microsoft-build-utilities-v4.0-4.0-cil,=20 libmono-system-xml-linq4.0-cil, libmono-system-io-compression4.0-cil,=20 libmono-system-data-services-client4.0-cil, and=20 libmono-system-servicemodel4.0a-cil =C2=A0to try and get stuart_update working, but after all that have run = into=20 the following error: DEBUG - Cleaning dependency directory for 'mu_nasm'... DEBUG - Getting host info for host: uname_result(system=3D'Linux',=20 node=3D'photon', release=3D'5.3.0-23-generic', version=3D'#25-Ubuntu SMP = Tue=20 Nov 12 09:22:33 UTC 2019', machine=3D'x86_64', processor=3D'x86_64') INFO - Cmd to run is: mono=20 /home/bcran/.local/lib/python3.7/site-packages/edk2toolext/bin/NuGet.exe=20 locals global-packages -list INFO - ------------------------------------------------ INFO - --------------Cmd Output Starting--------------- INFO - ------------------------------------------------ INFO - Failure has occurred while loading a type. INFO - System.TypeLoadException: Failure has occurred while loading a typ= e. INFO -=C2=A0=C2=A0 at NuGet.CommandLine.CommandLineParser.ExtractOptions=20 (NuGet.CommandLine.ICommand command,=20 System.Collections.Generic.IEnumerator`1[T] argsEnumerator) [0x0013a] in=20 :0 INFO -=C2=A0=C2=A0 at NuGet.CommandLine.CommandLineParser.ParseCommandLin= e=20 (System.Collections.Generic.IEnumerable`1[T] commandLineArgs) [0x00043]=20 in :0 INFO -=C2=A0=C2=A0 at NuGet.CommandLine.Program.MainCore (System.String=20 workingDirectory, System.String[] args) [0x00130] in=20 :0 INFO - ------------------------------------------------ INFO - --------------Cmd Output Finished--------------- INFO - --------- Running Time (mm:ss): 00:00 ---------- INFO - ------------------------------------------------ Traceback (most recent call last): =C2=A0 File "/home/bcran/.local/bin/stuart_update", line 8, in =C2=A0=C2=A0=C2=A0 sys.exit(main()) =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/invocables/ed= k2_update.py",=20 line 122, in main =C2=A0=C2=A0=C2=A0 Edk2Update().Invoke() =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/base_abstract= _invocable.py",=20 line 139, in Invoke =C2=A0=C2=A0=C2=A0 retcode =3D self.Go() =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/invocables/ed= k2_update.py",=20 line 92, in Go =C2=A0=C2=A0=C2=A0 (build_env_old, shell_env_old, _) =3D self.PerformUpd= ate() =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/invocables/ed= k2_update.py",=20 line 62, in PerformUpdate =C2=A0=C2=A0=C2=A0 (success, failure) =3D=20 self_describing_environment.UpdateDependencies(ws_root, scopes) =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/environment/s= elf_describing_environment.py",=20 line 294, in UpdateDependencies =C2=A0=C2=A0=C2=A0 return build_env.update_extdeps(shell_env) =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/environment/s= elf_describing_environment.py",=20 line 205, in update_extdeps =C2=A0=C2=A0=C2=A0 extdep.fetch() =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/environment/e= xtdeptypes/nuget_dependency.py",=20 line 162, in fetch =C2=A0=C2=A0=C2=A0 if self._fetch_from_cache(package_name): =C2=A0 File=20 "/home/bcran/.local/lib/python3.7/site-packages/edk2toolext/environment/e= xtdeptypes/nuget_dependency.py",=20 line 95, in _fetch_from_cache =C2=A0=C2=A0=C2=A0 if not os.path.isdir(NugetDependency.global_cache_pat= h): =C2=A0 File "/usr/lib/python3.7/genericpath.py", line 42, in isdir =C2=A0=C2=A0=C2=A0 st =3D os.stat(s) TypeError: stat: path should be string, bytes, os.PathLike or integer,=20 not NoneType --=20 Rebecca Cran