Skip to content

WinPython error during: wppm -v --register #1675

@gregNS

Description

@gregNS
  • installed WinPython on Windows 10 via Winpython64-3.13.5.0slim.exe to C:\utils\python\WPy64-31350
  • executed WinPython Command Prompt.exe from file explorer window
  • executed command "wppm -v --register" from command prompt
  • entered "Y" to continue prompt
  • wppm exited with an error, output listed below
  • *.py and *.pyw files are not associated with python.exe
C:\utils\python\WPy64-31350>wppm -v --register
Register WinPython: associate file extensions, icons and context menu with this WinPython
registering C:\utils\python\WPy64-31350\python
continue ? Y/N
Y
Creating WinPython registry entries for C:\utils\python\WPy64-31350\python
HKEY_CURRENT_USER\Software\Classes\.py\:Python.File
HKEY_CURRENT_USER\Software\Classes\.py\Content Type:text/plain
HKEY_CURRENT_USER\Software\Classes\.pyw\:Python.NoConFile
HKEY_CURRENT_USER\Software\Classes\.pyw\Content Type:text/plain
HKEY_CURRENT_USER\Software\Classes\.pyc\:Python.CompiledFile
HKEY_CURRENT_USER\Software\Classes\Python.File\:Python File
HKEY_CURRENT_USER\Software\Classes\Python.File\DefaultIcon\:C:\utils\python\WPy64-31350\python\DLLs\py.ico
HKEY_CURRENT_USER\Software\Classes\Python.File\shellex\DropHandler\:{60254CA5-953B-11CF-8C96-00AA00B8708C}
HKEY_CURRENT_USER\Software\Classes\Python.NoConFile\:Python File (no console)
HKEY_CURRENT_USER\Software\Classes\Python.NoConFile\DefaultIcon\:C:\utils\python\WPy64-31350\python\DLLs\py.ico
HKEY_CURRENT_USER\Software\Classes\Python.NoConFile\shellex\DropHandler\:{60254CA5-953B-11CF-8C96-00AA00B8708C}
HKEY_CURRENT_USER\Software\Classes\Python.CompiledFile\:Compiled Python File
HKEY_CURRENT_USER\Software\Classes\Python.CompiledFile\DefaultIcon\:C:\utils\python\WPy64-31350\python\DLLs\pyc.ico
HKEY_CURRENT_USER\Software\Classes\Python.CompiledFile\shellex\DropHandler\:{60254CA5-953B-11CF-8C96-00AA00B8708C}
HKEY_CURRENT_USER\Software\Classes\Python.File\shell\open\command\:"C:\utils\python\WPy64-31350\python\python.exe" "%1" %*
HKEY_CURRENT_USER\Software\Classes\Python.NoConFile\shell\open\command\:"C:\utils\python\WPy64-31350\python\pythonw.exe" "%1" %*
HKEY_CURRENT_USER\Software\Classes\Python.CompiledFile\shell\open\command\:"C:\utils\python\WPy64-31350\python\python.exe" "%1" %*
HKEY_CURRENT_USER\Software\Classes\Python.File\shell\Edit with IDLE\command\:"C:\utils\python\WPy64-31350\python\pythonw.exe" "C:\utils\python\WPy64-31350\python\Lib\idlelib\idle.pyw" -n -e "%1"
HKEY_CURRENT_USER\Software\Classes\Python.NoConFile\shell\Edit with IDLE\command\:"C:\utils\python\WPy64-31350\python\pythonw.exe" "C:\utils\python\WPy64-31350\python\Lib\idlelib\idle.pyw" -n -e "%1"
HKEY_CURRENT_USER\Software\Classes\Python.File\shell\Edit with Spyder\command\:"C:\utils\python\WPy64-31350\Spyder.exe" "%1" -w "%w"
HKEY_CURRENT_USER\Software\Classes\Python.NoConFile\shell\Edit with Spyder\command\:"C:\utils\python\WPy64-31350\Spyder.exe" "%1" -w "%w"
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\DisplayName:Python 3.13.5 (64bit)
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\SupportUrl:https://winpython.github.io
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\SysVersion:3.13
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\SysArchitecture:64bit
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\Version:3.13.5
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\InstallPath\:C:\utils\python\WPy64-31350\python
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\InstallPath\ExecutablePath:C:\utils\python\WPy64-31350\python\python.exe
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\InstallPath\WindowedExecutablePath:C:\utils\python\WPy64-31350\python\pythonw.exe
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\InstallPath\InstallGroup\:Python 3.13
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\Modules\:
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\PythonPath\:C:\utils\python\WPy64-31350\python\Lib;C:\utils\python\WPy64-31350\python\DLLs
HKEY_CURRENT_USER\Software\Python\WinPython\3.13\Help\Main Python Documentation\:C:\utils\python\WPy64-31350\python\Doc\html\index.html
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\utils\python\WPy64-31350\python\Scripts\wppm.exe\__main__.py", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\utils\python\WPy64-31350\python\Lib\site-packages\winpython\wppm.py", line 345, in main
    associate.register(dist.target, verbose=args.verbose)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\utils\python\WPy64-31350\python\Lib\site-packages\winpython\associate.py", line 242, in register
    print(f'Creating WinPython menu for all icons in {target.parent}')
                                                      ^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'parent'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions