The short answer: I re-created .julia. I've never accessed METADATA from 
another computer.

The longer answer:

My problem was that the first call to Pkg.publish() failed on a a previous 
package of mine, HyperDualNumbers. Somehow when that package became part of 
JuliaDiff, I think version numbers, sha1 keys and possibly 
JuliaLang/METADATA.jl's url link got out of sync. Pkg.add("HyperDualNumbers") 
should install the latest tagged version from JulliaDiff, but it fetches the 
old version from github.com/goedman/HyperDualNumbers.jl.git. On my system I 
have to clone it from github.com/JuliaDiff/HyperDualNumbers.jl.git to get the 
right version.

I struggled with this for 2 days. Didn't get it resolved and in the end decided 
to delete .julia. That's when the token problem started to appear.

But thanks to Tim's link, Stan.jl is now registered. Later today I'll send out 
an email to see if there is interest in such a package - it's slightly 
different from most packages as it requires an 'external' install of Stan - and 
to obtain some feedback and maybe some help to test on non-OSX platforms.

Rob J. Goedman
[email protected]




On Jul 7, 2014, at 9:54 AM, Tim Holy <[email protected]> wrote:

> I haven't been forced to do that in some time. If you still remember what you 
> did (or can find it in your history), would you mind writing it up either as 
> a 
> post to this list or added to the FAQ?
> 
> --Tim
> 
> On Monday, July 07, 2014 08:38:10 AM Rob J. Goedman wrote:
>> Thanks Tim,
>> 
>> That fixed it and clearly the steps have changed a bit over the last few
>> weeks!
>> 
>> Rob J. Goedman
>> [email protected]
>> 
>> On Jul 7, 2014, at 8:17 AM, Tim Holy <[email protected]> wrote:
>>> Instructions on fixing it in
>>> https://github.com/JuliaLang/julia/issues/5998
>>> 
>>> --Tim
>>> 
>>> On Monday, July 07, 2014 08:14:30 AM Rob J. Goedman wrote:
>>>> After (locally) registering a package Stan (
>>>> https://github,com/goedman/Stan.jl.git ) I'm trying to publish it
>>>> (untagged) to METADATA.jl, but continue to get below error message.
>>>> 
>>>> Github does accept my password (otherwise it gives another error
>>>> message).
>>>> Tagging the package does not seem to help either.
>>>> 
>>>> In pkg.github.jl it seems to be checking a dictionary, but I'm not sure
>>>> what this error is indicating.
>>>> 
>>>> According to the latest manual this is suppose to generate a PR, but I
>>>> think that section is out of date (I did use Pkg.publish about a month
>>>> ago).
>>>> 
>>>> Any suggestions?
>>>> 
>>>> Thanks,
>>>> Rob J. Goedman
>>>> [email protected]
>>>> 
>>>> 
>>>> 
>>>> robs-15inch-2:~ rob$ clear;julia
>>>> 
>>>>              _
>>>> 
>>>>  _       _ _(_)_     |  A fresh approach to technical computing
>>>> 
>>>> (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
>>>> 
>>>>  _ _   _| |_  __ _   |  Type "help()" to list help topics
>>>> 
>>>> | | | | | | |/ _` |  |
>>>> | | |
>>>> | | |_| | | | (_| |  |  Version 0.3.0-prerelease+4079 (2014-07-06 10:37
>>>> | | |UTC)
>>>> 
>>>> _/ |\__'_|_|_|\__'_|  |  Commit 1d94ff9 (1 day old master)
>>>> 
>>>> |__/                   |  x86_64-apple-darwin13.3.0
>>>> 
>>>> julia> Pkg.update()
>>>> INFO: Updating METADATA...
>>>> INFO: Cloning cache of HyperDualNumbers from
>>>> git://github.com/JuliaDiff/HyperDualNumbers.jl.git INFO: Updating Stan...
>>>> INFO: Updating HyperDualNumbers...
>>>> INFO: Updating Jags...
>>>> INFO: Updating MCMCExampleRepository...
>>>> INFO: Computing changes...
>>>> INFO: No packages to install, update or remove
>>>> 
>>>> julia> Pkg.publish()
>>>> INFO: Validating METADATA
>>>> INFO: No new package versions to publish
>>>> INFO: Submitting METADATA changes
>>>> INFO: Forking JuliaLang/METADATA.jl to goedman
>>>> Enter host password for user 'goedman':
>>>> ERROR: key not found: "token"
>>>> in getindex at dict.jl:615
>>>> in token at pkg/github.jl:53
>>>> in req at pkg/github.jl:61
>>>> in POST at pkg/github.jl:74
>>>> in fork at pkg/github.jl:87
>>>> in pull_request at pkg/entry.jl:290
>>>> in publish at pkg/entry.jl:357
>>>> in anonymous at pkg/dir.jl:28
>>>> in cd at file.jl:20
>>>> in cd at pkg/dir.jl:28
>>>> in publish at pkg.jl:57
>>>> 
>>>> julia>
> 

Reply via email to