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

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

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

Avasam
Copy link
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
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
16 checks passed
@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