Comments (5)
@samarthsarin is there any more to the error message?
In particular, it would be helpful to know what module contains the import statement leading to this warning.
However, a DeprecationWarning is just that - a warning - and on its own would not (usually!) cause program execution to halt.
from django-plotly-dash.
python .\source\manage.py runserver
Watching for file changes with StatReloader
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\ssarin\Anaconda3\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "C:\Users\ssarin\Anaconda3\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django\core\management\commands\runserver.py", line 125, in inner_run
autoreload.raise_last_exception()
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django\utils\autoreload.py", line 87, in raise_last_exception
raise exception[1]
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django\core\management_init.py", line 394, in execute
autoreload.check_errors(django.setup)()
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django_init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django\apps\registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django\apps\config.py", line 178, in create
mod = import_module(mod_path)
File "C:\Users\ssarin\Anaconda3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 961, in _find_and_load_unlocked
File "", line 219, in _call_with_frames_removed
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in find_and_load_unlocked
File "", line 671, in load_unlocked
File "", line 783, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django_plotly_dash_init.py", line 31, in
from .dash_wrapper import DjangoDash
File "C:\Users\ssarin\Anaconda3\lib\site-packages\django_plotly_dash\dash_wrapper.py", line 33, in
import dash
File "C:\Users\ssarin\Anaconda3\lib\site-packages\dash_init.py", line 36, in
from .dash import ( # noqa: F401,E402
File "C:\Users\ssarin\Anaconda3\lib\site-packages\dash\dash.py", line 22, in
from pkg_resources import get_distribution, parse_version
File "C:\Users\ssarin\Anaconda3\lib\site-packages\pkg_resources_init.py", line 73, in
from pkg_resources.extern import appdirs
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 655, in load_unlocked
File "", line 618, in load_backward_compatible
File "C:\Users\ssarin\Anaconda3\lib\site-packages\pkg_resources\extern_init.py", line 43, in load_module
import(extant)
File "C:\Users\ssarin\Anaconda3\lib\site-packages\pkg_resources_vendor\appdirs.py", line 560, in
import win32com.shell
File "C:\Users\ssarin\Anaconda3\lib\site-packages\win32com_init.py", line 6, in
import pythoncom
File "C:\Users\ssarin\Anaconda3\lib\site-packages\pythoncom.py", line 2, in
import pywintypes
File "C:\Users\ssarin\Anaconda3\lib\site-packages\win32\lib\pywintypes.py", line 2, in
import imp, sys, os
File "C:\Users\ssarin\Anaconda3\lib\imp.py", line 31, in
warnings.warn("the imp module is deprecated in favour of importlib; "
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
from django-plotly-dash.
So that warning is arising from some windows-specific functionality that in turn is being loaded by some modules that are being loaded by Dash - its not coming from django-plotly-dash
.
As a first step, I would check that python and Dash are correctly installed, and then try importing each of the packages in turn directly from a python REPL prompt.
from django-plotly-dash.
from django-plotly-dash.
Can you do the following:
- launch python
- enter
import django
and press return - enter
django.__version__
and press return - enter
import dash
and press return - enter
dash.__version__
and press return
and then report what responses you get for each step?
from django-plotly-dash.
Related Issues (20)
- allow_duplicate on outputs doesn't work HOT 7
- Using dash_leaflet causes js library to fail HOT 9
- Using dash-tradingview dash_tvlwc breaks the app in Django HOT 2
- Improve configuration documentation
- How to pass multiple pandas Time Series (created in Django view) to Dash callback? HOT 2
- allow_duplicate output fails silently
- Bootstrap 5 incompatibility
- How to make Playable Gifs for Django Dash? HOT 1
- AttributeError: 'function' object has no attribute 'expanded' HOT 4
- Assets not fetched correctly while using plotly_direct template tags HOT 7
- Enable get_asset_url to be used for file names passed to the DjangoDash constructor
- Support for Django 5.0 HOT 5
- plotly_direct tag overwrites template style set in base.html HOT 3
- Enable use on Django 5.0
- Increase dash version to 2.10 or greater HOT 3
- Dash Vega Components HOT 1
- Update documentation to refer to bootstrap 5
- plotly_direct HOT 4
- returning data from plotly to django HOT 1
- How to query database and pass it to the `plotly_app` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-plotly-dash.