Swat2 Installation Steps -- Errors
Jose Nilton
jniltinho at gmail.com
Sat Feb 2 17:20:51 MST 2013
Erros
swat/controllers/account.py
Change
from pylons.controllers.util import redirect, url_for
To:
from routes import url_for
from pylons.controllers.util import redirect
(http://pylonsbook.com/en/1.1/urls-routing-and-dispatch.html)
*>>> from pylons.controllers.util import redirect, url_for
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name url_for*
Install package python
easy_install AuthKit
Add path lib samba
File: swat/lib/helpers.py
Line 541
import sys, os
sys.path.append("/opt/samba4/lib/python2.7/site-packages")
or
sys.path.append("/usr/local/samba/lib/python2.7/site-packages")
Fork Swat2:
https://github.com/jniltinho/smb4manager
Framework Web2py, very simple and fast to develop
need some help on how to use the lib samr_manager.py to list users, add
users and groups list
Thank's
2013/1/31 Jose Nilton <jniltinho at gmail.com>
> OS: Opensuse 12.2
> ARCH: 32Bits
> Samba: samba 4.0.2 (RPM folder /opt/samba4)
> Python: 2.7
>
> zypper install git
> easy_install -U pylons
>
>
> cd /opt/
> git clone git://git.samba.org/jelmer/swat.git
>
> cd swat
> python setup.py develop
> paster serve --reload development.ini
>
>
> *Errors:*
> Starting subprocess with file monitor
> Traceback (most recent call last):
> File "/usr/bin/paster", line 9, in <module>
> load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
> File "/usr/lib/python2.7/site-packages/paste/script/command.py", line
> 104, in run
> invoke(command, command_name, options, args[1:])
> File "/usr/lib/python2.7/site-packages/paste/script/command.py", line
> 143, in invoke
> exit_code = runner.run(args)
> File "/usr/lib/python2.7/site-packages/paste/script/command.py", line
> 238, in run
> result = self.command()
> File "/usr/lib/python2.7/site-packages/paste/script/serve.py", line 284,
> in command
> relative_to=base, global_conf=vars)
> File "/usr/lib/python2.7/site-packages/paste/script/serve.py", line 321,
> in loadapp
> **kw)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 247, in loadapp
> return loadobj(APP, uri, name=name, **kw)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 271, in loadobj
> global_conf=global_conf)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 296, in loadcontext
> global_conf=global_conf)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 320, in _loadconfig
> return loader.get_context(object_type, name, global_conf)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 454, in get_context
> section)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 476, in _context_from_use
> object_type, name=use, global_conf=global_conf)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 406, in get_context
> global_conf=global_conf)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 296, in loadcontext
> global_conf=global_conf)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 328, in _loadegg
> return loader.get_context(object_type, name, global_conf)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 620, in get_context
> object_type, name=name)
> File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line
> 646, in find_egg_entry_point
> possible.append((entry.load(), protocol, entry.name))
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2017, in
> load
> entry = __import__(self.module_name, globals(),globals(), ['__name__'])
> File "/opt/swat/swat/config/middleware.py", line 19, in <module>
> import authkit.authenticate
> ImportError: No module named authkit.authenticate
>
>
>
> ATT: Nilton
>
>
> --
>
> ..............................................................................
> *Com Deus todas as coisas são possíveis* ::: LinuxPro<http://www.linuxpro.com.br>
>
> *"A qualidade nunca se obtém por acaso; ela é sempre o resultado do
> esforço inteligente." (John Ruskin)
> "A mente que se abre a uma nova ideia jamais volta ao seu tamanho
> original" (Albert Einstein)*
>
--
..............................................................................
*Com Deus todas as coisas são possíveis* :::
LinuxPro<http://www.linuxpro.com.br>
*"A qualidade nunca se obtém por acaso; ela é sempre o resultado do esforço
inteligente." (John Ruskin)
"A mente que se abre a uma nova ideia jamais volta ao seu tamanho original"
(Albert Einstein)*
More information about the samba-technical
mailing list