Skip to content

FileChooser raises NotImplementedError/ModuleNotFoundError without pywin32 on windows 10 #735

@nWestie

Description

@nWestie

When using plyer FileChooser without kivy, it raises an error when it cannot find the win32 module. After installing pywin32, it works fine. Could pywin32 be added as a dependancy of plyer, to reduce confusion? Kivy installs it automatically on windows.
See also: #602
the full error/traceback:

Traceback (most recent call last):
File "C:\Users<USER>\scripts.venv\lib\site-packages\plyer\utils.py", line 96, in _ensure_obj
mod = import(module, fromlist='.')
from win32com.shell.shell import (
ModuleNotFoundError: No module named 'win32com'
Traceback (most recent call last):
File "c:\Users<USER>\Scripts\linecounter.py", line 3, in
fileName = filechooser.open_file(
return self._file_selection_dialog(mode="open", *args, **kwargs)
File "C:\Users<USER>\scripts.venv\lib\site-packages\plyer\facades\filechooser.py", line 74, in _file_selection_dialog
raise NotImplementedError()
NotImplementedError

I am on windows 10, with python 3.10

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions