-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Importing Dash.jl component libraries prior to Dash throws a "UndefVarError: DashBase not defined" error #1432
Importing Dash.jl component libraries prior to Dash throws a "UndefVarError: DashBase not defined" error #1432
Comments
Yes, that’s expected. The core (dcc, html, table) depend on DashBase so that Dash can depend on them, rather than the other way around as non-core component packages do. |
OK. I'm guessing that load order is important, then, since I see julia> using DashUserGuideComponents
[ Info: Precompiling DashUserGuideComponents [1b08a953-4be3-4667-9a23-e667f8ac7b1d]
ERROR: InitError: UndefVarError: DashBase not defined
Stacktrace:
[1] __init__() at /home/rpkyle/PlotlyRepos/dash-docs/dash-user-guide-components/src/DashUserGuideComponents.jl:12
[2] run_repl(::REPL.AbstractREPL, ::Any) at /build/julia/src/julia-1.5.2/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:288
during initialization of module DashUserGuideComponents
julia> using Dash
julia> using DashUserGuideComponents If that's true, we'll just have to be careful to note this in the documentation since it may cause some confusion otherwise. Closing. |
Hmm, so dugc is trying to import DashBase? It shouldn’t, it should get the base component class from Dash instead. |
@waralex if I'm understanding this correctly we just need to have dash/dash/development/_jl_components_generation.py Lines 62 to 63 in 938c3ca
swap to dash/dash/development/_jl_components_generation.py Lines 363 to 364 in 938c3ca
|
This is pretty weird, I'm trying to figure out what the problem is |
@alexcjohnson I think we can close this one once Dash.jl is updated via the Registrator, at least on my end the error no longer appears in v0.1.3. |
While generating the Julia version of
DashUserGuideComponents
, I noticed that theProject.toml
doesn't contain an entry forDashBase
, e.g.Glancing at
DashCoreComponents
, it looks like theProject.toml
includes an entry forDashBase
in both the[deps]
and[compat]
sections.@waralex @alexcjohnson
The text was updated successfully, but these errors were encountered: