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

Warning message when 'using PlotlyBase' #78

Open
casasgomezuribarri opened this issue Aug 17, 2021 · 2 comments
Open

Warning message when 'using PlotlyBase' #78

casasgomezuribarri opened this issue Aug 17, 2021 · 2 comments

Comments

@casasgomezuribarri
Copy link

casasgomezuribarri commented Aug 17, 2021

I like using PlotlyJS, and have never had a problem with it. Today, after running using PlotlyBase I started getting a warning message that I don't know what means:

Warning: Error requiring DataFrames from PlotlyBase
│ exception =
│ LoadError: syntax: invalid named tuple element "symbol"
│ Stacktrace:
│ [1] top-level scope at C:\Users\ivica.julia\packages\PlotlyBase\pqlQu\src\dataframes_api.jl:118
│ [2] include(::Module, ::String) at .\Base.jl:377
│ [3] include(::String) at C:\Users\ivica.julia\packages\PlotlyBase\pqlQu\src\PlotlyBase.jl:1
│ [4] top-level scope at C:\Users\ivica.julia\packages\Requires\7Ncym\src\Requires.jl:40
│ [5] eval at .\boot.jl:331 [inlined]
│ [6] eval at C:\Users\ivica.julia\packages\PlotlyBase\pqlQu\src\PlotlyBase.jl:1 [inlined]
│ [7] (::PlotlyBase.var"#264#282")() at C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:99
│ [8] err(::Any, ::Module, ::String) at C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:47
│ [9] (::PlotlyBase.var"#263#281")() at C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:98
│ [10] withpath(::Any, ::String) at C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:37
│ [11] (::PlotlyBase.var"#262#280")() at C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:97
│ [12] listenpkg(::Any, ::Base.PkgId) at C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:20
│ [13] macro expansion at C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:95 [inlined]
│ [14] init() at C:\Users\ivica.julia\packages\PlotlyBase\pqlQu\src\PlotlyBase.jl:157
│ [15] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:697
│ [16] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:781
│ [17] _require(::Base.PkgId) at .\loading.jl:1006
│ [18] require(::Base.PkgId) at .\loading.jl:927
│ [19] require(::Module, ::Symbol) at .\loading.jl:922
│ [20] include_string(::Module, ::String, ::String) at .\loading.jl:1080
│ [21] #invokelatest#1 at .\essentials.jl:712 [inlined]
│ [22] invokelatest at .\essentials.jl:711 [inlined]
│ [23] inlineeval(::Module, ::String, ::Int64, ::Int64, ::String; softscope::Bool) at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:201
│ [24] (::VSCodeServer.var"#58#62"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:153
│ [25] withpath(::VSCodeServer.var"#58#62"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}, ::String) at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\repl.jl:185
│ [26] (::VSCodeServer.var"#57#61"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:151
│ [27] hideprompt(::VSCodeServer.var"#57#61"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}) at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\repl.jl:36
│ [28] #56 at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:122 [inlined]
│ [29] with_logstate(::VSCodeServer.var"#56#60"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}, ::Base.CoreLogging.LogState) at .\logging.jl:398
│ [30] with_logger(::Function, ::VSCodeServer.VSCodeLogger) at .\logging.jl:505
│ [31] (::VSCodeServer.var"#55#59"{VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:191
│ [32] #invokelatest#1 at .\essentials.jl:712 [inlined]
│ [33] invokelatest(::Any) at .\essentials.jl:711
│ [34] macro expansion at c:\Users\ivica.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
│ [35] (::VSCodeServer.var"#53#54")() at .\task.jl:358
│ in expression starting at C:\Users\ivica.julia\packages\PlotlyBase\pqlQu\src\dataframes_api.jl:118
└ @ Requires C:\Users\ivica.julia\packages\Requires\7Ncym\src\require.jl:49

The warning message doesn't appear on the REPL, only when I work on my VSCode project. I am also unsure of what extra information I should supply

@sglyon
Copy link
Owner

sglyon commented Aug 18, 2021

Hmm, that is strange.

Could you please update to the latest version of your packages and then post the output of the status command from the pkg promt?

@casasgomezuribarri
Copy link
Author

Sure:

> Status `C:\Users\ivica\Documents\GitHub\Mozzie_diagnostics\Project.toml`
>   [5f4fecfd] BrowseTables v0.3.0
>   [336ed68f] CSV v0.8.5
>   [324d7699] CategoricalArrays v0.9.7
>   [a93c6f00] DataFrames v0.22.7
>   [1313f7d8] DataFramesMeta v0.8.0
>   [7806a523] DecisionTree v0.10.10
>   [31c24e10] Distributions v0.24.18
>   [f6006082] EvoTrees v0.8.3
>   [cd3eb016] HTTP v0.9.13
>   [09f84164] HypothesisTests v0.10.4
>   [7073ff75] IJulia v1.23.2
>   [f4508453] InfoZIP v0.2.0
>   [9da8a3cd] JLSO v2.6.0
>   [1028da5a] LAJuliaUtils v0.3.0 #master (https://github.com/sylvaticus/LAJuliaUtils.jl.git)
>   [b1bec4e5] LIBSVM v0.6.0
>   [7acf609c] LightGBM v0.5.2
>   [5c8ed15e] LinearOperators v2.1.0
>   [30fc2ffe] LossFunctions v0.6.2
>   [f0e99cf1] MLBase v0.8.0
>   [add582a8] MLJ v0.16.5
>   [a7f614a8] MLJBase v0.18.1
>   [c6f25543] MLJDecisionTreeInterface v0.1.3
>   [094fc8d1] MLJFlux v0.1.10
>   [caf8df21] MLJGLMInterface v0.1.6
>   [61c7150f] MLJLIBSVMInterface v0.1.3
>   [6ee0df7b] MLJLinearModels v0.5.6
>   [d491faf4] MLJModels v0.14.7
>   [1b6a4a23] MLJMultivariateStatsInterface v0.2.2
>   [33e4bacb] MLJNaiveBayesInterface v0.1.4
>   [2e2323e0] MLJScientificTypes v0.4.5
>   [5ae90465] MLJScikitLearnInterface v0.1.10
>   [54119dfa] MLJXGBoostInterface v0.1.4
>   [442fdcdd] Measures v0.3.1
>   [6f286f6a] MultivariateStats v0.8.0
>   [b8a86587] NearestNeighbors v0.4.9
>   [90014a1f] PDMats v0.10.1
>   [2c7acb1b] PDMatsExtras v2.5.0
>   [3b7a836e] PGFPlots v3.4.0
>   [f4b1acfe] PartialLeastSquaresRegressor v2.2.0
>   [a03496cd] PlotlyBase v0.8.11
>   [f0f68f2c] PlotlyJS v0.18.5
>   [91a5bcdd] Plots v1.6.12
>   [c3e4b0f8] Pluto v0.14.0 #master (https://github.com/fonsp/Pluto.jl.git)
>   [7f904dfe] PlutoUI v0.7.1
>   [f27b6e38] Polynomials v2.0.14
>   [54e16d92] PrettyPrinting v0.3.2
>   [438e738f] PyCall v1.92.3
>   [d330b81b] PyPlot v2.9.0
>   [ce6b1742] RDatasets v0.7.5
>   [3646fa90] ScikitLearn v0.6.4
>   [860ef19b] StableRNGs v1.0.0
>   [2913bbd2] StatsBase v0.33.9
>   [f3b207a7] StatsPlots v0.14.26
>   [fd094767] Suppressor v0.2.0
>   [856ac37a] UrlDownload v1.0.0
>   [009559a3] XGBoost v1.1.1
>   [a5390f91] ZipFile v0.9.3
>   [56ddb016] Logging
>   [de0858da] Printf
>   [9a3f8284] Random

The issue is related to how DataFrames and PlotlyBase interact. If I try using with one of the packages there is no warning message, but it appears when I try using with the other one, no matter the order:

using PlotlyBase
using DataFrames
> ┌ Warning: Error requiring `DataFrames` from `PlotlyBase`
> │   exception =
> │    LoadError: syntax: invalid named tuple element "symbol"
> │    Stacktrace:
> │     [1] top-level scope at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\dataframes_api.jl:138      
> │     [2] include(::Module, ::String) at .\Base.jl:377
> │     [3] include(::String) at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\PlotlyBase.jl:1
> │     [4] top-level scope at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\Requires.jl:40
> │     [5] eval at .\boot.jl:331 [inlined]
> │     [6] eval at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\PlotlyBase.jl:1 [inlined]
> │     [7] (::PlotlyBase.var"#313#331")() at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:99 
> │     [8] err(::Any, ::Module, ::String) at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:47 
> │     [9] (::PlotlyBase.var"#312#330")() at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:98 
> │     [10] withpath(::Any, ::String) at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:37     
> │     [11] (::PlotlyBase.var"#311#329")() at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:97
> │     [12] #invokelatest#1 at .\essentials.jl:712 [inlined]
> │     [13] invokelatest at .\essentials.jl:711 [inlined]
> │     [14] foreach at .\abstractarray.jl:1919 [inlined]
> │     [15] loadpkg(::Base.PkgId) at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:27
> │     [16] #invokelatest#1 at .\essentials.jl:712 [inlined]
> │     [17] invokelatest at .\essentials.jl:711 [inlined]
> │     [18] require(::Base.PkgId) at .\loading.jl:930
> │     [19] require(::Module, ::Symbol) at .\loading.jl:922
> │     [20] include_string(::Module, ::String, ::String) at .\loading.jl:1080
> │     [21] #invokelatest#1 at .\essentials.jl:712 [inlined]
> │     [22] invokelatest at .\essentials.jl:711 [inlined]
> │     [23] inlineeval(::Module, ::String, ::Int64, ::Int64, ::String; softscope::Bool) at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:201
> │     [24] (::VSCodeServer.var"#58#62"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:153
> │     [25] withpath(::VSCodeServer.var"#58#62"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}, ::String) at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\repl.jl:185
> │     [26] (::VSCodeServer.var"#57#61"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:151
> │     [27] hideprompt(::VSCodeServer.var"#57#61"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}) at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\repl.jl:36
> │     [28] #56 at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:122 [inlined]
> │     [29] with_logstate(::VSCodeServer.var"#56#60"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}, ::Base.CoreLogging.LogState) at .\logging.jl:398
> │     [30] with_logger(::Function, ::VSCodeServer.VSCodeLogger) at .\logging.jl:505
> │     [31] (::VSCodeServer.var"#55#59"{VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:191
> │     [32] #invokelatest#1 at .\essentials.jl:712 [inlined]
> │     [33] invokelatest(::Any) at .\essentials.jl:711
> │     [34] macro expansion at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
> │     [35] (::VSCodeServer.var"#53#54")() at .\task.jl:358
>in expression starting at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\dataframes_api.jl:138
> └ @ Requires C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:49
using DataFrames
using PlotlyBase
> ┌ Warning: Error requiring `DataFrames` from `PlotlyBase`
> │   exception =
> │    LoadError: syntax: invalid named tuple element "symbol"
> │    Stacktrace:
> │     [1] top-level scope at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\dataframes_api.jl:138      
> │     [2] include(::Module, ::String) at .\Base.jl:377
> │     [3] include(::String) at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\PlotlyBase.jl:1
> │     [4] top-level scope at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\Requires.jl:40
> │     [5] eval at .\boot.jl:331 [inlined]
> │     [6] eval at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\PlotlyBase.jl:1 [inlined]
> │     [7] (::PlotlyBase.var"#313#331")() at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:99 
> │     [8] err(::Any, ::Module, ::String) at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:47 
> │     [9] (::PlotlyBase.var"#312#330")() at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:98 
> │     [10] withpath(::Any, ::String) at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:37     
> │     [11] (::PlotlyBase.var"#311#329")() at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:97
> │     [12] listenpkg(::Any, ::Base.PkgId) at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:20
> │     [13] macro expansion at C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:95 [inlined]     
> │     [14] __init__() at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\PlotlyBase.jl:170
> │     [15] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:697
> │     [16] _require_search_from_serialized(::Base.PkgId, ::String) at .\loading.jl:781
> │     [17] _require(::Base.PkgId) at .\loading.jl:1006
> │     [18] require(::Base.PkgId) at .\loading.jl:927
> │     [19] require(::Module, ::Symbol) at .\loading.jl:922
> │     [20] include_string(::Module, ::String, ::String) at .\loading.jl:1080
> │     [21] #invokelatest#1 at .\essentials.jl:712 [inlined]
> │     [22] invokelatest at .\essentials.jl:711 [inlined]
> │     [23] inlineeval(::Module, ::String, ::Int64, ::Int64, ::String; softscope::Bool) at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:201
> │     [24] (::VSCodeServer.var"#58#62"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:153
> │     [25] withpath(::VSCodeServer.var"#58#62"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}, ::String) at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\repl.jl:185
> │     [26] (::VSCodeServer.var"#57#61"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:151
> │     [27] hideprompt(::VSCodeServer.var"#57#61"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}) at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\repl.jl:36
> │     [28] #56 at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:122 [inlined]
> │     [29] with_logstate(::VSCodeServer.var"#56#60"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}, ::Base.CoreLogging.LogState) at .\logging.jl:398
> │     [30] with_logger(::Function, ::VSCodeServer.VSCodeLogger) at .\logging.jl:505
> │     [31] (::VSCodeServer.var"#55#59"{VSCodeServer.ReplRunCodeRequestParams})() at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:191
> │     [32] #invokelatest#1 at .\essentials.jl:712 [inlined]
> │     [33] invokelatest(::Any) at .\essentials.jl:711
> │     [34] macro expansion at c:\Users\ivica\.vscode\extensions\julialang.language-julia-1.3.30\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
> │     [35] (::VSCodeServer.var"#53#54")() at .\task.jl:358
>in expression starting at C:\Users\ivica\.julia\packages\PlotlyBase\6w3v1\src\dataframes_api.jl:138
> └ @ Requires C:\Users\ivica\.julia\packages\Requires\7Ncym\src\require.jl:49

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

2 participants