-
Notifications
You must be signed in to change notification settings - Fork 18
Module no long loads with AwesomeWM 4.3, Lua 5.3 or 5.4. #43
Comments
Hi @jeffbowman, thanks for the report!
I've gone through and removed |
@jeffbowman I managed to carve out some time this weekend and remove all calls to |
Thanks @hoelzro !! I did download and try the package, it didn't work, but for a different reason. I use Arch Linux, which packages the awesome windowmanager with a dependency on Lua 5.3, which does not have a 'socket.http' library it seems. I did find a package to install: I'm still trying different things, going to Lua 5.4 may resolve most of those problems, so I may look into building my own |
omigosh! Okay, so after that last post, I did some more digging and I have it working now. Here is the recipe: Packages needed in Arch Linux:
Change lines in
I get a warning that says: Obvious Not sure where that is coming from though. Also, does the effort on this issue resolve #36? |
@jeffbowman Wow, thanks for digging into this and sticking with it! I'm also an Arch user, and the local json = pcall(require, 'json') or pcall(require, 'dkjson') To be honest, obvious shouldn't fail to load if one of those dependencies is missing - it should issue a warning and just fail the widget that needs it. Regarding the current warning you're seeing regarding Unicode, if you just run I completely forgot about #36 - I've been using Obvious with 5.3 for a long time now, so I think I'll just close that. Thanks again for your sleuthing efforts! |
Thanks for the tip with I ran For this particular issue, I think the original problem has been resolved and we can close this one (always feels like progress when closing issues to me ;-) ) Thanks for being so responsive and helpful! |
Hello, I don't want to be unpolite and get into the conversation but I think since it is related it might be worth to report it here also. I am having the same issue Best regards. |
@vonpupp you might need to Hope that helps some. |
@jeffbowman Ah, I bet you need to update Lua's module search path - that looks something like this: https://github.com/hoelzro/awesome-config/blob/d843dde47d8af2a922ba6201f44681419f9a8192/rc.lua#L32
…On Tue, Aug 11, 2020, at 6:11 PM, Jeff Bowman wrote:
Thanks for the tip with `pcall`! I've updated my version with your suggestion.
I ran `make` in the `obvious` directory, it compiled `native.so` but it doesn't seem to be recognized. I still get the same error. Not sure this issue is the correct forum for that though, is there a mailing list/irc/wiki (the wiki here appears non-existent) I could use to chat about it?
For this particular issue, I think the original problem has been resolved and we can close this one (always feels like progress when closing issues to me ;-) )
Thanks for being so responsive and helpful!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#43 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAA2KHGRQAGSSTIZ5N2L2STSAHFZRANCNFSM4PV5YCNQ>.
|
Thanks @jeffbowman, I just noticed there is a "main" branch which is more updated than the master. I guess you are referring to that one. I will keep an eye on this issue, since it seems I am having the same issue also. I am also using Arch Linux, but the awesome package that I am using is the following: |
@vonpupp same here, pretty much everything related to my awesomewm setup is from packages in the main repo (as opposed to AUR). However, see my list of packages from above, and then I installed this repo directly in .config/awesome as the AUR obvious-git wasn't picking up the changes make by @hoelzro, and I made a few local changes as well (notably the dkjson reference since I missed finding the luajson package beforehand). |
@jeffbowman, I was using obvious from the master branch cloned manually within my |
Using this code:
local obvious = require("obvious")
gives the following error:
Error during execution: /usr/share/awesome/lib/obvious/lib/mpd/init.lua:53: attempt to call a nil value (global 'module')
It appears the
module
function does not exist in Lua 5.3 or Lua 5.4. I tried substitutingmodule
withrequire
but then I was getting an error on when doing something like:local myvolume = obvious.volume_alsa()
that said:attempt to index a boolean value (local 'obvious')
I'm not sure how to fix it as I'm not quite that strong in Lua, so thought I'd at least post an issue here.
The text was updated successfully, but these errors were encountered: