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: WinRPM is not a package (not registered or installed) #82

Closed
sbromberger opened this issue Mar 24, 2015 · 13 comments
Closed

ERROR: WinRPM is not a package (not registered or installed) #82

sbromberger opened this issue Mar 24, 2015 · 13 comments

Comments

@sbromberger
Copy link

getting this when trying to install GnuTLS.jl:

INFO: Building Homebrew
HEAD is now at 0bc8c8c youtube-dl: update 2015.03.24 bottle.
HEAD is now at 5eca198 Somehow forgot `root_url` for this bottle
ERROR: WinRPM is not a package (not registered or installed)
 in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
 in wait at task.jl:54
 in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
 in add at pkg/entry.jl:339
 in add at pkg/entry.jl:71
 in anonymous at pkg/dir.jl:28
 in cd at file.jl:20
 in cd at pkg/dir.jl:28
 in add at pkg.jl:21

julia> versioninfo()
Julia Version 0.4.0-dev+3892
Commit 0d47fd7 (2015-03-19 00:50 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin14.1.1)
  CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
@staticfloat
Copy link
Member

I don't think this has anything to do with Homebrew.jl. The string WinRPM doesn't even appear in the codebase. More likely, some other package you have installed is using WinRPM when it shouldn't within a build.jl script. Can you search your ~/.julia/v0.4/ directory, for any build.jl file that contains the string using WinRPM outside of @windows_only block?

Quick one-liner to find build.jl files that have using WinRPM in them:

$ for f in $(find ~/.julia/v0.4 -name build.jl); do [[ ! -z $(grep "using WinRPM" $f) ]] && echo $f; done
/Users/sabae/.julia/v0.4/GnuTLS/deps/build.jl
/Users/sabae/.julia/v0.4/HDF5/deps/build.jl
/Users/sabae/.julia/v0.4/Nettle/deps/build.jl

Looking for a bit of context within those files, I find the using WinRPM lines:

$ grep -C 3 "using WinRPM" /Users/sabae/.julia/v0.4/GnuTLS/deps/build.jl
#provides(Binaries,URI("ftp://ftp.gnutls.org/gcrypt/gnutls/w32/gnutls-3.2.1-w32.zip"),gnutls,os = :Windows)

@windows_only begin
    using WinRPM
    provides(WinRPM.RPM,"nettle",nettle,os = :Windows)
    provides(WinRPM.RPM,"gnutls",gnutls,os = :Windows)
end

So we see that GnuTLS.jl is okay, it's within a @windows_only block. HDF5 and Nettle are a similar story. Can you try this out and let me know if you find one that is not within a @windows_only block?

@sbromberger
Copy link
Author

I got

seth@schroeder:~/.julia/v0.4$ for f in $(find ~/.julia/v0.4 -name build.jl); do [[ ! -z $(grep "using WinRPM" $f) ]] && echo $f; done
/Users/seth/.julia/v0.4/GnuTLS/deps/build.jl
/Users/seth/.julia/v0.4/Nettle/deps/build.jl

seth@schroeder:~/.julia/v0.4$ grep -C 3 "using WinRPM" GnuTLS/deps/build.jl
#provides(Binaries,URI("ftp://ftp.gnutls.org/gcrypt/gnutls/w32/gnutls-3.2.1-w32.zip"),gnutls,os = :Windows)

@windows_only begin
    using WinRPM
    provides(WinRPM.RPM,"nettle",nettle,os = :Windows)
    provides(WinRPM.RPM,"gnutls",gnutls,os = :Windows)
end

seth@schroeder:~/.julia/v0.4$ grep -C 3 "using WinRPM" Nettle/deps/build.jl
nettle = library_dependency("nettle", aliases = ["libnettle","libnettle-4-6"])

@windows_only begin
  using WinRPM
  provides(WinRPM.RPM, "libnettle-4-6", nettle, os = :Windows )
end

and yet

julia> Pkg.add("Requests")
INFO: Installing BinDeps v0.3.8
INFO: Installing Codecs v0.1.3
INFO: Installing Dates v0.4.4
INFO: Installing GnuTLS v0.0.3
INFO: Installing Homebrew v0.1.14
INFO: Installing HttpCommon v0.0.12
INFO: Installing HttpParser v0.0.10
INFO: Installing JSON v0.4.1
INFO: Installing Nettle v0.1.8
INFO: Installing Requests v0.0.8
INFO: Installing SHA v0.0.4
INFO: Installing URIParser v0.0.5
INFO: Building Homebrew
remote: Counting objects: 197, done.
remote: Compressing objects: 100% (78/78), done.
remote: Total 197 (delta 155), reused 161 (delta 119), pack-reused 0
Receiving objects: 100% (197/197), 22.51 KiB | 0 bytes/s, done.
Resolving deltas: 100% (155/155), completed with 26 local objects.
From https://github.com/Homebrew/homebrew
   0bc8c8c..b8a812e  master     -> origin/master
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot `root_url` for this bottle
ERROR: WinRPM is not a package (not registered or installed)
 in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
 in wait at task.jl:54
 in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
 in add at pkg/entry.jl:339
 in add at pkg/entry.jl:71
 in anonymous at pkg/dir.jl:28
 in cd at file.jl:20
 in cd at pkg/dir.jl:28
 in add at pkg.jl:21

@sbromberger
Copy link
Author

Through process of elimination I've determined it's Nettle.jl:

julia> Pkg.add("Nettle")
INFO: Installing BinDeps v0.3.8
INFO: Installing Homebrew v0.1.14
INFO: Installing JSON v0.4.1
INFO: Installing Nettle v0.1.8
INFO: Building Homebrew
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot `root_url` for this bottle
ERROR: WinRPM is not a package (not registered or installed)
 in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
 in wait at task.jl:54
 in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
 in add at pkg/entry.jl:339
 in add at pkg/entry.jl:71
 in anonymous at pkg/dir.jl:28
 in cd at file.jl:20
 in cd at pkg/dir.jl:28
 in add at pkg.jl:21

julia> Pkg.add("JSON")
INFO: Removing BinDeps v0.3.8
INFO: Removing Homebrew v0.1.14
INFO: Removing Nettle v0.1.8
INFO: Package database updated

julia> Pkg.add("BinDeps")
INFO: Installing BinDeps v0.3.8
INFO: Package database updated

julia> Pkg.add("Homebrew")
INFO: Installing Homebrew v0.1.14
INFO: Building Homebrew
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot `root_url` for this bottle
INFO: Package database updated

julia> Pkg.add("Nettle")
INFO: Installing Nettle v0.1.8
INFO: Building Homebrew
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot `root_url` for this bottle
ERROR: WinRPM is not a package (not registered or installed)
 in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
 in wait at task.jl:54
 in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
 in add at pkg/entry.jl:339
 in add at pkg/entry.jl:71
 in anonymous at pkg/dir.jl:28
 in cd at file.jl:20
 in cd at pkg/dir.jl:28
 in add at pkg.jl:21

@staticfloat
Copy link
Member

What happens if you Pkg.build("Nettle")?

On Thu, Mar 26, 2015, 21:56 Seth Bromberger notifications@github.com
wrote:

Through process of elimination I've determined it's Nettle.jl:

julia> Pkg.add("Nettle")
INFO: Installing BinDeps v0.3.8
INFO: Installing Homebrew v0.1.14
INFO: Installing JSON v0.4.1
INFO: Installing Nettle v0.1.8
INFO: Building Homebrew
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot root_url for this bottle
ERROR: WinRPM is not a package (not registered or installed)
in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
in wait at task.jl:54
in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
in add at pkg/entry.jl:339
in add at pkg/entry.jl:71
in anonymous at pkg/dir.jl:28
in cd at file.jl:20
in cd at pkg/dir.jl:28
in add at pkg.jl:21

julia> Pkg.add("JSON")
INFO: Removing BinDeps v0.3.8
INFO: Removing Homebrew v0.1.14
INFO: Removing Nettle v0.1.8
INFO: Package database updated

julia> Pkg.add("BinDeps")
INFO: Installing BinDeps v0.3.8
INFO: Package database updated

julia> Pkg.add("Homebrew")
INFO: Installing Homebrew v0.1.14
INFO: Building Homebrew
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot root_url for this bottle
INFO: Package database updated

julia> Pkg.add("Nettle")
INFO: Installing Nettle v0.1.8
INFO: Building Homebrew
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot root_url for this bottle
ERROR: WinRPM is not a package (not registered or installed)
in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
in wait at task.jl:54
in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
in add at pkg/entry.jl:339
in add at pkg/entry.jl:71
in anonymous at pkg/dir.jl:28
in cd at file.jl:20
in cd at pkg/dir.jl:28
in add at pkg.jl:21


Reply to this email directly or view it on GitHub
#82 (comment)
.

@sbromberger
Copy link
Author

julia> Pkg.build("Nettle")
INFO: Building Homebrew
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot `root_url` for this bottle
ERROR: WinRPM is not a package (not registered or installed)
 in error at error.jl:19
 in build! at pkg/entry.jl:621
 in build! at pkg/entry.jl:620
 in build at pkg/entry.jl:637
 in anonymous at pkg/dir.jl:28
 in cd at file.jl:20
 in cd at pkg/dir.jl:28
 in build at pkg.jl:62

@staticfloat
Copy link
Member

Hmmm. I am able to install Nettle and GnuTLS no problem on a fresh install of 0.4.0-dev+4022 (01a3216) on OSX 10.10. I cleaned out my ~/.julia/v0.4 folder completely just to make sure I didn't have something special on my machine. If you temporarily move your v0.4 folder somewhere else and try again, do you still face difficulties?

@sbromberger
Copy link
Author

Still broken:

After mv of ~/.julia/.cache and ~/.julia/v0.4:

julia> Pkg.init()
INFO: Initializing package repository /Users/seth/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl

julia> Pkg.add("Nettle")
INFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Homebrew from git://github.com/JuliaLang/Homebrew.jl.git
INFO: Cloning cache of JSON from git://github.com/JuliaLang/JSON.jl.git
INFO: Cloning cache of Nettle from git://github.com/staticfloat/Nettle.jl.git
INFO: Cloning cache of SHA from git://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from git://github.com/JuliaWeb/URIParser.jl.git
INFO: Installing BinDeps v0.3.8
INFO: Installing Compat v0.3.6
INFO: Installing Homebrew v0.1.14
INFO: Installing JSON v0.4.1
INFO: Installing Nettle v0.1.8
INFO: Installing SHA v0.0.4
INFO: Installing URIParser v0.0.5
INFO: Building Homebrew
INFO: Cloning brew from https://github.com/Homebrew/homebrew.git
Cloning into '/Users/seth/.julia/v0.4/Homebrew/deps/usr'...
remote: Counting objects: 3508, done.
remote: Compressing objects: 100% (3364/3364), done.
remote: Total 3508 (delta 34), reused 1534 (delta 17), pack-reused 0
Receiving objects: 100% (3508/3508), 2.60 MiB | 2.41 MiB/s, done.
Resolving deltas: 100% (34/34), done.
Checking connectivity... done.
WARNING: src::AbstractCmd |> dest::AbstractCmd is deprecated, use pipe(src,dest) instead.
 in depwarn at /usr/local/julia-latest/lib/julia/sys.dylib
 in |> at deprecated.jl:29
 in install_brew at /Users/seth/.julia/v0.4/Homebrew/src/Homebrew.jl:80
 in init at /Users/seth/.julia/v0.4/Homebrew/src/Homebrew.jl:26
 in include at /usr/local/julia-latest/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/julia-latest/lib/julia/sys.dylib
 in reload_path at /usr/local/julia-latest/lib/julia/sys.dylib
 in _require at /usr/local/julia-latest/lib/julia/sys.dylib
 in require at /usr/local/julia-latest/lib/julia/sys.dylib
 in include at /usr/local/julia-latest/lib/julia/sys.dylib
 in include_from_node1 at /usr/local/julia-latest/lib/julia/sys.dylib
 in evalfile at loading.jl:171 (repeats 2 times)
 in anonymous at pkg/entry.jl:626
 in cd at /usr/local/julia-latest/lib/julia/sys.dylib
 in build! at pkg/entry.jl:625
 in build at pkg/entry.jl:637
 in resolve at /usr/local/julia-latest/lib/julia/sys.dylib
 in edit at pkg/entry.jl:24
 in anonymous at task.jl:360
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  258k  100  258k    0     0   207k      0  0:00:01  0:00:01 --:--:--  207k
Tapped 29 formulae
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot `root_url` for this bottle
ERROR: WinRPM is not a package (not registered or installed)
 in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
 in wait at task.jl:54
 in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
 in add at pkg/entry.jl:339
 in add at pkg/entry.jl:71
 in anonymous at pkg/dir.jl:28
 in cd at file.jl:20
 in cd at pkg/dir.jl:28
 in add at pkg.jl:21

@staticfloat
Copy link
Member

What is your versioninfo()?

On Fri, Mar 27, 2015 at 9:48 AM, Seth Bromberger notifications@github.com
wrote:

Still broken:

After mv of ~/.julia/.cache and ~/.julia/v0.4:

julia> Pkg.init()
INFO: Initializing package repository /Users/seth/.julia/v0.4
INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl

julia> Pkg.add("Nettle")
INFO: Cloning cache of BinDeps from git://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of Compat from git://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Homebrew from git://github.com/JuliaLang/Homebrew.jl.git
INFO: Cloning cache of JSON from git://github.com/JuliaLang/JSON.jl.git
INFO: Cloning cache of Nettle from git://github.com/staticfloat/Nettle.jl.git
INFO: Cloning cache of SHA from git://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from git://github.com/JuliaWeb/URIParser.jl.git
INFO: Installing BinDeps v0.3.8
INFO: Installing Compat v0.3.6
INFO: Installing Homebrew v0.1.14
INFO: Installing JSON v0.4.1
INFO: Installing Nettle v0.1.8
INFO: Installing SHA v0.0.4
INFO: Installing URIParser v0.0.5
INFO: Building Homebrew
INFO: Cloning brew from https://github.com/Homebrew/homebrew.git
Cloning into '/Users/seth/.julia/v0.4/Homebrew/deps/usr'...
remote: Counting objects: 3508, done.
remote: Compressing objects: 100% (3364/3364), done.
remote: Total 3508 (delta 34), reused 1534 (delta 17), pack-reused 0
Receiving objects: 100% (3508/3508), 2.60 MiB | 2.41 MiB/s, done.
Resolving deltas: 100% (34/34), done.
Checking connectivity... done.
WARNING: src::AbstractCmd |> dest::AbstractCmd is deprecated, use pipe(src,dest) instead.
in depwarn at /usr/local/julia-latest/lib/julia/sys.dylib
in |> at deprecated.jl:29
in install_brew at /Users/seth/.julia/v0.4/Homebrew/src/Homebrew.jl:80
in init at /Users/seth/.julia/v0.4/Homebrew/src/Homebrew.jl:26
in include at /usr/local/julia-latest/lib/julia/sys.dylib
in include_from_node1 at /usr/local/julia-latest/lib/julia/sys.dylib
in reload_path at /usr/local/julia-latest/lib/julia/sys.dylib
in _require at /usr/local/julia-latest/lib/julia/sys.dylib
in require at /usr/local/julia-latest/lib/julia/sys.dylib
in include at /usr/local/julia-latest/lib/julia/sys.dylib
in include_from_node1 at /usr/local/julia-latest/lib/julia/sys.dylib
in evalfile at loading.jl:171 (repeats 2 times)
in anonymous at pkg/entry.jl:626
in cd at /usr/local/julia-latest/lib/julia/sys.dylib
in build! at pkg/entry.jl:625
in build at pkg/entry.jl:637
in resolve at /usr/local/julia-latest/lib/julia/sys.dylib
in edit at pkg/entry.jl:24
in anonymous at task.jl:360
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 258k 100 258k 0 0 207k 0 0:00:01 0:00:01 --:--:-- 207k
Tapped 29 formulae
HEAD is now at b8a812e Revert "apparix: add 11-0 bottle."
HEAD is now at 5eca198 Somehow forgot root_url for this bottle
ERROR: WinRPM is not a package (not registered or installed)
in wait at /usr/local/julia-latest/lib/julia/sys.dylib (repeats 2 times)
in wait at task.jl:54
in sync_end at /usr/local/julia-latest/lib/julia/sys.dylib
in add at pkg/entry.jl:339
in add at pkg/entry.jl:71
in anonymous at pkg/dir.jl:28
in cd at file.jl:20
in cd at pkg/dir.jl:28
in add at pkg.jl:21


Reply to this email directly or view it on GitHub
#82 (comment)
.

@sbromberger
Copy link
Author

julia> versioninfo()
Julia Version 0.4.0-dev+3892
Commit 0d47fd7 (2015-03-19 00:50 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin14.1.1)
  CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

@staticfloat
Copy link
Member

I'm not sure why this problem is evident in your version of Julia, but
updating to the latest fixes it. If I run with your version of julia, I
have the same error.

On Fri, Mar 27, 2015 at 9:51 AM, Seth Bromberger notifications@github.com
wrote:

julia> versioninfo()
Julia Version 0.4.0-dev+3892
Commit 0d47fd7 (2015-03-19 00:50 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin14.1.1)
CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3


Reply to this email directly or view it on GitHub
#82 (comment)
.

@sbromberger
Copy link
Author

Good timing, then - I decided to upgrade to the latest - building now. Thanks!

@tkelman
Copy link
Contributor

tkelman commented Mar 27, 2015

This was a problem on master for a little while, the fix for making Pkg.build an error for a not-yet-installed package wasn't honoring @osx or @windows qualifications in REQUIRE. We should still adjust that error message since Pkg.build doesn't care whether or not the package is registered.

@sbromberger
Copy link
Author

Confirmed current build fixes things. Thank you both!

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

3 participants