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

Int64 problem in 'matread' #41

Closed
fsobral opened this issue Apr 16, 2015 · 4 comments
Closed

Int64 problem in 'matread' #41

fsobral opened this issue Apr 16, 2015 · 4 comments

Comments

@fsobral
Copy link

fsobral commented Apr 16, 2015

I'm using julia version 0.4.0-dev+4219 and have just updated MAT by Pkg.update().
When loading file scsd8.mat with the matread("scsd8.mat") command the following error occurs:

julia> vars=matread("scsd8.mat")
ERROR: MethodError: `skip_padding` has no method matching skip_padding(::IOStream, ::Int32,   ::Int32)
Closest candidates are:
  skip_padding(::IO, ::Int64, ::Int32)
 in read_element at /home/fsobral/.julia/MAT/src/MAT_v5.jl:109
 in read_matrix at /home/fsobral/.julia/MAT/src/MAT_v5.jl:310
 in read at /home/fsobral/.julia/MAT/src/MAT_v5.jl:346
 in matread at /home/fsobral/.julia/MAT/src/MAT.jl:109

To solve this problem I've changed Int to Int64 in lines 98 and 101 of file MAT_v5.jl.

@simonster
Copy link
Member

I assume you have 32-bit Julia? If so, can you run Pkg.checkout("MAT") and try again?

@fsobral
Copy link
Author

fsobral commented Apr 16, 2015

Yes, I have 32-bit Julia. I removed the .julia/MAT directory, but now I'm unable to Pkg.add("MAT") again (Pkg.checkout("MAT") did not work). I'll try later.

@fsobral
Copy link
Author

fsobral commented Apr 16, 2015

Ok. My fault. I've run Pkg.checkout("MAT") and everything worked! Thanks.

@simonster
Copy link
Member

Great, thanks.

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