question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ffi.lua:56 expected align(#) on line 579

See original GitHub issue

When run command th prepro_img_vgg16.lua -imageRoot ../image_root -gpuid 0

there are errors:

/home/denniswu/torch/install/bin/lua: .../denniswu/torch/install/share/lua/5.1/trepl/init.lua:389: .../denniswu/torch/install/share/lua/5.1/trepl/init.lua:389: ...me/denniswu/torch/install/share/lua/5.1/hdf5/ffi.lua:56: expected align(#) on line 579 stack traceback: [C]: in function 'error' .../denniswu/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' prepro_img_vgg16.lua:3: in main chunk [C]: in function 'dofile' .../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk

has anyone met this problem?

thanks in advance.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
spx1997commented, Nov 18, 2018

torch-hdf5 with lua 5.2 and gcc 4.8 can work. I think it has a relationship with version of gcc

0reactions
abhshkdzcommented, Sep 13, 2018

torch-hdf5 with lua 5.1 and gcc 4.8 / 4.9 (instead of gcc 5.4) should work. Could you give that a shot?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ffi.lua:56: expected align(#) on line 579 #79 - GitHub
I have torch with Lua 5.2 installed on ubuntu 16.04. When I use require 'hdf5' I have got error.
Read more >
A brand new website interface for an even better experience!
ffi.lua:56: expected align(#) on line 579.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found