Sorry didn't have time to check this out yesterday... Yes, I had to fix the pointer conversion in LibBSON as well to get insert working. Wish the package maintainers would push new tags!
On Tue, Sep 1, 2015 at 5:00 PM, Ferenc Szalma <szal...@gmail.com> wrote: > Alright. So I had to checkout LibBSON and build it separately form Mongo, > then restarting the kernel insert works in v0.4, too. > > On Tuesday, September 1, 2015 at 7:14:40 PM UTC-4, Ferenc Szalma wrote: >> >> I just tried `delete` and `find` and these two operations work. `insert` >> however does not work. >> >> 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> 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 >>>> >>>> >>>