Skip to content

pypiwin32 223 permission issues #1171

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

Closed
tardyp opened this issue Feb 27, 2018 · 8 comments
Closed

pypiwin32 223 permission issues #1171

tardyp opened this issue Feb 27, 2018 · 8 comments

Comments

@tardyp
Copy link

tardyp commented Feb 27, 2018

Looks like new version brakes in appveyor:

https://ci.appveyor.com/project/djmitche/buildbot/build/1.0.5999
for all version of python.

Error is:

IOError: [Errno 13] Permission denied: 'C:\\Python27\\Lib\\site-packages\\pywin32_system32\\pythoncom27.dll'
tardyp added a commit to tardyp/buildbot that referenced this issue Feb 27, 2018
to revert when mhammond/pywin32#1171 is fixed

This reverts commit cd1bdb1.
@ghost
Copy link

ghost commented Feb 27, 2018

Duplicate pypa/pip#4874.

I submitted buildbot/buildbot#3974 to resolve the issue.

@ghost ghost closed this as completed Feb 27, 2018
@ghost ghost reopened this Feb 27, 2018
@ghost ghost closed this as completed Feb 27, 2018
@ghost
Copy link

ghost commented Feb 27, 2018

I've confirmed that the PR resolves the issue. As this is not our fault, closing.

Note: I share your frustration with the slow pace of pip development (which has not had a release for over a year now I think). I have tried to resolve the problem, but the people in charge of that project have foreclosed all possibilities to resolving the situation.

cc @pfmoore

@tardyp
Copy link
Author

tardyp commented Feb 28, 2018

@xoviat I think for the sanity of our users, we can't require them to install git version of pip.
So I kindly suggest to stick with pypiwin32 <222 for the wheels.

This is not only for buildbot's Appveyor CI, I expect to get lot of support request because people get confused by pywin32 not working with a standard pip install.

@ghost
Copy link

ghost commented Feb 28, 2018

I would hope to see a bugfix release of pip soon. As far as "working with a standard pip install", the bug only appears when pip is uninstalling an existing version.

@ghost
Copy link

ghost commented Feb 28, 2018

If you unpin the pypiwin32 version here, pip won't uninstall the existing version, and thus should succeed.

@tardyp
Copy link
Author

tardyp commented Feb 28, 2018

@xoviat looks like this pinning comes from docker/docker-py@a5490ad ( docker-py) is in our deps, which is a response to the previous issue with pypiwin32 222

@ghost
Copy link

ghost commented Feb 28, 2018

I supposed the pinning can be removed then?

@pfmoore
Copy link

pfmoore commented Feb 28, 2018

@tardyp To clarify, the issue is that pip cannot uninstall the current version of pywin32 (whether it's the pypiwin32 build or the pywin32 one), because one of our vendored libraries imports it (and hence locks the DLLs, which is what is causing the permission error on deletion).

There's a fix in pip master, but it can't be released at the moment as we have incomplete changes holding up a release.

Currently, your options are:

  1. Use the unreleased pip from git.
  2. Avoid needing to uninstall the currently installed version of pywin32 (I guess that's the "unpinning" option).
  3. Manually (or via a script that doesn't invoke pip) remove the current pywin32.

It's frustrating to all of us that we can't get a release of pip out with this (and other) fixes, but manpower on pip is severely limited and getting the outstanding work completed is proving to be a challenge.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants