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

still can't get my hands on win32ui #1432

Closed
ghost opened this issue Oct 23, 2019 · 4 comments
Closed

still can't get my hands on win32ui #1432

ghost opened this issue Oct 23, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 23, 2019

  • Expected behavior
    pywin application window
    actual behavior.
    error "still can't get my hands on win32ui"

  • Steps to reproduce the problem.
    download and run pywin32-225.win32-py3.8.exe
    installation completes with no apparant problem
    open Pythonwin.exe

  • Version of Python = 3.8.0
    pywin32 = 225

@taodailOryx
Copy link

Have you run python.exe Scripts\pywin32_postinstall.py -install in your Python install folder with elevation?

@ghost
Copy link
Author

ghost commented Oct 29, 2019

I opened a command prompt using the run as administrator option. Got this error:

C:\Python38\Scripts>..\python pywin32_postinstall.py -install
Parsed arguments are: Namespace(destination='C:\Python38\Lib\site-packages', install=True, quiet=False, remove=False, silent=False, wait=None)
pywin32_postinstall.py:164: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Copied pythoncom38.dll to C:\WINDOWS\system32\pythoncom38.dll
Traceback (most recent call last):
File "pywin32_postinstall.py", line 633, in
install(args.destination)
File "pywin32_postinstall.py", line 363, in install
os.unlink(bad_fname)
PermissionError: [WinError 5] Access is denied: 'C:\Python38\pythoncom38.dll'

@GMLeah
Copy link

GMLeah commented Oct 31, 2019

@bgailer looks wierd... should have copied some dll to sys folder. it should successfully copied the DLL files in windows system folder... in my case when i run... it copied python*38.dll files. im using 64bit. yours in 32bit... check folder permission ?

Copied pythoncom38.dll to C:\WINDOWS\SysWOW64\pythoncom38.dll
Copied pywintypes38.dll to C:\WINDOWS\SysWOW64\pywintypes38.dll
Registered: Python.Interpreter
Registered: Python.Dictionary
Registered: Python
-> Software\Python\PythonCore\3.8\Help[None]=None
-> Software\Python\PythonCore\3.8\Help\Pythonwin Reference[None]='C:\Python38-3
2\Lib\site-packages\PyWin32.chm'
Pythonwin has been registered in context menu
('Creating directory', 'C:\Python38-32\Lib\site-packages\win32com\gen_py')

vernondcole pushed a commit to vernondcole/pywin32 that referenced this issue Nov 16, 2019
This directory is now added to the start of PATH for version 3.7 and earlier,
and passed to os.add_dll_directory() on 3.8 and later. This will hopefully
work around problems loading pywintypes.dll in various situations.

Fixes mhammond#1432, fixes mhammond#1431
@mhammond
Copy link
Owner

mhammond commented Feb 1, 2021

pywin32-228-cp39-cp39-win32.whl

This is fixed in 300.

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

3 participants