-
Notifications
You must be signed in to change notification settings - Fork 796
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
import win32file not found #1634
Comments
This error can also arise if you've installed |
Had to scour for hours before finding this. In my case i also had to uninstall the pip-installed version of pywin32 that i had from god knows where. It was version 227. For whatever reason anaconda seemingly kept using this version instead of the conda version i had installed in my anaconda environment. |
At one time, the stock version of anaconda included pywin32 as part of its
default environment. My principal reason for avoiding conda was the fact
that they did not keep their copy (or fork?) of pywin32 up to date. It is
plausible that that is still going on. I have not checked. Will do that
when I have time.
…On Sun, Mar 20, 2022 at 10:34 AM Soppe ***@***.***> wrote:
This error can also arise if you've installed pywin32 via pip inside a
conda environment with python>=3.8. Workaround in that case is to install
pywin32 via conda (from conda-forge, in my case), instead of pip. More
details on SO <https://stackoverflow.com/a/70037907>.
Had to scour for hours before finding this. In my case i also had to
uninstall the pip-installed version of pywin32 that i had from god knows
where. It was version 227. For whatever reason anaconda seemingly kept
using this version instead of the conda version i had installed in my
anaconda environment.
—
Reply to this email directly, view it on GitHub
<#1634 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEZOBK4EQV2S5NWKLTJF7TVA5HRBANCNFSM4USOJLOA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This is the right solution. I wondered two days why my exe wasn't working while my script did indeed worked. When I debugged the exe, this error popped: "ImportError: DLL load failed while importing win32api: The specified procedure could not be found. [20540] Failed to execute script 'pyi_rth_win32comgenpy' due to unhandled exception!". The solution I found is located here. Practically, I had to conda install pywin32 in anaconda console(admin mode) and then pip install all the other modules I needed. |
Note that issues in this repository are only for bugs or feature requests in the pywin32.
If you need support or help using this package, please follow these instructions - support or help requests will be closed without comment.
For all bugs, please provide the following information.
When I try to use
azure.identity
package to importClientSecretCredential
, it tries to importwin32file
, but python raise the following error.ImportError: DLL load failed while importing win32file: The specified module could not be found.
I would expect the import to be successful.
Steps to reproduce the problem.
azure.identity==1.15.0
packagefrom azure.identity import ClientSecretCredential
Version of Python and pywin32
The text was updated successfully, but these errors were encountered: