Chromium Build Failed in linux platform

250 views
Skip to first unread message

sss qa

unread,
Oct 27, 2021, 1:45:49 PM10/27/21
to Chromium-dev
We have build the chromium for linux environment, During the build(Run hooks) we have faced the below python error(TypeError: __init__() got an unexpected keyword argument 'encoding'). Kindly support

Running hooks:  46% (54/115) Fetch Android AFDO profile            
________ running 'python3 src/tools/download_optimization_profile.py --newest_state=src/chrome/android/profiles/newest.txt --local_state=src/chrome/android/profiles/local.txt --output_name=src/chrome/android/profiles/afdo.prof --gs_url_base=chromeos-prebuilt/afdo-job/llvm' in '/home/sseng/chrom'
Traceback (most recent call last):
  File "src/tools/download_optimization_profile.py", line 154, in <module>
    sys.exit(main())
  File "src/tools/download_optimization_profile.py", line 148, in main
    RetrieveProfile(up_to_date_profile, new_tmpfile, args.gs_url_base)
  File "src/tools/download_optimization_profile.py", line 100, in RetrieveProfile
    CheckCallOrExit(['bzip2', '-d', out_path])
  File "src/tools/download_optimization_profile.py", line 54, in CheckCallOrExit
    encoding='utf-8')
TypeError: __init__() got an unexpected keyword argument 'encoding'
Error: Command 'python3 src/tools/download_optimization_profile.py --newest_state=src/chrome/android/profiles/newest.txt --local_state=src/chrome/android/profiles/local.txt --output_name=src/chrome/android/profiles/afdo.prof --gs_url_base=chromeos-prebuilt/afdo-job/llvm' returned non-zero exit status 1 in /home/sseng/chrom
Traceback (most recent call last):
  File "src/tools/download_optimization_profile.py", line 154, in <module>
    sys.exit(main())
  File "src/tools/download_optimization_profile.py", line 148, in main
    RetrieveProfile(up_to_date_profile, new_tmpfile, args.gs_url_base)
  File "src/tools/download_optimization_profile.py", line 100, in RetrieveProfile
    CheckCallOrExit(['bzip2', '-d', out_path])
  File "src/tools/download_optimization_profile.py", line 54, in CheckCallOrExit
    encoding='utf-8')
TypeError: __init__() got an unexpected keyword argument 'encoding'

K. Moon

unread,
Oct 27, 2021, 7:11:27 PM10/27/21
to sssq...@gmail.com, Chromium-dev
Maybe you're using an old version of Python 3? It looks like this is a subprocess.Popen() call, which according to the library documentation, first acquired an "encoding" argument in 3.6.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/82bb3910-9ae5-4cbe-926c-2126db911a1an%40chromium.org.
Reply all
Reply to author
Forward
0 new messages