Yes, I also tried running Pkg.checkout("Mongo"). I also checked that the 
original MongoCollection.jl had find(...), while the checked-out version 
has Base.find(...) methods. I also restarted the kernel to make sure it 
picked up the changes. 

Could you test that Mongo with the Julia v0.4 works properly on your side? 
It'd also be nice to get a hint on what this convert(::Type{Ptr{Void}}, 
::Array{UInt8,1}) is and what's the problem with. I am pretty new to Julia.


On Tuesday, September 1, 2015 at 3:41:27 PM UTC-4, Tim Lebel wrote:
>
> Did you try running Pkg.checkout("Mongo")? I believe that I fixed this, 
> but the maintainer may not have pushed a new tag.
>
> On Tue, Sep 1, 2015 at 9:14 AM, Ferenc Szalma <sza...@gmail.com 
> <javascript:>> wrote:
>
>> Kevin,
>>
>> I also managed to get Pzion's Mongo.jl to work in Julia v0.3. Now, I am 
>> trying to make it work in v0.4 but getting an error message while trying to 
>> insert:
>>
>> oid = insert(collection, {"name"=>"time series"})
>>
>>
>>
>> WARNING: deprecated syntax "{a=>b, ...}" at In[36]:1. Use 
>> "Dict{Any,Any}(a=>b, 
>> ...)" instead. 
>>
>> LoadError: MethodError: `convert` has no method matching convert(::Type{
>> Ptr{Void}}, ::Array{UInt8,1})
>> This may have arisen from a call to the constructor Ptr{Void}(...),
>> since type constructors fall back to convert methods.
>> Closest candidates are:
>>  call{T}(::Type{T}, ::Any)
>>  convert{T}(::Type{Ptr{T}}, !Matched::UInt64)
>>  convert{T}(::Type{Ptr{T}}, !Matched::Int64)
>>  ...
>> while loading In[36], in expression starting on line 1
>>  
>>
>>  in insert at /Users/szalmaf/.julia/v0.4/Mongo/src/MongoCollection.jl:42 
>>
>>
>> Did you try Mongo.jl in Julia v0.4? Do you have any suggestions as to how 
>> to go about getting rid of the LoadError above? It seems like a generic 
>> problem when switching from v0.3 to v0.4.
>>
>> Cheers
>>
>>
>

Reply via email to