-
Notifications
You must be signed in to change notification settings - Fork 8
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
when using PortAudio:ERROR: InitError: Could not load pa_shim library #11
Comments
Yeah, there are some known issues with how the PortAudio and RingBuffers code find each other. I'm working on a new BinaryBuilder-based system for both of them that should alleviate the issue. |
I'm getting a similar issue. Not sure how to fix this. |
does it help if you run |
Yeah, it seemingly builds everything, but it throws the same error.
|
what versions of PortAudio and RingBuffers are you using? Does it work if you try the |
I've been running the latest version of RingBuffers and the #julia1 branch of PortAudio. It still has been throwing the same errors.
|
Hmm, I'm not sure what's going on there then. I'm not on my windows setup very often so I'm not sure I'll get a chance to troubleshoot this in the near future. |
Thank you. I'll keep on trying and update if any progress is made. |
Hi I got same error as @mikelserralde but, I have not confirm whether all PortAudio.jl functions works correctly yet but
|
Thanks, that's a useful clue. The |
Without calling actual function, the same error occurs. Directry load PortAudio
Load RingBuffers and then PortAudio (without call function)
I have one thing to apology.Originally I got the same error as @mikelserralde but when I send the previous comment, my error was different than @mikelserralde. I will clean my Julia environment and make clear how and when different error was generated. |
I could regenerate the problem from clean julia environment as follows My Environment and version info:
At first, I installed packages and build them
now you can regenerate the problem same as @mikelserralde
I don't know why but Libdl.find_library cannot locate the dll so ,
I could compile the PortAudio and it seems work! Please note that I had to dlopen pa_ringbuffer dll to compile PortAudio. when you restart the julia, you get InitError by
As I commented yesterday, you can avoid InitError by restarting julia and It seems O.K.
Without call of PaUtilRingBuffer, you failed.
QUESTION: RingBuffer v1.1.3 and SampledSignals v2.0.0 are suitable version for PortAudio on the branch named "julia1" ? |
RingBuffers should be at |
@ssfrr thank you for reply. For the combination of RingBuffers#master, PortAudio#julia1 and Julia v1.1.1/v1.2.0-rc2,
I have another observation. According to the a series of observation, trouble would be pa_shim and integration of DLLs of RingBuffers and pa_shim. I will look into this problem and send report to you but It will take a while because I am completely new to Julia and have to learn how to make the packages and modules, how to debug and other related items. It would be helpful for me if you can give me the information about version combination of PortAudio.jl and its dependencies which is well tested on Windows. |
I could specify one of the causes of this issue. pa_ringbuffer*.dll , which is dependencies of pa_shim*.dll, cannot be found from dll search paths, I have confirmed that I could import PortAudio packages successfully with the following workarounds:
So This issue in Windows could be solved by ...
Even afeter the above workarounds, |
julia> using PortAudio
INFO: Recompiling stale cache file C:\Users\lihan.julia\lib\v0.6\RingBuffers.ji for module RingBuffers.
INFO: Recompiling stale cache file C:\Users\lihan.julia\lib\v0.6\PortAudio.ji for module PortAudio.
ERROR: InitError: Could not load pa_shim library, please file an issue at https://github.com/JuliaAudio/RingBuffers.jl/issues with your
versioninfo()
outputStacktrace:
[1] init_pa_shim() at C:\Users\lihan.julia\v0.6\PortAudio\src\pa_shim.jl:25
[2] init() at C:\Users\lihan.julia\v0.6\PortAudio\src\PortAudio.jl:20
[3] _include_from_serialized(::String) at .\loading.jl:157
[4] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at .\loading.jl:200
[5] _require(::Symbol) at .\loading.jl:464
[6] require(::Symbol) at .\loading.jl:405
during initialization of module PortAudio
===================================================================
julia> versioninfo()
Julia Version 0.6.4
Commit 9d11f62bcb* (2018-07-09 19:09 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell MAX_THREADS=16)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)
The text was updated successfully, but these errors were encountered: