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

Error: error loading module 'cjson' from file %1 is not a valid Win32 application. #63

Closed
OleeL opened this issue Oct 22, 2018 · 2 comments
Closed

Comments

@OleeL
Copy link

@OleeL OleeL commented Oct 22, 2018

I am running:

local cjson = require("cjson")

and in response I am getting this:

Error: error loading module 'cjson' from file 'C:\Program Files (x86)\Lua\5.1\systree\lib\lua\5.1\cjson.dll':
        %1 is not a valid Win32 application.

stack traceback:
        [string "boot.lua"]:637: in function <[string "boot.lua"]:633>
        [C]: at 0x7fffaa6d6130
        [C]: in function 'require'
        main.lua:2: in main chunk
        [C]: in function 'require'
        [string "boot.lua"]:475: in function <[string "boot.lua"]:311>
        [C]: in function 'xpcall'
        [string "boot.lua"]:645: in function <[string "boot.lua"]:639>
        [C]: in function 'xpcall

any ideas how to fix?

UPDATE:
I just found out that cjson runs fine with just lua. I had been running it with love2d. Still looking into why I'm getting this error

@OleeL OleeL closed this Apr 2, 2019
@cloewen8
Copy link

@cloewen8 cloewen8 commented Jul 5, 2019

Did you ever manage to find a solution for this?

@cloewen8
Copy link

@cloewen8 cloewen8 commented Jul 6, 2019

One thing to check, if you are still having trouble with this. Try running it with a 32-bit version of Love2d. Worked for me with another module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants