<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>226707</bug_id>
          
          <creation_ts>2021-06-06 22:41:08 -0700</creation_ts>
          <short_desc>Windows Python 2.7 fails to install tblib-1.7.0 due to &quot;TypeError: environment can only contain strings&quot;</short_desc>
          <delta_ts>2021-06-07 13:11:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Fujii Hironori">fujii</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>darin</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>jbedard</cc>
    
    <cc>pvollan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1767303</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-06-06 22:41:08 -0700</bug_when>
    <thetext>Windows Python 2.7 fails to install tblib-1.7.0 due to &quot;TypeError: environment can only contain strings&quot;

PS C:\home\webkit\gc&gt; python.exe ./Tools/Scripts/run-webkit-tests --wincairo --debug
Downloading setuptools-44.1.1...
Installing setuptools-44.1.1...
Installed setuptools-44.1.1!
Downloading setuptools-scm-5.0.2...
Installing setuptools-scm-5.0.2...
Installed setuptools-scm-5.0.2!
Downloading wheel-0.35.1...
Installing wheel-0.35.1...
Installed wheel-0.35.1!
Downloading six-1.15.0...
Installing six-1.15.0...
Installed six-1.15.0!
Downloading mock-3.0.5...
Installing mock-3.0.5...
Installed mock-3.0.5!
Downloading funcsigs-1.0.2...
Installing funcsigs-1.0.2...
Installed funcsigs-1.0.2!
Downloading fasteners-0.15.0...
Installing fasteners-0.15.0...
Installed fasteners-0.15.0!
Downloading monotonic-1.5.0...
Installing monotonic-1.5.0...
Installed monotonic-1.5.0!
Downloading requests-2.24.0...
Installing requests-2.24.0...
Installed requests-2.24.0!
Downloading urllib3-1.25.10...
Installing urllib3-1.25.10...
Installed urllib3-1.25.10!
Downloading chardet-3.0.4...
Installing chardet-3.0.4...
Installed chardet-3.0.4!
Downloading certifi-2020.6.20...
Installing certifi-2020.6.20...
Installed certifi-2020.6.20!
Downloading idna-2.10.0...
Installing idna-2.10.0...
Installed idna-2.10.0!
Downloading PySocks-1.7.1...
Installing PySocks-1.7.1...
Installed PySocks-1.7.1!
Downloading win-inet-pton-1.1.0...
Installing win-inet-pton-1.1.0...
Installed win-inet-pton-1.1.0!
Downloading xmltodict-0.11.0...
Installing xmltodict-0.11.0...
Installed xmltodict-0.11.0!
Downloading attrs-18.1.0...
Installing attrs-18.1.0...
Installed attrs-18.1.0!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = &quot;en_US.UTF-8&quot;,
        LC_MESSAGES = &quot;en_US.UTF-8&quot;,
        LANG = &quot;en_US.UTF-8&quot;
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (&quot;C&quot;).
Using port &apos;wincairo-win10-wk2&apos;
Test configuration: &lt;win10, x86_64, debug&gt;
Placing test results in C:\home\webkit\gc\WebKitBuild\Debug\bin64\layout-test-results
Using Debug build
Pixel tests disabled
Regular timeout: 30000, slow test timeout: 150000
Command line: C:\home\webkit\gc\WebKitBuild\Debug\bin64\WebKitTestRunner.exe -

Found 71450 tests; running 17972, skipping 53478.

Verbose baseline search path: platform\wincairo-win10-wk2 -&gt; platform\wincairo-win10 -&gt; platform\wincairo-wk2 -&gt; platform\wincairo -&gt; platform\wk2 -&gt; generic

Baseline search path: platform\wincairo -&gt; platform\wk2 -&gt; generic

Running 17972 tests

The _NT_SYMBOL_PATH environment variable is not set. Using Microsoft Symbol Server.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = &quot;en_US.UTF-8&quot;,
        LC_MESSAGES = &quot;en_US.UTF-8&quot;,
        LANG = &quot;en_US.UTF-8&quot;
    are supported and installed on your system.
perl: warning: Falling back to the standard locale (&quot;C&quot;).
Running 16 WebKitTestRunners in parallel.

Starting 16 workers ...Downloading tblib-1.7.0...
Installing tblib-1.7.0...
Failed to install tblib-1.7.0!

TypeError raised: environment can only contain strings
Traceback (most recent call last):
  File &quot;C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\run_webkit_tests.py&quot;, line 92, in main
    run_details = run(port, options, args, stderr)
  File &quot;C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\run_webkit_tests.py&quot;, line 487, in run
    run_details = manager.run(args)
  File &quot;C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\controllers\manager.py&quot;, line 408, in run
    temp_initial_results, temp_retry_results, temp_enabled_pixel_tests_in_retry = self._run_test_subset(test_inputs, device_type=device_type)
  File &quot;C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\controllers\manager.py&quot;, line 482, in _run_test_subset
    initial_results = self._run_tests(test_inputs, self._options.repeat_each, self._options.iterations, int(self._options.child_processes), retrying=False, device_type=device_type)
  File &quot;C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\controllers\manager.py&quot;, line 561, in _run_tests
    return self._runner.run_tests(self._expectations[device_type], new_test_inputs, num_workers, retrying, device_type)
  File &quot;C:\home\webkit\gc\Tools\Scripts\webkitpy\layout_tests\controllers\layout_test_runner.py&quot;, line 172, in run_tests
    ), teardown=teardown_shard,
  File &quot;C:\home\webkit\gc\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\task_pool.py&quot;, line 336, in __init__
    import tblib
  File &quot;C:\home\webkit\gc\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py&quot;, line 585, in find_module
    cls.install(name)
  File &quot;C:\home\webkit\gc\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py&quot;, line 569, in install
    return all([to_install.install() for to_install in packages])
  File &quot;C:\home\webkit\gc\Tools\Scripts\libraries\webkitcorepy\webkitcorepy\autoinstall.py&quot;, line 315, in install
    stderr=setup_log,
  File &quot;C:\Python27\lib\subprocess.py&quot;, line 185, in check_call
    retcode = call(*popenargs, **kwargs)
  File &quot;C:\Python27\lib\subprocess.py&quot;, line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File &quot;C:\Python27\lib\subprocess.py&quot;, line 394, in __init__
    errread, errwrite)
  File &quot;C:\Python27\lib\subprocess.py&quot;, line 644, in _execute_child
    startupinfo)
TypeError: environment can only contain strings
Stopping Web Platform Test server ...
PS C:\home\webkit\gc&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767304</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-06-06 22:43:05 -0700</bug_when>
    <thetext>WinPort.setup_crash_log_saving modifies _NT_SYMBOL_PATH env var.
And, _NT_SYMBOL_PATH constrains an unicode string.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767305</commentid>
    <comment_count>2</comment_count>
      <attachid>430712</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-06-06 22:53:59 -0700</bug_when>
    <thetext>Created attachment 430712
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767306</commentid>
    <comment_count>3</comment_count>
      <attachid>430712</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2021-06-06 23:03:40 -0700</bug_when>
    <thetext>Comment on attachment 430712
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=430712&amp;action=review

&gt; Tools/ChangeLog:9
&gt; +        WinCairo port is still using Python 2.7 that has ascii strings and
&gt; +        unicode strings. WinPort.setup_crash_log_saving modifies

Does WinCairo port need to use Python 2?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767321</commentid>
    <comment_count>4</comment_count>
      <attachid>430712</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-06-06 23:40:37 -0700</bug_when>
    <thetext>Comment on attachment 430712
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=430712&amp;action=review

&gt;&gt; Tools/ChangeLog:9
&gt;&gt; +        unicode strings. WinPort.setup_crash_log_saving modifies
&gt; 
&gt; Does WinCairo port need to use Python 2?

Yes. We didn&apos;t finish Python 3 migration yet. We are working on it to remove Python 2 support.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767461</commentid>
    <comment_count>5</comment_count>
      <attachid>430712</attachid>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2021-06-07 08:47:22 -0700</bug_when>
    <thetext>Comment on attachment 430712
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=430712&amp;action=review

&gt;&gt;&gt; Tools/ChangeLog:9
&gt;&gt;&gt; +        unicode strings. WinPort.setup_crash_log_saving modifies
&gt;&gt; 
&gt;&gt; Does WinCairo port need to use Python 2?
&gt; 
&gt; Yes. We didn&apos;t finish Python 3 migration yet. We are working on it to remove Python 2 support.

And for what it&apos;s worth, Apple&apos;s ports weren&apos;t ready for Python 3.8 until late last week</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767527</commentid>
    <comment_count>6</comment_count>
      <attachid>430712</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-06-07 13:10:02 -0700</bug_when>
    <thetext>Comment on attachment 430712
Patch

Clearing flags on attachment: 430712

Committed r278570 (238568@main): &lt;https://commits.webkit.org/238568@main&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767528</commentid>
    <comment_count>7</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-06-07 13:10:05 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1767529</commentid>
    <comment_count>8</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-06-07 13:11:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/78959758&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>430712</attachid>
            <date>2021-06-06 22:53:59 -0700</date>
            <delta_ts>2021-06-07 13:10:02 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-226707-20210607145357.patch</filename>
            <type>text/plain</type>
            <size>1727</size>
            <attacher name="Fujii Hironori">fujii</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjc4NTM4CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggOTFmNDlkMDQwYTFjNDYxZjAxNjdiNjkyZGE1YjU5ZmI0
NDk5MDhhMi4uM2Y2MjQ5ZDY2MTc5Nzg1MTFlNzQ0YTE0NzhmOWI5Yzc0OGI2ODg5OCAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIw
IEBACisyMDIxLTA2LTA2ICBGdWppaSBIaXJvbm9yaSAgPEhpcm9ub3JpLkZ1amlpQHNvbnkuY29t
PgorCisgICAgICAgIFdpbmRvd3MgUHl0aG9uIDIuNyBmYWlscyB0byBpbnN0YWxsIHRibGliLTEu
Ny4wIGR1ZSB0byAiVH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