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

Issue in plyer.filechooser #602

Open
dhmartinj23 opened this issue Jan 20, 2021 · 4 comments
Open

Issue in plyer.filechooser #602

dhmartinj23 opened this issue Jan 20, 2021 · 4 comments

Comments

@dhmartinj23
Copy link

While executing filechooser action in KIVY app. It got closed with "NotImplementedError".

Logs
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\utils.py", line 93, in ensure_obj
mod = import(module, fromlist='.')
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\platforms\win\filechooser.py", line 7, in
from win32com.shell.shell import (
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\win32com_init.py", line 5, in
import win32api, sys, os
ImportError: DLL load failed: The specified procedure could not be found.
[INFO ] [Base ] Leaving application in progress...
Traceback (most recent call last):
File "main.py", line 88, in
MainApp().run()
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\app.py", line 855, in run
runTouchApp()
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\base.py", line 504, in runTouchApp
EventLoop.window.mainloop()
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\core\window\window_sdl2.py", line 747, in mainloop
self._mainloop()
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\core\window\window_sdl2.py", line 479, in _mainloop
EventLoop.idle()
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\base.py", line 339, in idle
Clock.tick()
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\clock.py", line 591, in tick
self._process_events()
File "kivy_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events
File "kivy_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events
File "kivy_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events
File "kivy_clock.pyx", line 167, in kivy._clock.ClockEvent.tick
File "E:\Python\PythonModules\GUI\KivyApps\KivyMD-Project-Creator-main\libs\uix\baseclass\get_details_screen.py", line 238, in _open_file_chooser
filechooser.choose_dir(on_selection=self.on_path_selection)
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\facades\filechooser.py", line 65, in choose_dir
return self._file_selection_dialog(mode="dir", *args, **kwargs)
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\facades\filechooser.py", line 70, in _file_selection_dialog
raise NotImplementedError()
NotImplementedError

@AndiEcker
Copy link

AndiEcker commented Jan 20, 2021 via email

@dhmartinj23
Copy link
Author

Kivy's file chooser is working fine for me. Assuming it comes from the failing import shown at the beginning of your traceback: ImportError: DLL load failed: The specified procedure could not be found.
Looks like the win32api package is not properly installed in your python environment. More help you get here by providing infos on your system/versions and a minimal running example demonstrating your problem Am Mi., 20. Jan. 2021 um 11:26 Uhr schrieb dhmartinj23 < notifications@github.com>:

While executing filechooser action in KIVY app. It got closed with "NotImplementedError". Logs Traceback (most recent call last): File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\utils.py", line 93, in ensure_obj mod = import(module, fromlist='.') File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\platforms\win\filechooser.py", line 7, in from win32com.shell.shell import ( File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\win32com_init.py", line 5, in import win32api, sys, os ImportError: DLL load failed: The specified procedure could not be found. [INFO ] [Base ] Leaving application in progress... Traceback (most recent call last): File "main.py", line 88, in MainApp().run() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\app.py", line 855, in run runTouchApp() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\base.py", line 504, in runTouchApp EventLoop.window.mainloop() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\core\window\window_sdl2.py", line 747, in mainloop self._mainloop() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\core\window\window_sdl2.py", line 479, in _mainloop EventLoop.idle() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\base.py", line 339, in idle Clock.tick() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\kivy\clock.py", line 591, in tick self._process_events() File "kivy_clock.pyx", line 384, in kivy._clock.CyClockBase._process_events File "kivy_clock.pyx", line 414, in kivy._clock.CyClockBase._process_events File "kivy_clock.pyx", line 412, in kivy._clock.CyClockBase._process_events File "kivy_clock.pyx", line 167, in kivy._clock.ClockEvent.tick File "E:\Python\PythonModules\GUI\KivyApps\KivyMD-Project-Creator-main\libs\uix\baseclass\get_details_screen.py", line 238, in _open_file_chooser filechooser.choose_dir(on_selection=self.on_path_selection) File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\facades\filechooser.py", line 65, in choose_dir return self._file_selection_dialog(mode="dir", *args, **kwargs) File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\plyer\facades\filechooser.py", line 70, in _file_selection_dialog raise NotImplementedError() NotImplementedError — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#602>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4U63TDGWV4ECCMCZYIHKDS224VPANCNFSM4WKQZFYA .

Thanks,

i reinstalled the win32api. but issue still persists.

Win 10
Python 3.7
win32api 300

@Wild-in-Programming
Copy link

I am facing the same issue... It is working fine in Windows but not on Mac

@fjmsouza
Copy link

Consider install the pywin32 and pypiwin32 to solve conflicts with Windows.

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

4 participants