dcc.Input( AttributeError: partially initialized module 'dash_core_components' has no attribute 'Input' (most likely due to a circular import)
Open
Nobody has claimed this yet.
bug
P3
- Dominant language
- Python
- Stars
- 24.4k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 13
Description
Error shown
dcc.Input(
AttributeError: partially initialized module 'dash_core_components' has no attribute 'Input' (most likely due to a circular import)
libraries that I'm using -
# importing required libraries
import dash
import dash_core_components as dcc
import dash_html_components as html
# importing data reader for for grabing stock information
import pandas_datareader.data as web
from datetime import datetime
# importing for Input/Output
from dash.dependencies import Input, Output, State
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported import sequence using dash, dash_core_components, dash_html_components, pandas_datareader, and dash.dependencies. Trace why dcc.Input is unavailable during import, then verify the issue is resolved when the listed libraries are imported and dcc.Input can be used successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100