ellisvalentiner / AlphaVantage.jl

A Julia wrapper for the Alpha Vantage API.
Other
85 stars 23 forks source link

First steps do not work #73

Open rlegarda opened 5 months ago

rlegarda commented 5 months ago

Hi,

I'm using Version 1.10.3 (2024-04-30). I tried to run the first steps and doesn't work.

julia> using AlphaVantage

julia> AlphaVantage.GLOBAL[] ERROR: UndefVarError: GLOBAL not defined Stacktrace: [1] getproperty(x::Module, f::Symbol) @ Base ./Base.jl:31 [2] top-level scope @ REPL[2]:1

However, when I export the API Key, I can read the data

ellisvalentiner commented 5 months ago

@rlegarda thanks for the issue, I will look into it.

ellisvalentiner commented 4 months ago

I'm not able to reproduce.

andriytyurnikov commented 3 months ago

+1, when installed a package (not github)

ellisvalentiner commented 3 months ago

Running in a Docker container (clean environment), I can't reproduce this error.

docker run -it --rm julia -e 'using Pkg; Pkg.add("AlphaVantage"); using AlphaVantage; AlphaVantage.GLOBAL[]'

Can you share more information about your setup?

andriytyurnikov commented 3 months ago

macOS Sonoma 14.5

julia --version
julia version 1.10.4

julia installed via asdf

Issue, potentially related to https://stackoverflow.com/questions/56789914/julia-error-undefvarerror-not-defined

Output:

   Resolving package versions...
  No Changes to `~/.julia/environments/v1.10/Project.toml`
  No Changes to `~/.julia/environments/v1.10/Manifest.toml`
┌ Warning: No API key found
└ @ AlphaVantage ~/.julia/packages/AlphaVantage/GV8DN/src/AlphaVantage.jl:15
ERROR: UndefVarError: `GLOBAL` not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ none:1