Having trouble installing the PortAudio package

Hello,

I cannot add the PortAudio package.
When I run add https://github.com/JuliaAudio/PortAudio.jl I get this error:

ERROR: failed to clone from https://github.com/JuliaAudio/PortAudio.jl, error: GitError(Code:ERROR, Class:SSL, SSL error: 0xffff8880 - SSL - A fatal alert message was received from our peer)

Any help would be appreciated.

1 Like

The problem goes away when I use v1.2.0

1 Like

I don’t know for shure but have you tested it with Pkg.add(“PortAudio”) yet?

When I run Pkg.add(“PortAudio”) I get this error message.

ERROR: The following package names could not be resolved:
 * PortAudio (not found in project, manifest or registry)
Please specify by known `name=uuid`.
Stacktrace:
 [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Types.jl:113
 [2] #ensure_resolved#101(::Bool, ::typeof(Pkg.Types.ensure_resolved), ::Pkg.Types.EnvCache, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Types.jl:936
 [3] #ensure_resolved at ./none:0 [inlined]
 [4] #add#25(::Bool, ::Pkg.BinaryPlatforms.Linux, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:97
 [5] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:72
 [6] #add#24 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:69 [inlined]
 [7] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:69 [inlined]
 [8] #add#21 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:67 [inlined]
 [9] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:67 [inlined]
 [10] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [11] add(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [12] top-level scope at REPL[2]:1

and with

Pkg.add("https://github.com/JuliaAudio/PortAudio.jl.git")

i only troubled JULIA_HOME not defined…

When I run that I get another error :(.

julia> Pkg.add("https://github.com/JuliaAudio/PortAudio.jl.git")
ERROR: https://github.com/JuliaAudio/PortAudio.jl.git is not a valid packagename.
The argument appears to be a URL or path, perhaps you meant `Pkg.add(PackageSpec(url="..."))` or `Pkg.add(PackageSpec(path="..."))`.
Stacktrace:
 [1] pkgerror(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Types.jl:113
 [2] check_package_name(::String, ::Symbol) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:30
 [3] iterate at ./none:0 [inlined]
 [4] collect(::Base.Generator{Array{String,1},Pkg.API.var"#22#23"}) at ./array.jl:622
 [5] #add#21 at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:67 [inlined]
 [6] add at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:67 [inlined]
 [7] #add#20(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [8] add(::String) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [9] top-level scope at REPL[5]:1

I followed what the last error message said and ran this command Pkg.add(PackageSpec(url="https://github.com/JuliaAudio/PortAudio.jl.git")) and got this error:

ERROR: failed to clone from https://github.com/JuliaAudio/PortAudio.jl.git, error: GitError(Code:ERROR, Class:SSL, SSL error: 0xffff8880 - SSL - A fatal alert message was received from our peer)

but it failed at precompiling…

Possibly there are still some files missing.

Possibly but I don’t think that’s what is causing the issues with git. As the error I am getting seems to be network related

The package has not been updated for julia 1.0.

I think there is a work in progress branch for 1.0.

I have looked at the source code. There is the old type style in, that would be the problem…

Ok. Thanks for you help. Do you know of any other audio IO librarys for julia as PortAudio does not seem like a viable option?

It depends on what you want to do.
To read and write sound files you might want to use LibSndFile. To play sounds I use the vlc-player without gui or ffmpeg or something…

I’d like to do real time audio processing to create an audio synthesizer.

Pinging @ssfrr

I have an in-progress branch that more-or-less works on Julia v1. Try pkg> add PortAudio#julia1. I’ve been off-and-on working on updating things for the new BinaryBuilder infrastructure but haven’t had much time to devote to it. Some folks have had trouble with the binaries I’ve been using and the new stuff should simplify that substantially, but I think it should be less of a problem on Linux.

Oh, also you can check out WAV.jl from @dancasimiro, which has some facilities for playing audio on Linux and OSX. Not sure if it is set up for generating audio on-the-fly or just for playing back a buffer.

Thanks for the help. When I run add PortAudio#julia1 I get this error:

  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
┌ Warning: Some registries failed to update:
│     — ~/.julia/registries/General — failed to fetch from repo
â”” @ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Types.jl:1199
ERROR: The following package names could not be resolved:
 * PortAudio (not found in project, manifest or registry)
Please specify by known `name=uuid`.

PortAudio is not in the General registry as it never supported Julia 1, you have to specify the full URL of the repository:

]add https://github.com/JuliaAudio/PortAudio.jl#julia1
1 Like