Skip to content

Errors trying to use logomaker #164

Closed
@cossio

Description

@cossio

I am trying to use the logomaker python package, https://logomaker.readthedocs.io/en/latest/examples.html.

I try this:

logomaker = PythonCall.pyimport("logomaker")
crp_df = logomaker.get_example_matrix("crp_energy_matrix"; print_description=false)
crp_logo = logomaker.Logo(crp_df, shade_below=.5, fade_below=.5, font_name="Arial Rounded MT Bold")
crp_logo.style_spines(visible=false)
crp_logo.style_spines(spines=["left", "bottom"], visible=true)
crp_logo.style_xticks(rotation=90, fmt="%d", anchor=0)
crp_logo

following the first example in the link above.

However this gives a series of errors.

First, the following line is printed multiple times: Intel MKL ERROR: Parameter 11 was incorrect on entry to DGEEV.. Not sure what that means.

Second, I get the following explicit error:

Python: LogomakerError: type(spines) = <class 'juliacall.VectorValue'>; must be of type (tuple, list, set) 

Stacktrace:
 [1] pythrow()
   @ PythonCall ~/.julia/packages/PythonCall/XgP8G/src/err.jl:94
 [2] errcheck
   @ ~/.julia/packages/PythonCall/XgP8G/src/err.jl:10 [inlined]
 [3] pycallargs
   @ ~/.julia/packages/PythonCall/XgP8G/src/abstract/object.jl:154 [inlined]
 [4] pycall(::PythonCall.Py; kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:spines, :visible), Tuple{Vector{String}, Bool}}})
   @ PythonCall ~/.julia/packages/PythonCall/XgP8G/src/abstract/object.jl:165
 [5] #_#11
   @ ~/.julia/packages/PythonCall/XgP8G/src/Py.jl:360 [inlined]
 [6] top-level scope
   @ In[20]:5
 [7] eval
   @ ./boot.jl:373 [inlined]
 [8] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1196

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions