'Error while trying to open 'Love2d' game engine

I'm trying to open a game with Love2D and the following error occurs:

Error

boot.lua:577: Cannot load game at path '/home/panali/Desktop/Lua.love/main.lua'. Make sure a folder exists at the specified path.

Traceback

[C]: in function 'error'
[C]: in function 'xpcall'
[C]: in function 'xpcall'

Can anyone help me and tell me what am I doing wrong?



Solution 1:[1]

You can try to open the folder instead of lua file

Solution 2:[2]

I dont know if you're still looking at this, the error is that you cant open a main.lua directly, it has to be in a folder.

Solution 3:[3]

had the same issue, resolved this by pointing folder instead filename:

love ./

instead of

love main.lua

Solution 4:[4]

you can't just give the location of the file, you need to give to location of the folder. try putting main.lua inside a folder and then run the folder.

Solution 5:[5]

The folder cant have a space in it. It took me an hour to find this out myself.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Z Jiang
Solution 2 Teo434
Solution 3 user3549043
Solution 4 freeve4
Solution 5 Joe Smith