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

Error when trying to use DSP #306

Closed
adamnemecek opened this issue Jun 10, 2019 · 10 comments
Closed

Error when trying to use DSP #306

adamnemecek opened this issue Jun 10, 2019 · 10 comments

Comments

@adamnemecek
Copy link

julia> using DSP
[ Info: Precompiling DSP [717857b8-e6f2-59f4-9121-6e50c889abd2]
WARNING: both FFTW and Util export "Frequencies"; uses of it in module Periodograms must be qualified
ERROR: LoadError: LoadError: UndefVarError: Frequencies not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:326 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include at ./sysimg.jl:29 [inlined]
 [5] include(::String) at /Users/adamnemecek/.julia/dev/DSP/src/DSP.jl:3
 [6] top-level scope at none:0
 [7] include at ./boot.jl:326 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1038
 [9] include(::Module, ::String) at ./sysimg.jl:29
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:328 [inlined]
 [12] eval(::Expr) at ./client.jl:404
 [13] top-level scope at ./none:3
in expression starting at /Users/adamnemecek/.julia/dev/DSP/src/periodograms.jl:186
in expression starting at /Users/adamnemecek/.julia/dev/DSP/src/DSP.jl:16
ERROR: Failed to precompile DSP [717857b8-e6f2-59f4-9121-6e50c889abd2] to /Users/adamnemecek/.julia/compiled/v1.1/DSP/OtML7.ji.
Stacktrace:
 [1] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [2] _require(::Base.PkgId) at ./loading.jl:960
 [3] require(::Base.PkgId) at ./loading.jl:858
 [4] require(::Module, ::Symbol) at ./loading.jl:853
@galenlynch
Copy link
Member

galenlynch commented Jun 10, 2019

The root cause is JuliaMath/AbstractFFTs.jl#26 taking these functions from DSP.jl and putting them in AbstractFFTs.jl instead. #300 should fix the problem but is still waiting for a response to review, and a new tagged version of AbstractFFTs.jl.

In the mean time, if you are able to use the last tagged version of AbstractFFTs.jl that should also prevent the problem.

@mchitre
Copy link

mchitre commented Nov 9, 2019

Struggled with this for a bit, so a quick note here of what worked:

  • worked with AbstractFFTs v0.4.1
  • failed with AbstractFFTs v0.5.0

@carstenbauer
Copy link
Contributor

carstenbauer commented Nov 9, 2019

We should just merge #300 and everything should be back to good. Also, we should add compat entries for all dependencies so that this intermediate broken state doesn't occur the next time. Will make a PR.

UPDATE: Done: #321

haberdashPI added a commit to haberdashPI/german_track that referenced this issue Nov 12, 2019
This was discussed here: JuliaDSP/DSP.jl#306 and will be fixed
when a new version of DSP is released.
haberdashPI added a commit to haberdashPI/german_track that referenced this issue Nov 12, 2019
This was discussed here: JuliaDSP/DSP.jl#306 and
will be fixed when a new version of DSP is released.
@physicalbitcoin
Copy link

Greetings:
I am still getting the error, "both FFTW and Util export "Frequencies"".

I'm not sure if the above message which states "closed" refers to this error, or to the #321 issue.

Anyway, I would like to use the DSP package if it is still available. I am running Julia 1.1.1, and I have tried wiping all my .julia/compiled and .julia/packages directories prior to Pkg.add("DSP").

I would be most appreciative if you could assist me.

All the best,

pbtc

@carstenbauer
Copy link
Contributor

@physicalbitcoin What version does ] status DSP show? The error should be gone in v0.6.1.

@physicalbitcoin
Copy link

aha! It says, "DSP v0.6.0". Not quite sure how to get the latest. Pkg.update("DSP") says "no changes".

@physicalbitcoin
Copy link

physicalbitcoin commented Nov 20, 2019

I tried,
Pkg.add(PackageSpec(name="DSP",version="0.6.1")),
but this found incompatibilities with FFTW.
Maybe my julia version is lagging, or another package I have specifies a particular version of FFTW which conflicts with DSP.

Edit: Yeah. I just upgraded to julia 1.2, and it is pulling in the latest DSP.

Thanks for you help, crstn!

@ssfrr
Copy link
Contributor

ssfrr commented Nov 20, 2019

Maybe try with a clean environment(I.e. use ] activate /tmp/foo and make sure you can install DSP.jl. If that doesn’t work can you send the result of ] st -m and maybe we can figure out what package is holding things back.

@ssfrr
Copy link
Contributor

ssfrr commented Nov 21, 2019

Whoops, just re-read your latest message and it looks like this is resolved. I’m closing the issue, let us know if there’s still a problem.

@ssfrr ssfrr closed this as completed Nov 21, 2019
@galenlynch
Copy link
Member

Also see JuliaRegistries/General#5778

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

6 participants