-
Notifications
You must be signed in to change notification settings - Fork 55
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
Package name conflict #13
Comments
Or, following the advice of the docs: julia> module Mine
importall FFTW
struct Foo end
FFTW.fft(::Foo) = 1
end
Mine
julia> x = Mine.Foo()
Mine.Foo()
julia> fft(x)
ERROR: fft has been moved to the package FFTW.jl.
Run `Pkg.add("FFTW")` to install FFTW then run `using FFTW` to load it.
Stacktrace:
[1] #fft#6(::Array{Any,1}, ::Function, ::Mine.Foo, ::Vararg{Mine.Foo,N} where N) at ./deprecated.jl:1448
[2] fft(::Mine.Foo, ::Vararg{Mine.Foo,N} where N) at ./deprecated.jl:1448 It doesn't help to get rid of the module name in front of the |
I can't verify at the moment, but the workaround should be using FFTW
importall FFTW |
Nope. Get an error on usage like the one in my 2nd post. |
Ah, I see, we posted at the same time. :) This package doesn't export anything while FFTW is defined in Base (though I have an unmerged PR here that should make them extend the Base functions when they're deprecated), so you'll have to do |
julia> using FFTW
julia> importall FFTW
julia> module Mine
using FFTW
importall FFTW
struct Foo end
fft(::Foo) = 1
end
Mine
julia> x = Mine.Foo()
Mine.Foo()
julia> fft(x)
ERROR: fft has been moved to the package FFTW.jl.
Run `Pkg.add("FFTW")` to install FFTW then run `using FFTW` to load it.
Stacktrace:
[1] #fft#6(::Array{Any,1}, ::Function, ::Mine.Foo, ::Vararg{Mine.Foo,N} where N) at ./deprecated.jl:1448
[2] fft(::Mine.Foo, ::Vararg{Mine.Foo,N} where N) at ./deprecated.jl:1448 |
Can you try it after doing |
Same error message. julia> Pkg.status("FFTW")
- FFTW 0.0.1+ aa/testing |
Maybe using AbstractFFTs, FFTW
importall AbstractFFTs, FFTW ? |
Same error. |
Well, I have no idea what's going on here. :/ |
hmm, I too can't get the build to actually follow through: julia> BinDeps.debug("FFTW")
INFO: Reading build script...
The package declares 2 dependencies.
INFO: Updating WinRPM package list
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2/repodata/repomd.xml
INFO: Downloading https://cache.julialang.org/http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2/repodata/repomd.xml
- Library "libfftw3"
- Providers:
- BinDeps.AptGet package libfftw3-double3 (can't provide)
- BinDeps.Pacman package fftw (can't provide)
- BinDeps.Zypper package libfftw3 (can't provide)
- BinDeps.Yum package fftw (can't provide)
- BinDeps.BSDPkg package fftw3 (can't provide)
- WinRPM.RPM package fftw (can't provide)
- Simple Build Process
- Library "libfftw3f"
- Providers:
- BinDeps.AptGet package libfftw3-single3 (can't provide)
- BinDeps.Pacman package fftw (can't provide)
- BinDeps.Zypper package libfftw3 (can't provide)
- BinDeps.Yum package fftw (can't provide)
- BinDeps.BSDPkg package fftw3 (can't provide)
- WinRPM.RPM package fftw (can't provide)
- Simple Build Process Are you sure the WinRPM search is set correctly, e.g. julia> WinRPM.search("fftw")
WinRPM Package Set:
1. fftw3-debug (mingw64) - Debug information for package mingw64-fftw3
2. fftw3-debugsource (mingw64) - Debug sources for package mingw64-fftw3
3. fftw3-devel (mingw64) - Include Files and Libraries mandatory for Development
4. libfftw3-3 (mingw64) - Discrete Fourier Transform (DFT) C Subroutine Library
|
Seems no problem with fresh install of Julia ver. 0.6.0. Here is test code.
|
@appleparan The bug is on master, where the bindings have been removed. On 0.6 it will simply use the shipped bindings so it's not a problem |
The reason @timholy's example above doesn't work is that FFTW.jl doesn't export |
Should work on 0.6 and 0.7 now. Can you confirm, @timholy? |
Okay, seems to work on 0.6 but not 0.7. :/ |
Shouldn't you just do |
Doesn't make a difference.
|
Using
|
Wow, I'm an idiot. I forgot |
I fear this package may have the same problem that the Iterators package has been experiencing:
The text was updated successfully, but these errors were encountered: