Closed bavalpey closed 5 years ago
Spirituality dupe #1596 and #2526. You've got repro steps but no actionable. You could in principle isolate the 313 fail and post a targeted repro with strace
demonstrating a diverge from Real Linux. If you do so, feel free and encouraged to spin up a new submission following the template. It is also helpful and to cite the use case (popular real world program that is failing).
Spirituality dupe #1596 and #2526. You've got repro steps but no actionable. You could in principle isolate the 313 fail and post a targeted repro with
strace
demonstrating a diverge from Real Linux. If you do so, feel free and encouraged to spin up a new submission following the template. It is also helpful and to cite the use case (popular real world program that is failing).
I'm confused, what are you asking? I tried running strace as it requires but the command failed.
In-lining one of the links for you, paraphrased:
Going to snipe this one since no response for ~seventeen~ zero months+. The lack of response was not because no one cared (I remember when it was reported half an hour ago). The awkward difficultly is that while this issue# meets the "reproducible" requirement absolutely, it isn't actionable. WSL fails some golang tests and some watchman tests and (apparently now) some Python tests. It also fails some libc tests and some LTP tests tests. There is a testing related blog entry here and an unofficial side discussion in #2031 (message).
Constructively, what can be done is isolate the specific test case fails that are blocking any killer ~golang~ Python applications with widespread adoption. This is not an easy task mind, because you'll find that in most cases the problem will be a dupe. But not always, so please report anything you find following the template.
The part of the template that you deleted asks for an strace(1)
log which won't be constructive with the repro steps given.
This is sort of helpful? I'm on a fresh install of wsl and am trying to set up python3.7 with pip. Using apt-get install python3.7 does not install pip with python 3.7. So there not exactly popular real-world programs that are failing because of this, I am just looking for any way to install python3.7 and ensure that pip is installed with it as well. Thanks for your time.
Thanks! The deadsnakes ppa ended up working. I had seen that solution, but decided to try other options (such as building from source) which were dead-ends. Thanks for setting me back on track.
I got exactly the same problem, still no solution other than ppa?
found another solution: install 3.7.3 via pyenv
Just a comment. It appears that at least Python 3.9.7 now installs in Ubuntu WSL2 via pyenv
with --enable-optimizations
and --with-lto
without issue.
@bavalpey installing those packages helped me
sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev
@bavalpey installing those packages helped me
sudo apt install make build-essential libssl-dev zlib1g-dev libbz2-dev \ libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ xz-utils tk-dev libffi-dev liblzma-dev
@bavalpey also if you don't run in gcc-9 gives error for run
make -j8 CC=gcc-9
Please fill out the below information:
Your Windows build number: 10.0.17763.437
What you're doing and what's happening:
Command Output
sudo make -j 8 [sudo] password for bavalpey: Running code to generate profile data (this can take a while): # First, we need to create a clean build with profile generation # enabled. make profile-gen-stamp make[1]: Entering directory '/usr/bin/Python-3.7.3' make[1]: 'profile-gen-stamp' is up to date. make[1]: Leaving directory '/usr/bin/Python-3.7.3' # Next, run the profile task to generate the profile information. make run_profile_task make[1]: Entering directory '/usr/bin/Python-3.7.3' ./python -m test.regrtest --pgo || true Run tests sequentially 0:00:00 load avg: 0.52 [ 1/416] test_grammar 0:00:00 load avg: 0.52 [ 2/416] test_opcodes 0:00:00 load avg: 0.52 [ 3/416] test_dict 0:00:01 load avg: 0.52 [ 4/416] test_builtin profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30 profiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11 0:00:02 load avg: 0.52 [ 5/416] test_exceptions 0:00:11 load avg: 0.52 [ 6/416] test_types 0:00:11 load avg: 0.52 [ 7/416] test_unittest 0:00:21 load avg: 0.52 [ 8/416] test_doctest ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2766, in test.test_doctest.test_CLI Failed example: rc1, out1, err1 Expected: (0, b'', b'') Got: (0, b'', b'profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30\nprofiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11') ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2771, in test.test_doctest.test_CLI Failed example: rc2, err2 Expected: (0, b'') Got: (0, b'profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30\nprofiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11') ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2840, in test.test_doctest.test_CLI Failed example: rc1, err1 Expected: (1, b'') Got: (1, b'profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30\nprofiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11') ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2868, in test.test_doctest.test_CLI Failed example: rc2, out2, err2 Expected: (0, b'', b'') Got: (0, b'', b'profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30\nprofiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11') ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2870, in test.test_doctest.test_CLI Failed example: rc3, out3, err3 Expected: (0, b'', b'') Got: (0, b'', b'profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30\nprofiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11') ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2875, in test.test_doctest.test_CLI Failed example: rc4, err4 Expected: (1, b'') Got: (1, b'profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30\nprofiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11') ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2894, in test.test_doctest.test_CLI Failed example: rc5, err5 Expected: (0, b'') Got: (0, b'profiling:/usr/bin/Python-3.7.3/Modules/_functoolsmodule.gcda:Merge mismatch for function 30\nprofiling:/usr/bin/Python-3.7.3/Objects/sliceobject.gcda:Merge mismatch for function 11') ********************************************************************** File "/usr/bin/Python-3.7.3/Lib/test/test_doctest.py", line 2943, in test.test_doctest.test_CLI Failed example: print(normalize(err)) # doctest: +ELLIPSIS Expected: Traceback (most recent call last): ... FileNotFoundError: [Errno ...] No such file or directory: 'nosuchfile' Got: Traceback (most recent call last): File "/usr/bin/Python-3.7.3/Lib/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/bin/Python-3.7.3/Lib/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/bin/Python-3.7.3/Lib/doctest.py", line 2786, inI tried to find a solution to this elsewhere but the only mention of this that I see is a post located here that dates back to 2016.