Skip to content

Fix pywin.tools.regpy's ModuleNotFoundError: No module named 'dialog'#2187

Merged
mhammond merged 1 commit intomhammond:mainfrom
Avasam:fix-pywin.tools.regpy
Feb 27, 2024
Merged

Fix pywin.tools.regpy's ModuleNotFoundError: No module named 'dialog'#2187
mhammond merged 1 commit intomhammond:mainfrom
Avasam:fix-pywin.tools.regpy

Conversation

@Avasam
Copy link
Copy Markdown
Collaborator

@Avasam Avasam commented Feb 27, 2024

Extracted from #2102

Before:

>>> import pywin.tools.regpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python39\lib\site-packages\Pythonwin\pywin\tools\regpy.py", line 3, in <module>
    import dialog
ModuleNotFoundError: No module named 'dialog'
PS C:\Program Files\Python39\Lib\site-packages\pythonwin\pywin\tools> python .\regpy.py
Traceback (most recent call last):
  File "C:\Program Files\Python39\Lib\site-packages\pythonwin\pywin\tools\regpy.py", line 3, in <module>
    import dialog
ModuleNotFoundError: No module named 'dialog'

After:

>>> import pywin.tools.regpy
# (no import error)

image

Copy link
Copy Markdown
Owner

@mhammond mhammond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mhammond mhammond merged commit 1db3a90 into mhammond:main Feb 27, 2024
@Avasam Avasam deleted the fix-pywin.tools.regpy branch February 27, 2024 21:40
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

Successfully merging this pull request may close these issues.

2 participants