Comments (7)
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.
I am a failure, I apologize.
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.
:-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.
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.
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.
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.
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)
- Has this been abandoned? For me on v5.3 it doesn't work HOT 6
- Ability to keep out parameter as NULL HOT 8
- Does lgi support Gtk4? HOT 24
- How to emit signals on an object HOT 26
- GVariant dictionnaries returned from GDBus method calls and signals are empty HOT 4
- Errors in callbacks don't terminate the loop HOT 4
- Segmentation fault in Gio.File.copy_async HOT 7
- API reference such as https://lazka.github.io/pgi-docs/? HOT 2
- Misaligned memory accesses in marshal_2c_int and marshal_2lua_int HOT 2
- Building in Windows with meson is looking for luajit-5.1.lib HOT 3
- GtkContainer.child SIGSEGVs on access HOT 5
- How to connect signal on derived class of GstBin? HOT 5
- Segmentation fault when using netwok manager HOT 1
- Segmentation fault when using upower and playerctl interfaces HOT 1
- push to luarocks HOT 14
- Fails to install on fedora 36, Lua 5.4-1 HOT 5
- install error HOT 3
- _resolve can cause luajit to segmentation fault
- Cannot import Glib HOT 1
- Makefile doesn't work on systems with multiple lua versions? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lgi.