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

matplotlib import error #29

Open
cancom84 opened this issue Aug 13, 2021 · 1 comment
Open

matplotlib import error #29

cancom84 opened this issue Aug 13, 2021 · 1 comment

Comments

@cancom84
Copy link
Collaborator

[CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
sdl2 - ImportError: DLL load failed while importing window_sdl2: The specified module could not be found.
File "C:\Users\tunguy\Anaconda3\lib\site-packages\kivy-2.0.0-py3.8-win-amd64.egg\kivy\core_init
.py", line 58, in core_select_lib
mod = import(name='{2}.{0}.{1}'.format(
File "C:\Users\tunguy\Anaconda3\lib\site-packages\kivy-2.0.0-py3.8-win-amd64.egg\kivy\core\window\window_sdl2.py", line 27, in
from kivy.core.window._window_sdl2 import _WindowSDL2Storage

Traceback (most recent call last):
File "main.py", line 55, in
from es_gui.apps.data_manager.data_manager import DataManager
File "c:\work\quest\snl-quest\es_gui\apps\data_manager\data_manager.py", line 17, in
from es_gui.resources.widgets.common import LoadingModalView
File "c:\work\quest\snl-quest\es_gui\resources\widgets\common.py", line 11, in
mpl.use('module://kivy.garden.matplotlib.backend_kivy')
File "C:\Users\tunguy\Anaconda3\lib\site-packages\matplotlib_init_.py", line 1171, in use
plt.switch_backend(name)
File "C:\Users\tunguy\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 276, in switch_backend
class backend_mod(matplotlib.backend_bases.Backend):
File "C:\Users\tunguy\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 277, in backend_mod
locals().update(vars(importlib.import_module(backend_name)))
File "C:\Users\tunguy\Anaconda3\lib\importlib_init
.py", line 127, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\tunguy\Anaconda3\lib\site-packages\kivy-2.0.0-py3.8-win-amd64.egg\kivy\garden_init
.py", line 180, in load_module
return self.load_module(fullname, moddir)
File "C:\Users\tunguy\Anaconda3\lib\site-packages\kivy-2.0.0-py3.8-win-amd64.egg\kivy\garden_init
.py", line 183, in _load_module
mod = imp.load_module(fullname, None, moddir,
File "C:\Users\tunguy\Anaconda3\lib\imp.py", line 244, in load_module
return load_package(name, filename)
File "C:\Users\tunguy\Anaconda3\lib\imp.py", line 216, in load_package
return load(spec)
File "C:\work\quest\snl-quest\libs\garden\garden.matplotlib_init
.py", line 1, in
from kivy.garden.matplotlib.backend_kivy import FigureCanvasKivy,
File "C:\work\quest\snl-quest\libs\garden\garden.matplotlib\backend_kivy.py", line 256, in
from matplotlib import _png
ImportError: cannot import name 'png' from 'matplotlib' (C:\Users\tunguy\Anaconda3\lib\site-packages\matplotlib_init.py)

@cancom84
Copy link
Collaborator Author

cancom84 commented Aug 13, 2021

For now, please downgrade matplotlib to 3.1.3:
pip install matplotlib==3.1.3

@cancom84 cancom84 reopened this Aug 13, 2021
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

1 participant