You are not logged in.

#1 2013-01-03 23:02:26

highway
Member
Registered: 2012-07-28
Posts: 81

[SOLVED] awesome / lua module problem . . .

i uninstalled weechat the other day with -Rs instead of just -R. upon awesome loading i have the following error:

error loading module 'socket.core' from the file '/usr/lib/lua5,2/socket/core.so': /usr/lib/lua/5.2/socket/core.so: undefined symbol: luaL_putchar

i have already reinstalled weechat with the lua dependency, and then i tried lua separately, but i still have the error, loading the default version of awesome by default.

i understand that removing the dependency was wrong, but am still not sure how to fix it . . . can anyone help?

EDIT: the problem was that my current rc.lua file was broken with the upgrade of awesome wm from 3.4 to 3.5 . . . i went back to a default rc.lua from 3.5 (as well as uninstalling those other socket modules) and everything was working again.  thanks to everyone for the help / suggestions!

Last edited by highway (2013-01-05 04:38:26)

Offline

#2 2013-01-04 00:01:14

highway
Member
Registered: 2012-07-28
Posts: 81

Re: [SOLVED] awesome / lua module problem . . .

any suggestions? this is my work laptop . . .

Offline

#3 2013-01-04 01:18:06

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED] awesome / lua module problem . . .

Did you do `pacman -Rs --optdeps weechat` while using pacman-git? I'm pretty sure that's the only way to remove an optdep that is explicitly required by another package. That lib doesn't even exist on my up-to-date system, so maybe it's a newer [testing] lib or an older lua-5.2 thing.

Anyway, I'm guessing your system is out of sync with itself. You might have isolated lua by reinstalling it with `pacman -Sy lua` or by doing `pacman -Sy` at some point prior without a full upgrade.

Last edited by tdy (2013-01-04 01:28:59)

Offline

#4 2013-01-04 01:48:22

highway
Member
Registered: 2012-07-28
Posts: 81

Re: [SOLVED] awesome / lua module problem . . .

thanks for the reply! i did not do the --optdeps weechat while using pacman . . .

i usually run 'sudo pacman -Syu' on startup, which i did last night, updated a bunch of things, saw weechat was installed (which i dont use), so i did 'sudo pacman -Rs weechat' and didnt restart until shutdown. upon booting today i have the error and default awesome wm loading.

is there something i can do to get them to sync back up?

Offline

#5 2013-01-04 01:59:55

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED] awesome / lua module problem . . .

What does this output?

$ pacman -Qm | grep -E 'awesome|lua'

Last edited by tdy (2013-01-04 02:02:37)

Offline

#6 2013-01-04 02:08:04

highway
Member
Registered: 2012-07-28
Posts: 81

Re: [SOLVED] awesome / lua module problem . . .

tdy wrote:

What does this output?

$ pacman -Qm | grep -E 'awesome|lua'

conky-lua
lua-socket
luainotify
toluapp

----

from: http://sprunge.us/ifNV

^ cli pastebin

Offline

#7 2013-01-04 02:31:18

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED] awesome / lua module problem . . .

I don't know what those are exactly, but I don't see lua-socket anywhere, even on the AUR.

My guess is that you're autostarting some broken lua app(s) that need to be rebuilt for lua 5.2, and that a clean launch of awesome won't fail (as in an .xinitrc with only "exec awesome" and using the default config). As I said, that lib doesn't even exist on my system and my awesome-3.5-2/lua-5.2.1-3 work fine here.

Offline

#8 2013-01-04 02:49:37

highway
Member
Registered: 2012-07-28
Posts: 81

Re: [SOLVED] awesome / lua module problem . . .

tdy wrote:

I don't know what those are exactly, but I don't see lua-socket anywhere, even on the AUR.

My guess is that you're autostarting some broken lua app(s) that need to be rebuilt for lua 5.2, and that a clean launch of awesome won't fail (as in an .xinitrc with only "exec awesome" and using the default config). As I said, that lib doesn't even exist on my system and my awesome-3.5-2/lua-5.2.1-3 work fine here.

my .xinitrc file now reads:

#!/bin/bash
urxvtd -q -o -f
export BROWSER=firefox
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
#exec ck-launch-session dbus-launch awesome  >> "$HOME"/.cache/awesome/stdout 2>> "$HOME"/.cache/awesome/stderr
exec awesome

and i replaced rc.lua with default.rc.lua, is this correct?

still no changes . . .

thanks again for all of the help

Offline

#9 2013-01-04 03:05:08

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED] awesome / lua module problem . . .

Try temporarily uninstalling those lua packages, or at the very least lua-socket. I know that lua modules are automatically loaded from $HOME and $XDG_CONFIG_HOME, so maybe also /usr/lib.

If that still doesn't work then I don't know, unless you've left out some info (like you built awesome via abs for example). Something's not adding up in general (like -Rs uninstalling required optdeps without using --optdeps in pacman-git). The only other thing I can think would be to explicitly reinstall awesome. Maybe someone else will have ideas.

Last edited by tdy (2013-01-04 03:11:30)

Offline

#10 2013-01-04 03:46:54

highway
Member
Registered: 2012-07-28
Posts: 81

Re: [SOLVED] awesome / lua module problem . . .

ok so i uninstalled lua-socket and now i have a bunch of socket related errors from line 5 of my rc.lua calling for the socket to be loaded for debug mode . . .

i found lua-socket in AUR, but when i try to install it, i get the errors saying:

gzip: stdin: not in gzip format
tar: child returned status 1
tar: error is not recoverable: exiting now
no PKGBUILD found in directory

i dont think i built anything from source other than luakit via git, which i dont use at all . . . i just use firefox because it's easier.

Offline

#11 2013-01-04 03:59:41

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED] awesome / lua module problem . . .

What do you mean you found lua-socket? Are we talking about the same AUR? http://aur.archlinux.org/

And line 5 is just loading the autofocus library unless you're still using another config..

None of this makes any sense to me, so I guess it's time for me to bow out...

Offline

#12 2013-01-04 04:08:50

highway
Member
Registered: 2012-07-28
Posts: 81

Re: [SOLVED] awesome / lua module problem . . .

tdy wrote:

What do you mean you found lua-socket? Are we talking about the same AUR? http://aur.archlinux.org/

And line 5 is just loading the autofocus library unless you're still using another config..

None of this makes any sense to me, so I guess it's time for me to bow out...

yeah, when i type 'sudo packer -S lua-socket' it says:

Aur Targets (1) : lua-socket

Proceed with installation? [Y/N]

I guess at this point I dont know what to do if you are out of your element, I might have to install gnome or something to get a working desktop which really sucks. I liked using awesome very much, but need a functional computer and am really lost.

Is there a way to just remove awesome and lua completely while keeping my rc.lua settings so that I could remove/reinstall and then have my same configs put back?

Offline

#13 2013-01-04 05:22:11

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [SOLVED] awesome / lua module problem . . .

I would try removing lua-socket, luainotify, and toluapp and see if that helps.

Also removing awesome/lua will not remove the config files in your $HOME, if that is what you are asking.

Offline

#14 2013-01-04 05:37:01

highway
Member
Registered: 2012-07-28
Posts: 81

Re: [SOLVED] awesome / lua module problem . . .

anonymous_user wrote:

I would try removing lua-socket, luainotify, and toluapp and see if that helps.

Also removing awesome/lua will not remove the config files in your $HOME, if that is what you are asking.

thank you very much!

Offline

Board footer

Powered by FluxBB