Here is the result:

"(bloodhound)[root@lbtvmcentosbug bloodhound]# python
Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from trac.env import open_environment as oe
>>> env = oe('/var/www/bloodhound/installer/bloodhound/environments/main')
>>> import acct_mgr.web_ui
>>> env[acct_mgr.web_ui.LoginModule]
<acct_mgr.web_ui.LoginModule object at 0x3c9f510>
>>> "


2013/7/30 Matevž Bradač <mat...@digiverse.si>

>
> On 30. Jul, 2013, at 12:50, Pedro Estrela wrote:
>
> > Those acct_mgr entries are all enable.
> >
> > Those are the files @
> /var/www/bloodhound/installer/bloodhound/lib/python2.6/site-packages/acct_mgr
> :
> >
> > "
> > (bloodhound)[root@lbtvmcentosbug acct_mgr]# ls -l
> > total 412
> > -rw-r--r--  1 root root 29414 Jul 24 11:30 admin.py
> > -rw-r--r--  1 root root 21742 Jul 24 11:30 admin.pyc
> > -rw-r--r--  1 root root 16703 Jul 24 11:30 api.py
> > -rw-r--r--  1 root root 20038 Jul 24 11:30 api.pyc
> > -rw-r--r--  1 root root  4653 Jul 24 11:30 db.py
> > -rw-r--r--  1 root root  5220 Jul 24 11:30 db.pyc
> > -rw-r--r--  1 root root 10221 Jul 24 11:30 guard.py
> > -rw-r--r--  1 root root  8868 Jul 24 11:30 guard.pyc
> > -rw-r--r--  1 root root   404 Jul 24 11:30 hashlib_compat.py
> > -rw-r--r--  1 root root   357 Jul 24 11:30 hashlib_compat.pyc
> > drwxr-xr-x  2 root root  4096 Jul 24 11:30 htdocs
> > -rw-r--r--  1 root root 10261 Jul 24 11:30 htfile.py
> > -rw-r--r--  1 root root  9907 Jul 24 11:30 htfile.pyc
> > -rw-r--r--  1 root root  2838 Jul 24 11:30 http.py
> > -rw-r--r--  1 root root  2936 Jul 24 11:30 http.pyc
> > -rw-r--r--  1 root root     0 Jul 24 11:30 __init__.py
> > -rw-r--r--  1 root root   168 Jul 24 11:30 __init__.pyc
> > drwxr-xr-x 22 root root  4096 Jul 24 11:30 locale
> > -rw-r--r--  1 root root  6451 Jul 24 11:30 macros.py
> > -rw-r--r--  1 root root  6216 Jul 24 11:30 macros.pyc
> > -rw-r--r--  1 root root  2782 Jul 24 11:30 md5crypt.py
> > -rw-r--r--  1 root root  2901 Jul 24 11:30 md5crypt.pyc
> > -rw-r--r--  1 root root  9429 Jul 24 11:30 model.py
> > -rw-r--r--  1 root root  8418 Jul 24 11:30 model.pyc
> > -rw-r--r--  1 root root  6737 Jul 24 11:30 notification.py
> > -rw-r--r--  1 root root  8604 Jul 24 11:30 notification.pyc
> > -rw-r--r--  1 root root  4918 Jul 24 11:30 pwhash.py
> > -rw-r--r--  1 root root  6322 Jul 24 11:30 pwhash.pyc
> > -rw-r--r--  1 root root 25360 Jul 24 11:30 register.py
> > -rw-r--r--  1 root root 21636 Jul 24 11:30 register.pyc
> > -rw-r--r--  1 root root  2406 Jul 24 11:30 svnserve.py
> > -rw-r--r--  1 root root  3420 Jul 24 11:30 svnserve.pyc
> > drwxr-xr-x  2 root root  4096 Jul 24 11:30 templates
> > -rw-r--r--  1 root root  4234 Jul 24 11:30 util.py
> > -rw-r--r--  1 root root  4864 Jul 24 11:30 util.pyc
> > -rw-r--r--  1 root root 32613 Jul 24 11:30 web_ui.py
> > -rw-r--r--  1 root root 25674 Jul 24 11:30 web_ui.pyc
> >
> > "
> >
>
> Ah, I can see that acct_mgr.web_ui was imported properly below,
> it's just that the next line contains a bug. This
>    env[web_ui.LoginModule]
> should actually be
>    env[acct_mgr.web_ui.LoginModule]
>
> Please check that this works, as we then know that the virtualenv
> is properly set up.
>
> >
> > 2013/7/30 Matevž Bradač <mat...@digiverse.si>
> >
> > On 30. Jul, 2013, at 11:57, Pedro Estrela wrote:
> >
> > > No it wasn't. Sorry about that.
> > >
> > > Here it is now:
> > >
> > > "
> > > [root@lbtvmcentosbug /]# cd var
> > > [root@lbtvmcentosbug var]# cd www
> > > [root@lbtvmcentosbug www]# cd bloodhound/
> > > [root@lbtvmcentosbug bloodhound]# cd installer/
> > > [root@lbtvmcentosbug installer]# ls
> > > bloodhound           createdigest.pyc    requirements-dev.txt
> > > bloodhound_setup.py  pgrequirements.txt  requirements.txt
> > > createdigest.py      README.rst          tests.py
> > > [root@lbtvmcentosbug installer]# cd bloodhound
> > > [root@lbtvmcentosbug bloodhound]# dir
> > > bin  bloodhound  environments  include        lib  lib64  site
> > > [root@lbtvmcentosbug bloodhound]# source ./bin/activate
> > > (bloodhound)[root@lbtvmcentosbug bloodhound]# python
> > > Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)
> > > [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> import genshi
> > > >>> import babel
> > > >>> import themeengine
> > > >>> import acct_mgr
> > > >>> import bhtheme
> > > >>> import bhdashboard
> > > >>> import bhsearch
> > > >>> import multiproduct
> > > >>> import bhrelations
> > > >>> exit()
> > > (bloodhound)[root@lbtvmcentosbug bloodhound]# python
> > > Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)
> > > [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> from trac.env import open_environment as oe
> > > >>> env =
> oe('/var/www/bloodhound/installer/bloodhound/environments/main')
> > > >>> import acct_mgr.web_ui
> > > >>> env[web_ui.LoginModule]
> > > Traceback (most recent call last):
> > >   File "<stdin>", line 1, in <module>
> > > NameError: name 'web_ui' is not defined
> > > >>>
> >
> > Ok that seems better, could you look at the file
> >
> /var/www/bloodhound/installer/bloodhound/environments/main/conf/base.ini
> > there should be the following acct_mgr entries under [components]:
> >   acct_mgr.admin.* = enabled
> >   acct_mgr.api.accountmanager = enabled
> >   acct_mgr.guard.accountguard = enabled
> >   acct_mgr.htfile.htdigeststore = enabled
> >   acct_mgr.web_ui.accountmodule = enabled
> >   acct_mgr.web_ui.loginmodule = enabled
> >
> > Then also please check which acct_mgr .py files were installed for the
> > virtual env, they should be in the
> >
> /var/www/bloodhound/installer/bloodhound/lib/python<version>/site-packages/acct_mgr
> >
> >
> > >
> > >
> > > "
> > >
> > >
> > > 2013/7/30 Gary Martin <gary.mar...@wandisco.com>
> > > Can we be careful to distinguish which environments you are trying
> this in. Is this in the activated bloodhound virtualenv?
> > >
> > > Cheers,
> > >     Gary
> > >
> > >
> > > On 30/07/13 10:17, Pedro Estrela wrote:
> > > Yes i did all as root.
> > >
> > >
> > > [root@lbtvmcentosbug Desktop]# python
> > > Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18)
> > > [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2
> > > Type "help", "copyright", "credits" or "license" for more information.
> > > >>> import genshi
> > > >>> import babel
> > > >>> import themeengine
> > > >>> import acct_mgr
> > > Traceback (most recent call last):
> > >   File "<stdin>", line 1, in <module>
> > > ImportError: No module named acct_mgr
> > > >>> import bhtheme
> > > >>> import bhdashboard
> > > >>> import bhsearch
> > > >>> import multiproduct
> > > >>> import bhrelations
> > > >>>
> > >
> > > this is my output, i guess i'm having some troubles with acct_mgr
> > >
> > >
> > >
> > > 2013/7/30 Matevž Bradač <mat...@digiverse.si <mailto:
> mat...@digiverse.si>>
> > >
> > >
> > >     On 30. Jul, 2013, at 10:45, Pedro Estrela wrote:
> > >
> > >     > I'm running as root.
> > >     >
> > >     > Here is the result of pip freeze:
> > >     >
> > >     > "
> > >     > Warning: cannot find svn location for
> > >     BloodhoundMultiProduct==0.7.0dev-r1506070
> > >     > Warning: cannot find svn location for
> > >     BloodhoundRelationsPlugin==0.7.0dev-r1503571
> > >     > Warning: cannot find svn location for
> > >     BloodhoundTheme==0.7.0dev-r1506038
> > >     > Warning: cannot find svn location for
> > >     BloodhoundSearchPlugin==0.7.0dev-r1503560
> > >     > Warning: cannot find svn location for
> > >     BloodhoundDashboardPlugin==0.7.0dev-r1505871
> > >     > Warning: cannot find svn location for PEAK-Rules==0.5a1.dev-r2582
> > >     > AddOns==0.6
> > >     > Babel==0.9.4
> > >     > Beaker==1.3.1
> > >     > ## FIXME: could not find svn URL in dependency_links for this
> > >     package:
> > >     > BloodhoundDashboardPlugin==0.7.0dev-r1505871
> > >     > ## FIXME: could not find svn URL in dependency_links for this
> > >     package:
> > >     > BloodhoundMultiProduct==0.7.0dev-r1506070
> > >     > ## FIXME: could not find svn URL in dependency_links for this
> > >     package:
> > >     > BloodhoundRelationsPlugin==0.7.0dev-r1503571
> > >     > ## FIXME: could not find svn URL in dependency_links for this
> > >     package:
> > >     > BloodhoundSearchPlugin==0.7.0dev-r1503560
> > >     > ## FIXME: could not find svn URL in dependency_links for this
> > >     package:
> > >     > BloodhoundTheme==0.7.0dev-r1506038
> > >     > BytecodeAssembler==0.5.1
> > >     > Cheetah==2.4.1
> > >     > DecoratorTools==1.7
> > >     > Extremes==1.1
> > >     > FormEncode==1.2.2
> > >     > Genshi==0.6
> > >     > Magic-file-extensions==0.1
> > >     > Mako==0.3.4
> > >     > Markdown==2.0.1
> > >     > MarkupSafe==0.9.2
> > >     > MySQL-python==1.2.3c1
> > >     > Myghty==1.1
> > >     > ## FIXME: could not find svn URL in dependency_links for this
> > >     package:
> > >     > PEAK-Rules==0.5a1.dev-r2582
> > >     > Paste==1.7.4
> > >     > PasteDeploy==1.3.3
> > >     > PasteScript==1.7.3
> > >     > PyGreSQL==3.8.1
> > >     > Pygments==1.1.1
> > >     > Pylons==0.9.7
> > >     > Routes==1.10.3
> > >     > SQLAlchemy==0.5.5
> > >     > SSSDConfig==1.9.2
> > >     > SetupDocs==1.0.5
> > >     > SymbolType==1.0
> > >     > Tempita==0.4
> > >     > ToscaWidgets==0.9.8
> > >     > Trac==1.0.1
> > >     > TracAccountManager==0.4.3
> > >     > TracPermRedirect==3.0
> > >     > TracThemeEngine==2.2.0
> > >     > TurboGears2==2.0.3
> > >     > TurboJson==1.2.1
> > >     > WebError==0.10.2
> > >     > WebFlash==0.1a9
> > >     > WebHelpers==0.6.4
> > >     > WebOb==0.9.6.1
> > >     > WebTest==1.2
> > >     > Whoosh==2.4.1
> > >     > cas==0.15
> > >     > cups==1.0
> > >     > cupshelpers==1.0
> > >     > decorator==3.0.1
> > >     > distribute==0.6.10
> > >     > ethtool==0.6
> > >     > firstboot==1.110
> > >     > freeipa==2.0.0.alpha.0
> > >     > iniparse==0.3.1
> > >     > iotop==0.3.2
> > >     > ipapython==3.0.0
> > >     > iwlib==1.0
> > >     > kerberos==1.0
> > >     > luci==0.26.0
> > >     > lxml==2.2.3
> > >     > matplotlib==0.99.1.1
> > >     > netaddr==0.7.5
> > >     > nose==0.10.4
> > >     > numpy==1.4.1
> > >     > paramiko==1.7.5
> > >     > pexpect==2.3
> > >     > policycoreutils-default-encoding==0.1
> > >     > prioritized-methods==0.2.1
> > >     > psycopg2==2.0.14
> > >     > pyOpenSSL==0.10
> > >     > pyasn1==0.0.12a
> > >     > pycrypto==2.0.1
> > >     > pycurl==7.19.0
> > >     > pygpgme==0.1
> > >     > python-dateutil==1.4.1
> > >     > python-default-encoding==0.1
> > >     > python-ldap==2.3.10
> > >     > python-meh==0.11
> > >     > python-memcached==1.43
> > >     > python-nss==0.13
> > >     > pytz==2010h
> > >     > pyxdg==0.18
> > >     > qpid-python==0.14
> > >     > qpid-tools==0.14
> > >     > repoze.tm2==1.0a4
> > >     > repoze.what==1.0.8
> > >     > repoze.what-pylons==1.0
> > >     > repoze.who==1.0.18
> > >     > repoze.who-friendlyform==1.0.8
> > >     > repoze.who-testutil==1.0rc1
> > >     > scdate==1.9.60
> > >     > sckdump==2.0.5
> > >     > scservices==0.99.45
> > >     > scservices.dbus==0.99.45
> > >     > setools==1.0
> > >     > simplejson==2.0.9
> > >     > slip==0.2.20
> > >     > slip.dbus==0.2.20
> > >     > slip.gtk==0.2.20
> > >     > smbc==1.0
> > >     > sqlparse==0.1.7
> > >     > suds==0.4.1
> > >     > transaction==1.0.1
> > >     > urlgrabber==3.9.1
> > >     > virtualenv==1.9.1
> > >     > yum-metadata-parser==1.1.2
> > >     > zope.interface==3.5.2
> > >     > zope.sqlalchemy==0.4
> > >     > "
> > >     >
> > >
> > >     Hmm, it does seem to be installed.
> > >     Are you also running Olemis' tests as root?
> > >
> > >     Could you also check that the top level BH/Trac modules can be
> > >     imported
> > >     properly by the python interpreter, e.g.:
> > >     {{{#!py
> > >       import genshi
> > >       import babel
> > >       import themeengine
> > >       import acct_mgr
> > >       import bhtheme
> > >       import bhdashboard
> > >       import bhsearch
> > >       import multiproduct
> > >       import bhrelations
> > >     }}}
> > >
> > >     >
> > >     > 2013/7/30 Matevž Bradač <mat...@digiverse.si
> > >     <mailto:mat...@digiverse.si>>
> > >
> > >     >
> > >     > On 30. Jul, 2013, at 10:20, Pedro Estrela wrote:
> > >     >
> > >     > > ">>> import acct_mgr.web_ui
> > >     > > Traceback (most recent call last):
> > >     > >   File "<stdin>", line 1, in <module>
> > >     > > ImportError: No module named acct_mgr.web_ui"
> > >     > >
> > >     > > I guess is missing something
> > >     >
> > >     > Most likely it's not installed. Could you please provide the
> > >     output of
> > >     >   pip freeze
> > >     > command so that we can determine which modules have been
> > >     installed in
> > >     > the environment?
> > >     >
> > >     > Also, how are you running your web server - as admin/root, or as
> a
> > >     > separate user?
> > >     >
> > >     > >
> > >     > >
> > >     > > 2013/7/30 Olemis Lang <ole...@gmail.com <mailto:
> ole...@gmail.com>>
> > >
> > >     > > On 7/29/13, Pedro Estrela <p.estr...@campus.fct.unl.pt
> > >     <mailto:p.estr...@campus.fct.unl.pt>> wrote:
> > >     > > > Hi,
> > >     > > >
> > >     > >
> > >     > > :)
> > >     > >
> > >     > > [...]
> > >     > > > Can you please tell me what i did wrong? This is the error
> > >     that i get:
> > >     > > >
> > >     > > > "Error: Not Found
> > >     > > > No handler matched request to /login"
> > >     > > >
> > >     > >
> > >     > > This is an indication of the fact that account manager plugin
> > >     has not
> > >     > > been ( detected / loaded / enabled ). Could you please launch
> your
> > >     > > python interpreter, execute the following code and tell us
> > >     what's the
> > >     > > result ? Is it even close to what you see below?
> > >     > >
> > >     > > {{{#!py
> > >     > >
> > >     > > >>> from trac.env import open_environment as oe
> > >     > > >>> env = oe('/path/to/bh/env')
> > >     > > >>> import acct_mgr.web_ui
> > >     > > >>> env[web_ui.LoginModule]
> > >     > > <acct_mgr.web_ui.LoginModule object at 0x38a9710>
> > >     > > }}}
> > >     > >
> > >     > > --
> > >     > > Regards,
> > >     > >
> > >     > > Olemis - @olemislc
> > >     > >
> > >     > > Apache™ Bloodhound contributor
> > >     > > http://issues.apache.org/bloodhound
> > >     > > http://blood-hound.net
> > >     > >
> > >     > > Blog ES: http://simelo-es.blogspot.com/
> > >     > > Blog EN: http://simelo-en.blogspot.com/
> > >     > >
> > >     > > Featured article:
> > >     > >
> > >     >
> > >     >
> > >
> > >
> > >
> > >
> >
> >
>
>

Reply via email to