Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to install pywin32 #468

Closed
SnehashishGiri opened this issue Apr 17, 2020 · 10 comments
Closed

Not able to install pywin32 #468

SnehashishGiri opened this issue Apr 17, 2020 · 10 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@SnehashishGiri
Copy link

I am trying to build an python app in docker container but pywin32 not getting installed.
FROM python:3.8.2
WORKDIR /usr/src/app
RUN python -m pip install -U pip
RUN pip install wmi
RUN python -m pip install pywin32

Its throwing error as
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32

@SnehashishGiri
Copy link
Author

Tried with
RUN python -m pip install pypiwin32
Getting error
ERROR: Could not find a version that satisfies the requirement pywin32>=223 (from pypiwin32) (from versions: none)
ERROR: No matching distribution found for pywin32>=223 (from pypiwin32)

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Apr 17, 2020
@wglambert
Copy link

No matching distribution found for pywin32>=223
Are you able to install this outside of a container environment?

@SnehashishGiri
Copy link
Author

Yes i have a windows 10 Laptop. I am able to install it

@SnehashishGiri
Copy link
Author

Link to pywin32
https://pypi.org/project/pywin32/
Link to pypiwin32
https://pypi.org/project/pypiwin32/
Both are not working in docker container.
This is a Python extensions for Microsoft Windows Provides access to much of the Win32 API, the ability to create and use COM objects, and the Pythonwin environment.

@tianon
Copy link
Member

tianon commented Apr 18, 2020 via email

@SnehashishGiri
Copy link
Author

What would be the solution to it. As in Windows Container too its not working

@SnehashishGiri
Copy link
Author

In Windows Container getting error for all pip command.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001636302E3D0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001636302E580>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000001636302E6D0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000016363018B50>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000016363018610>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/pip/

@tianon
Copy link
Member

tianon commented Apr 18, 2020

That looks to me like #359

@tianon
Copy link
Member

tianon commented Nov 24, 2020

I've just tested this again today with the latest python:3.8 image, and it appears to be fixed/working?

$ docker pull python:3.8
3.8: Pulling from library/python
Digest: sha256:8e7dd58a4cb8a8b703ae2fe90cd67e79576524ff388426331151b50a5850b359
Status: Image is up to date for python:3.8
docker.io/library/python:3.8

$ docker run -it --rm python:3.8 powershell
Windows PowerShell 
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\> pip install pywin32
Collecting pywin32
  Downloading pywin32-300-cp38-cp38-win_amd64.whl (9.3 MB)
     |????????????????????????????????| 9.3 MB 3.3 MB/s 
Installing collected packages: pywin32
Successfully installed pywin32-300
PS C:\> pip install pypiwin32
Collecting pypiwin32
  Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Requirement already satisfied: pywin32>=223 in c:\python\lib\site-packages (from pypiwin32) (300)
Installing collected packages: pypiwin32
Successfully installed pypiwin32-223

@tianon tianon closed this as completed Jan 8, 2021
@ErmiaCodev

This comment has been minimized.

@docker-library docker-library locked as resolved and limited conversation to collaborators Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

4 participants