acloud fails on Ubuntu 20.04

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

acloud fails on Ubuntu 20.04

Dean Wheatley-2
Irrespective of running python version (2.7.18rc1 or 3.8.2) on Ubuntu 20.04, acloud fails as below:

$ acloud setup --host

Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  

Traceback (most recent call last):
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 440, in <module>
    EXIT_CODE, EXCEPTION_STACKTRACE = main(sys.argv[1:])
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 419, in main
    setup.Run(args)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/setup.py", line 73, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/base_task_runner.py", line 97, in Run
    if self.ShouldRun() or force_setup:
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/host_setup_runner.py", line 67, in ShouldRun
    if not utils.IsSupportedPlatform():
  File "/tmp/Soong.python_ym5s7lig/acloud/internal/lib/utils.py", line 1218, in IsSupportedPlatform
    dist = platform.linux_distribution()[0]



Why does acloud seemingly always use the latest python version on the system (3.8.2 in my case) rather than the one set to local python? (platform.linux_distribution API has been removed in Python 3.8)

Building and running acloud-dev worked around this issue, but I needed to ensure that python2 was the active version on my system.




--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/fb255dcf-acf7-4a29-a0fc-3154e446cc35%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: acloud fails on Ubuntu 20.04

Ismael Vidal
I have the same problem on Ubuntu 20.04. :(

On Tuesday, June 2, 2020 at 12:35:10 PM UTC-4, Dean Wheatley wrote:
Irrespective of running python version (2.7.18rc1 or 3.8.2) on Ubuntu 20.04, acloud fails as below:

$ acloud setup --host

Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  

Traceback (most recent call last):
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 440, in <module>
    EXIT_CODE, EXCEPTION_STACKTRACE = main(sys.argv[1:])
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 419, in main
    setup.Run(args)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/setup.py", line 73, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/base_task_runner.py", line 97, in Run
    if self.ShouldRun() or force_setup:
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/host_setup_runner.py", line 67, in ShouldRun
    if not utils.IsSupportedPlatform():
  File "/tmp/Soong.python_ym5s7lig/acloud/internal/lib/utils.py", line 1218, in IsSupportedPlatform
    dist = platform.linux_distribution()[0]



Why does acloud seemingly always use the latest python version on the system (3.8.2 in my case) rather than the one set to local python? (platform.linux_distribution API has been removed in Python 3.8)

Building and running acloud-dev worked around this issue, but I needed to ensure that python2 was the active version on my system.




--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/27367f9b-c0d7-4d85-8a0a-6c0482f7b669o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: acloud fails on Ubuntu 20.04

Glenn Kasten
Please file a bug here:

https://source.android.com/setup/contribute/report-bugs

On Thursday, June 18, 2020 at 7:32:05 AM UTC-7, Ismael Vidal wrote:
I have the same problem on Ubuntu 20.04. :(

On Tuesday, June 2, 2020 at 12:35:10 PM UTC-4, Dean Wheatley wrote:
Irrespective of running python version (2.7.18rc1 or 3.8.2) on Ubuntu 20.04, acloud fails as below:

$ acloud setup --host

Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  

Traceback (most recent call last):
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 440, in <module>
    EXIT_CODE, EXCEPTION_STACKTRACE = main(sys.argv[1:])
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 419, in main
    setup.Run(args)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/setup.py", line 73, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/base_task_runner.py", line 97, in Run
    if self.ShouldRun() or force_setup:
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/host_setup_runner.py", line 67, in ShouldRun
    if not utils.IsSupportedPlatform():
  File "/tmp/Soong.python_ym5s7lig/acloud/internal/lib/utils.py", line 1218, in IsSupportedPlatform
    dist = platform.linux_distribution()[0]



Why does acloud seemingly always use the latest python version on the system (3.8.2 in my case) rather than the one set to local python? (platform.linux_distribution API has been removed in Python 3.8)

Building and running acloud-dev worked around this issue, but I needed to ensure that python2 was the active version on my system.




--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/8d35a288-8be5-4623-8032-637b61851601o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: acloud fails on Ubuntu 20.04

Dean Wheatley-2
https://issuetracker.google.com/issues/159361839

On Friday, June 19, 2020 at 12:45:58 AM UTC+10, Glenn Kasten wrote:
Please file a bug here:

<a href="https://source.android.com/setup/contribute/report-bugs" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://source.android.com/setup/contribute/report-bugs&#39;;return true;" onclick="this.href=&#39;https://source.android.com/setup/contribute/report-bugs&#39;;return true;">https://source.android.com/setup/contribute/report-bugs

On Thursday, June 18, 2020 at 7:32:05 AM UTC-7, Ismael Vidal wrote:
I have the same problem on Ubuntu 20.04. :(

On Tuesday, June 2, 2020 at 12:35:10 PM UTC-4, Dean Wheatley wrote:
Irrespective of running python version (2.7.18rc1 or 3.8.2) on Ubuntu 20.04, acloud fails as below:

$ acloud setup --host

Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  

Traceback (most recent call last):
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 440, in <module>
    EXIT_CODE, EXCEPTION_STACKTRACE = main(sys.argv[1:])
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 419, in main
    setup.Run(args)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/setup.py", line 73, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/base_task_runner.py", line 97, in Run
    if self.ShouldRun() or force_setup:
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/host_setup_runner.py", line 67, in ShouldRun
    if not utils.IsSupportedPlatform():
  File "/tmp/Soong.python_ym5s7lig/acloud/internal/lib/utils.py", line 1218, in IsSupportedPlatform
    dist = platform.linux_distribution()[0]



Why does acloud seemingly always use the latest python version on the system (3.8.2 in my case) rather than the one set to local python? (platform.linux_distribution API has been removed in Python 3.8)

Building and running acloud-dev worked around this issue, but I needed to ensure that python2 was the active version on my system.




--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/aa0be586-07f4-4294-b636-af761608c3cao%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: acloud fails on Ubuntu 20.04

Dean Wheatley-2
Here's a set of commands which worked on my Ubuntu 20.04 workstation to launch cuttlefish. YMMV.

# Check python major version is 2 due to incompatibility in acloud-dev which python3
python_major_ver=$(python -V 2>&1 | sed s/Python\ // | cut -c 1)
if [ -z "${python_major_ver}" ]; then
  echo "no Python installed. Exiting"
  exit 1
fi
if [ ${python_major_ver} -ne 2 ]; then
  echo "Python version is "${python_major_version} " but must be 2. Exiting"
  exit 1
fi

cd ../../../../..
. build/envsetup.sh
lunch aosp_cf_x86_phone-userdebug
m
# build and use acloud-dev due to acloud python errors on Ubuntu 20.04
# (it uses python 3 even if python 2 version is active)
m acloud
# set memory to 2GB
# default 6GB fails to boot on Ubuntu 20.04 due to crosvm errors (see Launcher log)
acloud-dev create --yes --verbose --local-instance --local-image --hw-property memory:2g

On Saturday, June 20, 2020 at 1:29:50 AM UTC+10, Dean Wheatley wrote:
<a href="https://issuetracker.google.com/issues/159361839" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://issuetracker.google.com/issues/159361839&#39;;return true;" onclick="this.href=&#39;https://issuetracker.google.com/issues/159361839&#39;;return true;">https://issuetracker.google.com/issues/159361839

On Friday, June 19, 2020 at 12:45:58 AM UTC+10, Glenn Kasten wrote:
Please file a bug here:

<a href="https://source.android.com/setup/contribute/report-bugs" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://source.android.com/setup/contribute/report-bugs&#39;;return true;" onclick="this.href=&#39;https://source.android.com/setup/contribute/report-bugs&#39;;return true;">https://source.android.com/setup/contribute/report-bugs

On Thursday, June 18, 2020 at 7:32:05 AM UTC-7, Ismael Vidal wrote:
I have the same problem on Ubuntu 20.04. :(

On Tuesday, June 2, 2020 at 12:35:10 PM UTC-4, Dean Wheatley wrote:
Irrespective of running python version (2.7.18rc1 or 3.8.2) on Ubuntu 20.04, acloud fails as below:

$ acloud setup --host

Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  

Traceback (most recent call last):
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 440, in <module>
    EXIT_CODE, EXCEPTION_STACKTRACE = main(sys.argv[1:])
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 419, in main
    setup.Run(args)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/setup.py", line 73, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/base_task_runner.py", line 97, in Run
    if self.ShouldRun() or force_setup:
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/host_setup_runner.py", line 67, in ShouldRun
    if not utils.IsSupportedPlatform():
  File "/tmp/Soong.python_ym5s7lig/acloud/internal/lib/utils.py", line 1218, in IsSupportedPlatform
    dist = platform.linux_distribution()[0]



Why does acloud seemingly always use the latest python version on the system (3.8.2 in my case) rather than the one set to local python? (platform.linux_distribution API has been removed in Python 3.8)

Building and running acloud-dev worked around this issue, but I needed to ensure that python2 was the active version on my system.




--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/87fed542-0dba-4736-933c-ea3bc5abfbe4o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: acloud fails on Ubuntu 20.04

Elman Efendiyev
While using this set of commands, looks like acloud-dev trying to start,
but asking some password. I can'u understand what password it asking and
where to set it:


======================== console output start ========================
elman@lego:~/aosp$ acloud-dev create --yes --verbose --local-instance
--local-image --hw-property memory:2g

==================
Notice:
   We collect anonymous usage statistics in accordance with our Content
Licenses (https://source.android.com/setup/start/licenses), Contributor
License Agreement (https://opensource.google.com/docs/cla/), Privacy
Policy (https://policies.google.com/privacy) and Terms of Service
(https://policies.google.com/terms).
==================

2020-07-03 10:07:36,620 |INFO| acloud_main:364| Acloud version:
2020.07.03_local_build

2020-07-03 10:07:36,623 |INFO| utils:1224| Updated supported system and
dists: {'Linux': ['Ubuntu', 'ubuntu', 'Debian', 'debian']}
2020-07-03 10:07:36,623 |INFO| utils:1232| Linux[Ubuntu] is a supported
platform
2020-07-03 10:07:36,808 |INFO| utils:1224| Updated supported system and
dists: {'Linux': ['Ubuntu', 'ubuntu', 'Debian', 'debian']}
2020-07-03 10:07:36,808 |INFO| utils:1232| Linux[Ubuntu] is a supported
platform
Creating local AVD instance with the following details:
Image (local):
   /home/elman/aosp/out/target/product/vsoc_x86
hw config:
   cpu - 4
   ram - 2GB
   display - 720x1280 (320 DPI)


2020-07-03 10:07:36,938 |INFO| utils:1224| Updated supported system and
dists: {'Linux': ['Ubuntu', 'ubuntu', 'Debian', 'debian']}
2020-07-03 10:07:36,938 |INFO| utils:1232| Linux[Ubuntu] is a supported
platform
2020-07-03 10:07:36,938 |INFO| utils:1197| Checking if user is in
following groups: ['kvm', 'cvdnetwork']
2020-07-03 10:07:36,938 |INFO| utils:1203| missing group: kvm
2020-07-03 10:07:36,938 |INFO| utils:1203| missing group: cvdnetwork
Waiting for AVD(s) to boot up ...Password:
========================= console output end =========================


I tries every password I can think of, including empty one, but alvays
getting "Invalid password" message:


======================== console output start ========================
Invalid password.
Fail! (26s)
Total time:  (26s)


Device summary:
Fail in:
Can't launch cuttlefish AVD. Return code:1.
For more detail:
/tmp/acloud_cvd_temp/local-instance-1/cuttlefish_runtime/launcher.log

Encountered the following errors:
Can't launch cuttlefish AVD. Return code:1.
For more detail:
/tmp/acloud_cvd_temp/local-instance-1/cuttlefish_runtime/launcher.log
========================= console output end =========================


Could you please advise what is this password and where to set it?

Thanks!


On 20/06/2020 06:42, Dean Wheatley wrote:

> Here's a set of commands which worked on my Ubuntu 20.04 workstation to
> launch cuttlefish. YMMV.
>
> # Check python major version is 2 due to incompatibility in acloud-dev
> which python3
> python_major_ver=$(python -V 2>&1 | sed s/Python\ // | cut -c 1)
> if [ -z "${python_major_ver}" ]; then
>    echo "no Python installed. Exiting"
>    exit 1
> fi
> if [ ${python_major_ver} -ne 2 ]; then
>    echo "Python version is "${python_major_version} " but must be 2.
> Exiting"
>    exit 1
> fi
>
> cd ../../../../..
> . build/envsetup.sh
> lunch aosp_cf_x86_phone-userdebug
> m
> # build and use acloud-dev due to acloud python errors on Ubuntu 20.04
> # (it uses python 3 even if python 2 version is active)
> m acloud
> # set memory to 2GB
> # default 6GB fails to boot on Ubuntu 20.04 due to crosvm errors (see
> Launcher log)
> acloud-dev create --yes --verbose --local-instance --local-image
> --hw-property memory:2g
>
> On Saturday, June 20, 2020 at 1:29:50 AM UTC+10, Dean Wheatley wrote:
>
>     https://issuetracker.google.com/issues/159361839
>     <https://issuetracker.google.com/issues/159361839>
>
>     On Friday, June 19, 2020 at 12:45:58 AM UTC+10, Glenn Kasten wrote:
>
>         Please file a bug here:
>
>         https://source.android.com/setup/contribute/report-bugs
>         <https://source.android.com/setup/contribute/report-bugs>
>
>         On Thursday, June 18, 2020 at 7:32:05 AM UTC-7, Ismael Vidal wrote:
>
>             I have the same problem on Ubuntu 20.04. :(
>
>             On Tuesday, June 2, 2020 at 12:35:10 PM UTC-4, Dean Wheatley
>             wrote:
>
>                 Irrespective of running python version (2.7.18rc1 or
>                 3.8.2) on Ubuntu 20.04, acloud fails as below:
>
>                 $ acloud setup --host
>
>                 Welcome to
>                     ___  _______   ____  __  _____
>                    / _ |/ ___/ /  / __ \/ / / / _ \
>                   / __ / /__/ /__/ /_/ / /_/ / // /
>                 /_/ |_\___/____/\____/\____/____/
>
>                 Traceback (most recent call last):
>                    File
>                 "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py",
>                 line 440, in <module>
>                      EXIT_CODE, EXCEPTION_STACKTRACE = main(sys.argv[1:])
>                    File
>                 "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py",
>                 line 419, in main
>                      setup.Run(args)
>                    File
>                 "/tmp/Soong.python_ym5s7lig/acloud/setup/setup.py", line
>                 73, in Run
>                      subtask.Run(force_setup=args.force)
>                    File
>                 "/tmp/Soong.python_ym5s7lig/acloud/setup/base_task_runner.py",
>                 line 97, in Run
>                      if self.ShouldRun() or force_setup:
>                    File
>                 "/tmp/Soong.python_ym5s7lig/acloud/setup/host_setup_runner.py",
>                 line 67, in ShouldRun
>                      if not utils.IsSupportedPlatform():
>                    File
>                 "/tmp/Soong.python_ym5s7lig/acloud/internal/lib/utils.py",
>                 line 1218, in IsSupportedPlatform
>                      dist = platform.linux_distribution()[0]
>
>
>
>                 Why does acloud seemingly always use the latest python
>                 version on the system (3.8.2 in my case) rather than the
>                 one set to local python? (platform.linux_distribution
>                 API has been removed in Python 3.8)
>
>                 Building and running acloud-dev worked around this
>                 issue, but I needed to ensure that python2 was the
>                 active version on my system.
>
>
>
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [hidden email]
> To unsubscribe from this group, send email to
> [hidden email]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email]
> <mailto:[hidden email]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-building/87fed542-0dba-4736-933c-ea3bc5abfbe4o%40googlegroups.com 
> <https://groups.google.com/d/msgid/android-building/87fed542-0dba-4736-933c-ea3bc5abfbe4o%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/ebd8cf38-1b27-335b-09f5-c9365c142a5f%40gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: acloud fails on Ubuntu 20.04

Rakesh Gupta
In reply to this post by Dean Wheatley-2
I am not able to install cuttlefish on Ubuntu 20.04.1 by following the guide at:    https://source.android.com/setup/start#set_up_workstation

Here is the error:

machine:~/aosp$ acloud setup --host

==================
Notice:
  We collect anonymous usage statistics in accordance with our Content Licenses (https://source.android.com/setup/start/licenses), Contributor License Agreement (https://opensource.google.com/docs/cla/), Privacy Policy (https://policies.google.com/privacy) and Terms of Service (https://policies.google.com/terms).
==================


Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  


========================================
 [Install required package for host setup] 
 This step will walk you through the
 required packages installation for
 running Android cuttlefish devices
 and vnc on your host.
========================================

Run command: sudo apt-get update
[sudo] password for rakesh: 
Run command: sudo apt-get --assume-yes install cuttlefish-common
Traceback (most recent call last):
  File "/tmp/Soong.python_pNLkbc/acloud/public/acloud_main.py", line 417, in <module>
    EXIT_CODE = main(sys.argv[1:])
  File "/tmp/Soong.python_pNLkbc/acloud/public/acloud_main.py", line 397, in main
    setup.Run(args)
  File "/tmp/Soong.python_pNLkbc/acloud/setup/setup.py", line 61, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_pNLkbc/acloud/setup/base_task_runner.py", line 98, in Run
    self._Run()
  File "/tmp/Soong.python_pNLkbc/acloud/setup/host_setup_runner.py", line 79, in _Run
    setup_common.InstallPackage(pkg)
  File "/tmp/Soong.python_pNLkbc/acloud/setup/setup_common.py", line 71, in InstallPackage
    "Could not install package [" + pkg + "], :" + str(cpe.output))
acloud.errors.PackageInstallError: Could not install package [cuttlefish-common], :Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package cuttlefish-common

On Monday, June 22, 2020 at 8:35:11 PM UTC+5:30 Dean Wheatley wrote:
Here's a set of commands which worked on my Ubuntu 20.04 workstation to launch cuttlefish. YMMV.

# Check python major version is 2 due to incompatibility in acloud-dev which python3
python_major_ver=$(python -V 2>&1 | sed s/Python\ // | cut -c 1)
if [ -z "${python_major_ver}" ]; then
  echo "no Python installed. Exiting"
  exit 1
fi
if [ ${python_major_ver} -ne 2 ]; then
  echo "Python version is "${python_major_version} " but must be 2. Exiting"
  exit 1
fi

cd ../../../../..
. build/envsetup.sh
lunch aosp_cf_x86_phone-userdebug
m
# build and use acloud-dev due to acloud python errors on Ubuntu 20.04
# (it uses python 3 even if python 2 version is active)
m acloud
# set memory to 2GB
# default 6GB fails to boot on Ubuntu 20.04 due to crosvm errors (see Launcher log)
acloud-dev create --yes --verbose --local-instance --local-image --hw-property memory:2g

On Saturday, June 20, 2020 at 1:29:50 AM UTC+10, Dean Wheatley wrote:
https://issuetracker.google.com/issues/159361839

On Friday, June 19, 2020 at 12:45:58 AM UTC+10, Glenn Kasten wrote:
Please file a bug here:

https://source.android.com/setup/contribute/report-bugs

On Thursday, June 18, 2020 at 7:32:05 AM UTC-7, Ismael Vidal wrote:
I have the same problem on Ubuntu 20.04. :(

On Tuesday, June 2, 2020 at 12:35:10 PM UTC-4, Dean Wheatley wrote:
Irrespective of running python version (2.7.18rc1 or 3.8.2) on Ubuntu 20.04, acloud fails as below:

$ acloud setup --host

Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  

Traceback (most recent call last):
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 440, in <module>
    EXIT_CODE, EXCEPTION_STACKTRACE = main(sys.argv[1:])
  File "/tmp/Soong.python_ym5s7lig/acloud/public/acloud_main.py", line 419, in main
    setup.Run(args)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/setup.py", line 73, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/base_task_runner.py", line 97, in Run
    if self.ShouldRun() or force_setup:
  File "/tmp/Soong.python_ym5s7lig/acloud/setup/host_setup_runner.py", line 67, in ShouldRun
    if not utils.IsSupportedPlatform():
  File "/tmp/Soong.python_ym5s7lig/acloud/internal/lib/utils.py", line 1218, in IsSupportedPlatform
    dist = platform.linux_distribution()[0]



Why does acloud seemingly always use the latest python version on the system (3.8.2 in my case) rather than the one set to local python? (platform.linux_distribution API has been removed in Python 3.8)

Building and running acloud-dev worked around this issue, but I needed to ensure that python2 was the active version on my system.




--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/132eda93-a90c-40c1-8941-036f87bd13e7n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: acloud fails on Ubuntu 20.04

Rakesh Gupta
I manually installed cuttlefish. But when I reached further with acloud I got to know that Cuttlefish only works on Intel cpus and not on Amd. I will try google cloud solution.

On Thursday, August 27, 2020 at 6:26:41 PM UTC+5:30 Rakesh Gupta wrote:
I am not able to install cuttlefish on Ubuntu 20.04.1 by following the guide at:    https://source.android.com/setup/start#set_up_workstation

Here is the error:

machine:~/aosp$ acloud setup --host

==================
Notice:
  We collect anonymous usage statistics in accordance with our Content Licenses (https://source.android.com/setup/start/licenses), Contributor License Agreement (https://opensource.google.com/docs/cla/), Privacy Policy (https://policies.google.com/privacy) and Terms of Service (https://policies.google.com/terms).
==================


Welcome to
                                    
   ___  _______   ____  __  _____ 
  / _ |/ ___/ /  / __ \/ / / / _ \ 
 / __ / /__/ /__/ /_/ / /_/ / // /  
/_/ |_\___/____/\____/\____/____/ 
                                  


========================================
 [Install required package for host setup] 
 This step will walk you through the
 required packages installation for
 running Android cuttlefish devices
 and vnc on your host.
========================================

Run command: sudo apt-get update
[sudo] password for rakesh: 
Run command: sudo apt-get --assume-yes install cuttlefish-common
Traceback (most recent call last):
  File "/tmp/Soong.python_pNLkbc/acloud/public/acloud_main.py", line 417, in <module>
    EXIT_CODE = main(sys.argv[1:])
  File "/tmp/Soong.python_pNLkbc/acloud/public/acloud_main.py", line 397, in main
    setup.Run(args)
  File "/tmp/Soong.python_pNLkbc/acloud/setup/setup.py", line 61, in Run
    subtask.Run(force_setup=args.force)
  File "/tmp/Soong.python_pNLkbc/acloud/setup/base_task_runner.py", line 98, in Run
    self._Run()
  File "/tmp/Soong.python_pNLkbc/acloud/setup/host_setup_runner.py", line 79, in _Run
    setup_common.InstallPackage(pkg)
  File "/tmp/Soong.python_pNLkbc/acloud/setup/setup_common.py", line 71, in InstallPackage
    "Could not install package [" + pkg + "], :" + str(cpe.output))
acloud.errors.PackageInstallError: Could not install package [cuttlefish-common], :Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package cuttlefish-common



--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to
[hidden email]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/5e391a27-a453-49f0-ba0c-2571e689aa04n%40googlegroups.com.