JuliaGraphics / QML.jl

Build Qt6 QML interfaces for Julia programs.
Other
386 stars 35 forks source link

Examples broken - loadqml not defined #133

Closed ajaykawshik closed 1 year ago

ajaykawshik commented 2 years ago

ERROR: UndefVarError: loadqml not defined

Fullerror: ERROR: UndefVarError: loadqml not defined Stacktrace: [1] getproperty(x::Module, f::Symbol) @ Base .\Base.jl:26 [2] top-level scope @ REPL[1]:1

When trying to use examples provided in GitHub, Julia throughs an error ERROR: UndefVarError: loadqml not defined. All the examples are unfortunately not usuable. I tried with both Julia 1.7.0 and Julia 1.6.4. I tried downgrading FileIO, as suggested in another forum. I tried using load instead of loadqml. The latest QML doesn't seems to have this function loadqml. Anybody has any suggestions? Thanks in advance!

fatteneder commented 2 years ago

The following works for me (although I am having problems with the Makie examples):

$ git clone https://github.com/barche/QmlJuliaExamples
$ cd QmlJuliaExamples
$ julia --project
$ ]instantiate
$ include("gui.jl")

I am on Linux:

julia> versioninfo()
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, haswell)
ufechner7 commented 1 year ago

Perhaps this can be closed now that 0.8 is released?