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

Display seems to be full of bars of numbers #18

Closed
Rratic opened this issue Jan 10, 2023 · 5 comments
Closed

Display seems to be full of bars of numbers #18

Rratic opened this issue Jan 10, 2023 · 5 comments

Comments

@Rratic
Copy link

Rratic commented Jan 10, 2023

I tried the example:

using WordCloud
using Random
words = [randstring(rand(1:8)) for i in 1:300]
weights = randexp(length(words))
wc = wordcloud(words, weights)
generate!(wc)
paint(wc, "D:/random.svg")

and this is what it looks like:
random

environment:

julia> versioninfo()
Julia Version 1.8.4
Commit 00177ebc4f (2022-12-23 21:32 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 × Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

(@v1.8) pkg> st WordCloud
Status `C:\Users\anonymous\.julia\environments\v1.8\Project.toml`
  [6385f0a0] WordCloud v0.10.7
@guo-yong-zhi
Copy link
Owner

guo-yong-zhi commented Jan 15, 2023

Please see guo-yong-zhi/WordCloud-Gallery#1
You can temporarily solve the problem with ] add Pango_jll and ] pin Pango_jll@1.42.4.

@guo-yong-zhi guo-yong-zhi pinned this issue Jan 15, 2023
@eohne
Copy link

eohne commented Jul 2, 2024

Hi this problem still exists. I also get the same image as above - just numbers in boxes. Unfortunately, once I pin Pango_jll@1.42.4 WordCloud fails precompilation.
Any other solutions?

Edit: Since pinning and the package are not recompiling, I unpinned and updated WordCloud precompilation is failing regardless of what I do...

@guo-yong-zhi
Copy link
Owner

guo-yong-zhi commented Jul 3, 2024

Thank you for your feedback @eohne . I've found that the compatibility of pango in the new version of Windows 11 and Julia 1.10 has become even worse. As a result, I have disabled the random font feature in WordCloud.jl on Windows, which sometimes leads to errors. Operating systems other than Windows, such as Linux, are unaffected and will remain unchanged. Please try the latest version of WordCloud.jl (0.13.3 or above).
I have developed a new font random selecting mechanism. Please try the WordCloud.jl 0.13.6 or above. The precompilation failure issue has been fixed, but the pango issue remains. So the pinning is still needed.

@guo-yong-zhi
Copy link
Owner

pango issue fixed. see JuliaGraphics/Cairo.jl#349 (comment)

@eohne
Copy link

eohne commented Sep 30, 2024

Thanks a lot for the update!

Best
Elias

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

3 participants