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

Installation problem #7

Open
wakita opened this issue Jul 14, 2020 · 5 comments
Open

Installation problem #7

wakita opened this issue Jul 14, 2020 · 5 comments

Comments

@wakita
Copy link

wakita commented Jul 14, 2020

Thank you for bringing WordCloud to Bokeh!
I have trouble running the example. I tried the three installation options but all of them failed, generating the following TypeScript compilation errors:

Compilation failed:

venv/git/lib/python3.7/site-packages/bokeh/server/static/js/types/models/widgets/date_picker.d.ts:1:23 - error TS2307: C
annot find module 'flatpickr'.

1 import flatpickr from "flatpickr";

venv/git/lib/python3.7/site-packages/bokeh/server/static/js/types/models/widgets/multichoice.d.ts:1:21 - error TS2307: C
annot find module 'choices.js'.

1 import Choices from "choices.js";

A few comments on the installation instruction

  1. I think wheel and bokeh are required.
  2. The git clone command complains with pip and fatal: unable to find remote helper for 'git+https'. I think it should be git clone https://github.com/joranbeasley/bokeh_wordcloud2.git.

Here is a GIST that I made to test three types of installation and collect error logs using fresh virtual environments.
https://gist.github.com/wakita/8b007afb4b422c816ed96bb6acef96ce

Many thanks

@wakita
Copy link
Author

wakita commented Jul 14, 2020

After installing the flatpickr and choices.js packages with npm install flatpickr choices.js the command line error problem was resolved.

However, when I run simple_counts_static_html.py nothing appears on my Web browser. The following is the diagnostics output in the inspector.

@jmlingeman
Copy link

@wakita Were you ever able to resolve this? I'm having a similar issue -- the server logs give me the additional error messages:

�[96m../../usr/local/lib/python3.7/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts�[0m:�[93m38�[0m:�[93m26�[0m - �[91merror�[0m�[90m TS2513: �[0mAbstract method '_to_json' in class 'BokehEvent' cannot be accessed via super expression.

[96m../../usr/local/lib/python3.7/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts�[0m:�[93m50�[0m:�[93m9�[0m - �[91merror�[0m�[90m TS2740: �[0mType 'BitSet' is missing the following properties from type 'number[]': length, pop, push, concat, and 25 more

�[96m../../usr/local/lib/python3.7/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts�[0m:�[93m277�[0m:�[93m42�[0m - �[91merror�[0m�[90m TS2345: �[0mArgument of type 'WordClickEvent' is not assignable to parameter of type 'ModelEvent'

Property 'origin' is missing in type 'WordClickEvent' but required in type 'ModelEvent'.

@AVFerrinho
Copy link

@wakita Were you ever able to resolve this? I'm having a similar issue -- the server logs give me the additional error messages:

�[96m../../usr/local/lib/python3.7/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts�[0m:�[93m38�[0m:�[93m26�[0m - �[91merror�[0m�[90m TS2513: �[0mAbstract method '_to_json' in class 'BokehEvent' cannot be accessed via super expression.

[96m../../usr/local/lib/python3.7/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts�[0m:�[93m50�[0m:�[93m9�[0m - �[91merror�[0m�[90m TS2740: �[0mType 'BitSet' is missing the following properties from type 'number[]': length, pop, push, concat, and 25 more

�[96m../../usr/local/lib/python3.7/site-packages/bokeh_wordcloud2/typescript/extension_bokeh_wordcloud2.ts�[0m:�[93m277�[0m:�[93m42�[0m - �[91merror�[0m�[90m TS2345: �[0mArgument of type 'WordClickEvent' is not assignable to parameter of type 'ModelEvent'

Property 'origin' is missing in type 'WordClickEvent' but required in type 'ModelEvent'.

I am having the same issues

@sean-novobi
Copy link

Same issue above. Did anyone find the solution for this?

@joranbeasley
Copy link
Owner

the solution sucks ... its to run it in python2 ... im happy to get pull requests for this ... or maybe ill have time to revisit this :( sorry

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

5 participants