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

Packages required by examples #40

Closed
s-celles opened this issue May 14, 2017 · 5 comments
Closed

Packages required by examples #40

s-celles opened this issue May 14, 2017 · 5 comments

Comments

@s-celles
Copy link

Hello,

maybe we should find somewhere in doc all packages required by examples.

I personnally had to run:

Pkg.add("ModernGL")
Pkg.add("GLVisualize")
Pkg.add("GeometryTypes")
Pkg.add("GR")
Pkg.add("TestImages")
Pkg.add("QuartzImageIO")
Pkg.add("Plots")

to be able to run all examples.

I'm not sure where these kind of information should be written. But I'm just posting here as it may help some people also (to quickly run examples)

Kind regards

@barche
Copy link
Collaborator

barche commented May 15, 2017

OK, feel free to add an "Examples" section to the readme and submit a pull request with this list.

@stemann
Copy link
Contributor

stemann commented Jul 18, 2017

In addition to the list above, I had to run:

Pkg.add("GLAbstraction")
Pkg.add("PyPlot")
Pkg.clone("https://github.com/BenLauwens/StatefulFunctions.jl.git")

and modify example/progressbar_states.jl.

Errors:

  • gr.jl fails to plot (on macOS, GR cannot load QtWidgets.framework/Versions/5/QtWidgets).
  • image.jl fails to show image at first click on button (strangely, the second time the button is clicked the image is displayed just fine):
$ julia .julia/v0.6/QML/example/image.jl 
MethodError(show, (IOBuffer(data=UInt8[...], readable=true, writable=true, seekable=true, append=false, size=0, maxsize=Inf, ptr=1, mark=-1), MIME type image/png, ColorTypes.RGB{FixedPointNumbers.Normed{UInt8,8}}[RGB{N0f8}(0.886,0.537,0.49) RGB{N0f8}(0.875,0.533,0.51) RGB{N0f8}(0.886,0.522,0.463) ...
  • plot.jl also requires PyPlot (weirdly, GR works fine here).
  • progressbar_states.jl: StateMachineIterator is now StatefulFunctions - and @iterator is now @stateful.

Will look into opening a PR.

@s-celles
Copy link
Author

Running exemples could probably be part of unit tests

@barche
Copy link
Collaborator

barche commented Jul 19, 2017

OK, thanks for the report. Unfortunately running the examples as an automatic test is not so easy because buttons need to be clicked and the application needs to be quit. Regarding the GR example, are you on the latest GR master, at least this is needed:
jheinen/GR.jl#61

@ufechner7
Copy link
Member

Fixed in QML 0.8

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

4 participants