Code Monkey home page Code Monkey logo

Comments (7)

pavouk avatar pavouk commented on June 8, 2024

I guess you forgot to include the link to the pastebin. Or if the output is not too long, you can just paste here.
Also, you say 'I'm following instructions from the GNOME website', can you please be more specific about which gnome website (url)? I'm not aware of GNOME web mentioning instructions regarding lgi.

from lgi.

aezop avatar aezop commented on June 8, 2024

I am a failure, I apologize.

http://pastebin.com/p5NMkYic

I actually meant the GTK+ website. Again, I apologize, I was up at 4am trying to find something to create a gui with lua, I started getting sloppy.

http://www.gtk.org/language-bindings.php -> https://github.com/pavouk/lgi

Oh shit, meta-failure, I just realized I was following your instructions.

I'm sorry for the misunderstanding, my incompetence is overwhelming.

EDIT: I installed the package in the first paragraph, and luarocks installed lgi without a hitch. I guess maybe that was my problem. I don't really know.

from lgi.

pavouk avatar pavouk commented on June 8, 2024

:-D

From the log in the pastebin it is clear that the gobject-introspection-devel package was missing, and as you said after installing it everything worked fine as expected. So if you have no other problem related to installation, I guess this one is solved. If you don't agree, please reopen.

Enjoy working with lgi, and I wish you less stress at 4am. :-)

from lgi.

aezop avatar aezop commented on June 8, 2024

I'm back, and still relatively incompetent. LuaRocks installed lgi and I installed the devel package, but now I'm having trouble actually using lgi.

I've created a file test.lua, it contains:
local lgi = require 'lgi'

but I'm getting this back when I try to execute the script:

aezop@universe ~/Desktop $ lua test.lua
lua: test.lua:1: module 'lgi' not found:
no field package.preload['lgi']
no file '/usr/local/share/lua/5.2/lgi.lua'
no file '/usr/local/share/lua/5.2/lgi/init.lua'
no file '/usr/local/lib/lua/5.2/lgi.lua'
no file '/usr/local/lib/lua/5.2/lgi/init.lua'
no file './lgi.lua'
no file '/usr/share/lua/5.2/lgi.lua'
no file '/usr/share/lua/5.2/lgi/init.lua'
no file './lgi.lua'
no file '/usr/local/lib/lua/5.2/lgi.so'
no file '/usr/lib/i386-linux-gnu/lua/5.2/lgi.so'
no file '/usr/lib/lua/5.2/lgi.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './lgi.so'
stack traceback:
[C]: in function 'require'
test.lua:1: in main chunk
[C]: in ?
aezop@universe ~/Desktop

Any ideas?

from lgi.

aezop avatar aezop commented on June 8, 2024

Okay I figured it out, it doesn't work with lua 5.2. I removed 5.2 and executed the script with 5.1 and it ran through perfectly. You can close this again. I think I really can handle the rest from here.

from lgi.

pavouk avatar pavouk commented on June 8, 2024

OK, I'm glad that figured it out. BTW, I've no problems with running lgi with 5.2 here (and actually debian successfully packages lgi for both 5.1 and 5.2). I guess that the problem might come from luarocks installation on Lua5.2.

from lgi.

bliednov avatar bliednov commented on June 8, 2024

Had the same problem with lua: test.lua:1: module 'lgi' not found:
Just type sudo apt-get install lua-lgi

from lgi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.