If you don't want to delete the directory you could try to print the output
from Pkg.status()

Med venlig hilsen

Andreas Noack

2014-09-23 18:19 GMT-04:00 Andreas Noack <andreasnoackjen...@gmail.com>:

> If you are using Julia 0.4 then your packages are in .julia/v0.4 not 0.3.
> I don't think you should edit any of these files by hand. Somehow your
> packages have gone into a weird state.
>
> I'd just delete the .julia/v0.4 directory and then run
> Pkg.init();Pkg.add("Distributions")
>
> Med venlig hilsen
>
> Andreas Noack
>
> 2014-09-23 18:12 GMT-04:00 Charles Novaes de Santana <
> charles.sant...@gmail.com>:
>
> Hi again,
>>
>> I don't know why PDMats and ArrayViews are "fixed". I don't even know
>> what it means in Julia. Sorry.
>>
>> I tried Pkg.free("ArrayViews") and Pkg.free("PDMats") as you suggested,
>> but I got some errors (below):
>>
>> WARNING: StatsBase is fixed at 0.3.9+ conflicting with requirement for
>> Distributions: [0.5.1-,∞)
>> WARNING: PDMats is fixed at 0.1.1+ conflicting with requirement for
>> Distributions: [0.2.2-,∞)
>> ERROR: fixed packages introduce conflicting requirements for ArrayViews:
>>          StatsBase requires versions [0.4.6-,∞) [none of the available
>> versions can satisfy this requirement]
>>          PDMats requires versions [0.4.0-,∞)
>>          Distributions requires versions [0.4.3-,∞) [none of the
>> available versions can satisfy this requirement]
>>        available versions are 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2, 0.2.3,
>> 0.2.4, 0.2.5, 0.3.0, 0.4.0 and 0.4.1
>>  in error at error.jl:21
>>  in check_requirements at pkg/query.jl:109
>>  in resolve at ./pkg/entry.jl:387
>>  in resolve at pkg/entry.jl:371
>>  in anonymous at pkg/entry.jl:189
>>  in transact at pkg/git.jl:81
>>  in _checkout at pkg/entry.jl:181
>>  in free at pkg/entry.jl:211
>>  in anonymous at pkg/dir.jl:28
>>  in cd at ./file.jl:20
>>  in __cd#230__ at ./pkg/dir.jl:28
>>  in free at pkg.jl:37
>>
>> But I followed some instructions in this webpage:
>> http://julia.readthedocs.org/en/latest/manual/packages/
>>
>> It says: "Your package requirements are in the file ~/.julia/v0.3/REQUIRE.
>> You can edit this file by hand and then call Pkg.resolve() to install,
>> upgrade or remove packages to optimally satisfy the requirements"
>>
>> So I edited the REQUIRE file by removing the line "Distributions". Then I
>> came back to Julia and run
>>
>> julia> Pkg.resolve()
>>
>> julia> Pkg.checkout("Distributions")
>>
>> julia> Pkg.status("Distributions")
>>  - Distributions                 0.4.2+             master
>>
>> julia> using Distributions
>>
>> And I could load Distributions correctly.
>>
>> I tried the same thing for ArrayViews and PDMats but I got the following
>> message from "Pkg.resolve()"
>>
>> julia> Pkg.resolve()
>> WARNING: ArrayViews is fixed at 0.4.1+ conflicting with requirement for
>> StatsBase: [0.4.6-,∞)
>> WARNING: ArrayViews is fixed at 0.4.1+ conflicting with requirement for
>> Distributions: [0.4.3-,∞)
>> WARNING: StatsBase is fixed at 0.3.9+ conflicting with requirement for
>> Distributions: [0.5.1-,∞)
>> WARNING: PDMats is fixed at 0.1.1+ conflicting with requirement for
>> Distributions: [0.2.2-,∞)
>> INFO: No packages to install, update or remove
>>
>> Thank you for your help! I see I have too much to study to better
>> understand how Julia works.
>>
>> Best,
>>
>> Charles
>>
>>
>> On Tue, Sep 23, 2014 at 11:57 PM, Andreas Noack <
>> andreasnoackjen...@gmail.com> wrote:
>>
>>> Do you have a reason to have ArrayViews and PDMats fixed? If not try
>>> Pkg.free("ArrayViews") and Pkg.free("PDMats")
>>>
>>> Med venlig hilsen
>>>
>>> Andreas Noack
>>>
>>> 2014-09-23 17:51 GMT-04:00 Charles Novaes de Santana <
>>> charles.sant...@gmail.com>:
>>>
>>> Hi guys, thank you for the quick reply!
>>>>
>>>> About my version of Distributions:
>>>> julia> Pkg.status("Distributions")
>>>>  - Distributions                 0.4.2              master
>>>>
>>>> And, yes, I am building julia from master (the default option, right?).
>>>> I tried to update Distributions and I got the following error:
>>>>
>>>> julia> Pkg.checkout("Distributions")
>>>> INFO: Checking out Distributions master...
>>>> INFO: Pulling Distributions latest master...
>>>> WARNING: ArrayViews is fixed at 0.4.1+ conflicting with requirement for
>>>> Distributions: [0.4.3-,∞)
>>>> WARNING: PDMats is fixed at 0.1.1+ conflicting with requirement for
>>>> Distributions: [0.2.2-,∞)
>>>> ERROR: fixed packages introduce conflicting requirements for StatsBase:
>>>>          Distributions requires versions [0.5.1-,∞) [none of the
>>>> available versions can satisfy this requirement]
>>>>        available versions are 0.0.0, 0.2.0, 0.2.1, 0.2.3, 0.2.4, 0.2.5,
>>>> 0.2.6, 0.2.7, 0.2.8, 0.2.9, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5,
>>>> 0.3.6, 0.3.7, 0.3.8 and 0.3.9
>>>>  in error at error.jl:21
>>>>  in check_requirements at pkg/query.jl:109
>>>>  in resolve at ./pkg/entry.jl:387
>>>>  in resolve at pkg/entry.jl:371
>>>>  in anonymous at pkg/entry.jl:189
>>>>  in transact at pkg/git.jl:81
>>>>  in _checkout at pkg/entry.jl:181
>>>>  in checkout at pkg/entry.jl:196
>>>>  in anonymous at pkg/dir.jl:28
>>>>  in cd at ./file.jl:20
>>>>  in cd at pkg/dir.jl:28
>>>>  in checkout at pkg.jl:34
>>>>
>>>> So, I will try to checkout version 0.3 of Julia and see what happens.
>>>> It seems that this problem with Cholesky is a very common issue, but so far
>>>> I couldn't find a good solution for it in the forums in internet.
>>>>
>>>> Best,
>>>>
>>>> Charles
>>>>
>>>> On Tue, Sep 23, 2014 at 11:45 PM, Tim Holy <tim.h...@gmail.com> wrote:
>>>>
>>>>> I assume you're building julia from master. One likely cure is to
>>>>> check out
>>>>> the release-0.3 branch and stick with that. Alternatively, see if you
>>>>> can
>>>>> update Distributions so it works on 0.4-dev.
>>>>>
>>>>> Best
>>>>> --Tim
>>>>>
>>>>> On Tuesday, September 23, 2014 11:08:40 PM Charles Novaes de Santana
>>>>> wrote:
>>>>> > Dear Julia users,
>>>>> >
>>>>> > I was trying to use package Distributions, but I got the following
>>>>> error:
>>>>> >
>>>>> > julia> using Distributions
>>>>> > Warning: could not import Base.add! into NumericExtensions
>>>>> > Warning: could not import Base.add! into PDMats
>>>>> > ERROR: Cholesky not defined
>>>>> >  in include at ./boot.jl:246
>>>>> >  in include_from_node1 at ./loading.jl:128
>>>>> >  in reload_path at loading.jl:152
>>>>> >  in _require at loading.jl:67
>>>>> >  in require at loading.jl:54
>>>>> >  in include at ./boot.jl:246
>>>>> >  in include_from_node1 at ./loading.jl:128
>>>>> >  in reload_path at loading.jl:152
>>>>> >  in _require at loading.jl:67
>>>>> >  in require at loading.jl:51
>>>>> > while loading /home/charles/.julia/PDMats/src/PDMats.jl, in
>>>>> expression
>>>>> > starting on line 31
>>>>> > while loading
>>>>> /home/charles/.julia/Distributions/src/Distributions.jl, in
>>>>> > expression starting on line 4
>>>>> >
>>>>> > I found some posts about the same problem. One of the most recent is
>>>>> this
>>>>> > one: https://github.com/JuliaLang/julia/issues/6436
>>>>> >
>>>>> > However, even after running "Pkg.update()" the error continues.
>>>>> >
>>>>> > Any idea about it?
>>>>> >
>>>>> > My versiton of Julia is: Version 0.4.0-dev+734 (2014-09-23 18:22 UTC)
>>>>> >
>>>>> > Thank you for any comment!
>>>>> >
>>>>> > Best,
>>>>> >
>>>>> > Charles
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Um axé! :)
>>>>
>>>> --
>>>> Charles Novaes de Santana, PhD
>>>> http://www.imedea.uib-csic.es/~charles
>>>>
>>>
>>>
>>
>>
>> --
>> Um axé! :)
>>
>> --
>> Charles Novaes de Santana, PhD
>> http://www.imedea.uib-csic.es/~charles
>>
>
>

Reply via email to