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

UndefVarError: T not defined #27

Closed
MaximilianJHuber opened this issue Jan 20, 2019 · 2 comments
Closed

UndefVarError: T not defined #27

MaximilianJHuber opened this issue Jan 20, 2019 · 2 comments

Comments

@MaximilianJHuber
Copy link
Contributor

When I load a table that I saved with an old version of JuliaDB using master versions of JuliaDB, MemPool, IndexedTables and Julia 1.0.3:

UndefVarError: T not defined

Stacktrace:
 [1] deserialize(::Serialization.Serializer{IOStream}, ::Type{MemPool.MMSer{StructArrays.StructArray{T,N,C} where C<:NamedTuple where N}}) at C:\Users\Max\.julia\packages\MemPool\tlPqB\src\io.jl:27
 [2] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:762
 [3] mmread(::Type{IndexedTable}, ::Serialization.Serializer{IOStream}, ::Bool) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:711
 [4] deserialize(::Serialization.Serializer{IOStream}, ::Type{MemPool.MMSer{IndexedTable}}) at C:\Users\Max\.julia\packages\MemPool\tlPqB\src\io.jl:27
 [5] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:762
 [6] deserialize(::Serialization.Serializer{IOStream}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:711
 [7] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:801
 [8] deserialize(::Serialization.Serializer{IOStream}) at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:711
 [9] deserialize at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Serialization\src\Serialization.jl:708 [inlined]
 [10] #open#294(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::typeof(Serialization.deserialize), ::String) at .\iostream.jl:369
 [11] open at .\iostream.jl:367 [inlined]
 [12] load(::String) at C:\Users\Max\.julia\packages\JuliaDB\t5MGj\src\io.jl:181
 [13] top-level scope at In[1]:2

Any ideas?

@joshday
Copy link
Contributor

joshday commented Apr 24, 2019

I found the offender:

function deserialize(io::AbstractSerializer, ::Type{MMWrap})
    MMWrap(mmread(T, io)) # gotta keep that wrapper on
end

I'm guessing it should be T::Type{MMWrap}? Looking into it now...

@MaximilianJHuber
Copy link
Contributor Author

This is not fixed on master.

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

2 participants