metalaureate / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
0 stars 0 forks source link

mod_pastebin fails to load in 0.8 #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1.install mod_pastebin
2. enable it as described in 
https://code.google.com/p/prosody-modules/wiki/mod_pastebin
3. restart prosody

The module isn't loaded and the error log gives this : 

"/usr/lib/prosody/modules/mod_pastebin.lua:3: attempt to call method 'depends' 
(a nil value)"

This corresponds to the line "module:depends("http");"

My version of prosody is 0.8.2-3.

Original issue reported on code.google.com by hugo.fe...@gmail.com on 20 Jul 2012 at 9:22

GoogleCodeExporter commented 9 years ago
where did you get mod_pastebin? from the trunk, or from the 0.8 branch?

Original comment by mva.name on 28 Jul 2012 at 8:24

GoogleCodeExporter commented 9 years ago
I had the same problem with mod_webpresence. Checking out the 0.8-diverge tag 
and using that solved the problem for me:

$ hg checkout 0.8-diverge
$ cp mod_webpresence/mod_webpresence.lua /usr/lib/prosody/modules/

Original comment by cwei...@cweiske.de on 3 Aug 2012 at 6:03

GoogleCodeExporter commented 9 years ago
I got the same situation with mod_pastebin:
Feb 12 12:16:48 modulemanager   error   Error initializing module 'pastebin' on 
'conference.lobotomy.me': /usr/lib/prosody/modules/mod_pastebin.lua:3: attempt 
to call method 'depends' (a nil value)
stack traceback:
        /usr/lib/prosody/core/modulemanager.lua:35: in function 'depends'
        /usr/lib/prosody/modules/mod_pastebin.lua:3: in main chunk
        (tail call): ?
        [C]: in function 'xpcall'
        /usr/lib/prosody/core/modulemanager.lua:35: in function 'pcall'
        /usr/lib/prosody/core/modulemanager.lua:129: in function 'load'
        /usr/lib/prosody/core/modulemanager.lua:88: in function '?'
        /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/lib/prosody/core/hostmanager.lua:84: in function 'activate'
        /usr/lib/prosody/core/hostmanager.lua:42: in function '?'
        /usr/lib/prosody/util/events.lua:67: in function 'fire_event'
        /usr/bin/prosody:374: in function 'prepare_to_start'
        /usr/bin/prosody:490: in main chunk
        [C]: ?

Ubuntu 12.04.2 LTS
aptitude show prosody
...
Version: 0.8.2-1
...                                      

Original comment by dolgov...@gmail.com on 12 Feb 2013 at 8:19

GoogleCodeExporter commented 9 years ago
Hi folks,

Please see the explanation on http://code.google.com/p/prosody-modules - these 
ones are not compatible with 0.8 (you will find a link to 0.8 compatible 
versions on the above page).

Hope this helps!

Original comment by MWild1 on 31 Mar 2013 at 2:47