* [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
@ 2021-01-23 18:23 Oleh Svirshchevsky
2021-01-23 18:47 ` Marco Atzeri
0 siblings, 1 reply; 6+ messages in thread
From: Oleh Svirshchevsky @ 2021-01-23 18:23 UTC (permalink / raw)
To: cygwin
Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
Latest version:
$ python3.8.exe --version
Python 3.8.7
$ python3.8.exe -Im ensurepip --upgrade --default-pip
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/usr/lib/python3.8/ensurepip/__init__.py", line 121
with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
^
IndentationError: unexpected indent
Older version:
$ python3.8.exe --version
Python 3.8.3
$ python3.8.exe -Im ensurepip --upgrade --default-pip
Looking in links: /tmp/tmpxxpxh_dl
Requirement already up-to-date: setuptools in /usr/lib/python3.8/site-packages (51.1.1)
Requirement already up-to-date: pip in /usr/lib/python3.8/site-packages (20.3.3)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
2021-01-23 18:23 [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works Oleh Svirshchevsky
@ 2021-01-23 18:47 ` Marco Atzeri
2021-01-23 19:13 ` Marco Atzeri
0 siblings, 1 reply; 6+ messages in thread
From: Marco Atzeri @ 2021-01-23 18:47 UTC (permalink / raw)
To: cygwin
On 23.01.2021 19:23, Oleh Svirshchevsky via Cygwin wrote:
> Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
>
> Latest version:
> $ python3.8.exe --version
> Python 3.8.7
> $ python3.8.exe -Im ensurepip --upgrade --default-pip
> Traceback (most recent call last):
> File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
> mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
> File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
> return _get_module_details(pkg_main_name, error)
> File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
> __import__(pkg_name)
> File "/usr/lib/python3.8/ensurepip/__init__.py", line 121
> with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
> ^
> IndentationError: unexpected indent
>
>
> Older version:
> $ python3.8.exe --version
> Python 3.8.3
> $ python3.8.exe -Im ensurepip --upgrade --default-pip
> Looking in links: /tmp/tmpxxpxh_dl
> Requirement already up-to-date: setuptools in /usr/lib/python3.8/site-packages (51.1.1)
> Requirement already up-to-date: pip in /usr/lib/python3.8/site-packages (20.3.3)
thanks for the report.
I will look on the root cause
Marco
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
2021-01-23 18:47 ` Marco Atzeri
@ 2021-01-23 19:13 ` Marco Atzeri
2021-01-24 6:58 ` Oleh Svirshchevsky
0 siblings, 1 reply; 6+ messages in thread
From: Marco Atzeri @ 2021-01-23 19:13 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]
On 23.01.2021 19:47, Marco Atzeri wrote:
> On 23.01.2021 19:23, Oleh Svirshchevsky via Cygwin wrote:
>> Latest python38 package (3.8.7-1) fails to execute 'ensurepip',
>> 3.8.3.-1 works
>>
>> Latest version:
>> $ python3.8.exe --version
>> Python 3.8.7
>> $ python3.8.exe -Im ensurepip --upgrade --default-pip
>> Traceback (most recent call last):
>> File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
>> mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
>> File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
>> return _get_module_details(pkg_main_name, error)
>> File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
>> __import__(pkg_name)
>> File "/usr/lib/python3.8/ensurepip/__init__.py", line 121
>> with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
>> ^
>> IndentationError: unexpected indent
Hi Oleh,
the attached patch should solve the indentation mistakes.
Can you confirm it ?
Regards
Marco
[-- Attachment #2: 3.8.7-2-ensurepip.patch --]
[-- Type: text/plain, Size: 706 bytes --]
--- Lib/ensurepip/__init__.py 2021-01-12 14:56:53.283024300 +0100
+++ /usr/lib/python3.8/ensurepip/__init__.py 2021-01-23 20:07:15.593584200 +0100
@@ -118,9 +118,9 @@
additional_paths = []
for project, version, py_tag in _PROJECTS:
wheel_name = _wheels[project][version]
- with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
+ with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
with open(os.path.join(tmpdir, wheel_name), "wb") as fp:
- fp.write(sfp.read())
+ fp.write(sfp.read())
additional_paths.append(os.path.join(tmpdir, wheel_name))
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
2021-01-23 19:13 ` Marco Atzeri
@ 2021-01-24 6:58 ` Oleh Svirshchevsky
2021-01-24 8:27 ` Marco Atzeri
0 siblings, 1 reply; 6+ messages in thread
From: Oleh Svirshchevsky @ 2021-01-24 6:58 UTC (permalink / raw)
To: cygwin
Hi Marco,
Confirming that the provided patch fixes the problem, thanks!
Do you have an estimate of when you plan on releasing 3.8.7-2 with this fix?
Thanks,
Oleh
-----Original Message-----
From: Cygwin <cygwin-bounces@cygwin.com> On Behalf Of Marco Atzeri via Cygwin
Sent: Saturday, January 23, 2021 11:14 AM
To: cygwin@cygwin.com
Subject: Re: [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
On 23.01.2021 19:47, Marco Atzeri wrote:
> On 23.01.2021 19:23, Oleh Svirshchevsky via Cygwin wrote:
>> Latest python38 package (3.8.7-1) fails to execute 'ensurepip',
>> 3.8.3.-1 works
>>
>> Latest version:
>> $ python3.8.exe --version
>> Python 3.8.7
>> $ python3.8.exe -Im ensurepip --upgrade --default-pip Traceback (most
>> recent call last):
>> File "/usr/lib/python3.8/runpy.py", line 185, in
>> _run_module_as_main
>> mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
>> File "/usr/lib/python3.8/runpy.py", line 144, in
>> _get_module_details
>> return _get_module_details(pkg_main_name, error)
>> File "/usr/lib/python3.8/runpy.py", line 111, in
>> _get_module_details
>> __import__(pkg_name)
>> File "/usr/lib/python3.8/ensurepip/__init__.py", line 121
>> with open(os.path.join(_WHEEL_DIR, wheel_name), "rb") as sfp:
>> ^
>> IndentationError: unexpected indent
Hi Oleh,
the attached patch should solve the indentation mistakes.
Can you confirm it ?
Regards
Marco
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
2021-01-24 6:58 ` Oleh Svirshchevsky
@ 2021-01-24 8:27 ` Marco Atzeri
2021-01-30 15:00 ` Marco Atzeri
0 siblings, 1 reply; 6+ messages in thread
From: Marco Atzeri @ 2021-01-24 8:27 UTC (permalink / raw)
To: cygwin
bottom post and trim on this mailing list, please
On 24.01.2021 07:58, Oleh Svirshchevsky via Cygwin wrote:
> Hi Marco,
>
> Confirming that the provided patch fixes the problem, thanks!
> Do you have an estimate of when you plan on releasing 3.8.7-2 with this fix?
>
> Thanks,
> Oleh
>
as soon I solve also the second problem on asyncio
assuming I found a solution for it in short time.
Regards
Marco
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works
2021-01-24 8:27 ` Marco Atzeri
@ 2021-01-30 15:00 ` Marco Atzeri
0 siblings, 0 replies; 6+ messages in thread
From: Marco Atzeri @ 2021-01-30 15:00 UTC (permalink / raw)
To: cygwin
On 24.01.2021 09:27, Marco Atzeri wrote:
>
> as soon I solve also the second problem on asyncio
> assuming I found a solution for it in short time.
>
>
>
> Regards
> Marco
>
3.8.7-2 is up to solve this problem.
asyncio needs additional debugging
Regards
Marco
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-30 15:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-23 18:23 [BUG] Latest python38 package (3.8.7-1) fails to execute 'ensurepip', 3.8.3.-1 works Oleh Svirshchevsky
2021-01-23 18:47 ` Marco Atzeri
2021-01-23 19:13 ` Marco Atzeri
2021-01-24 6:58 ` Oleh Svirshchevsky
2021-01-24 8:27 ` Marco Atzeri
2021-01-30 15:00 ` Marco Atzeri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).