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

NotImplementedError: No usable implementation found! whith usable implementations on the system. #108

Closed
AlbericC opened this issue Jan 26, 2015 · 3 comments

Comments

@AlbericC
Copy link
Contributor

platform in linux mint17.1 mate (ubuntu-based) with an almost fresh install.

import plyer
plyer.notification
plyer.notification.notify()

raises NotImplementedError: No usable implementation found! with this traceback.

----> 1 plyer.notification.notify()
/usr/local/lib/python3.4/dist-packages/plyer/facades.py in notify(self, title, message, app_name, app_icon, timeout)
     96         '''
     97         self._notify(title=title, message=message, app_icon=app_icon,
---> 98                      app_name=app_name, timeout=timeout)
     99 
    100     # private

/usr/local/lib/python3.4/dist-packages/plyer/facades.py in _notify(self, **kwargs)
    101 
    102     def _notify(self, **kwargs):
--> 103         raise NotImplementedError("No usable implementation found!")
    104 
    105 

trying to corner the malfunction and to determine whetther my setup is wrong, I tried this :

Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import plyer
>>> plyer.utils.platform
'unknown'
>>> plyer.utils._determine_platform()
'unknown'
>>> plyer.utils._sys_platform
'linux'
>>> plyer.utils._sys_platform.startswith("linux")   # mimics test on utils.py L38
True

so according to utils.py, plyer.utils.platform should be 'linux' ... but apparently _determine_platform() does not return what seems straightforward.

it can be worked around for testing purposes with

from sys import platform
if platform == 'linux':
    plyer.utils.platform = 'linux'  # only for testing purposes !!! 

but for obvious reasons, this is does not look like a good idea.

@AlbericC
Copy link
Contributor Author

this isse is resolved by installing the master branch from github, but is (today) apparent in the pypi version.

@babylongbot
Copy link

Hi, sort of beginner at all of this and don't really understand how to use git facing the same issue running the code in vs code on macos with python 3.9.9 "venv" interpreter, pls help me solve this issue

@mad-00
Copy link

mad-00 commented Sep 24, 2022

did u get any solution @babylongbot

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

3 participants