Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-13 Thread Phenex
Am Montag 12 April 2010 21:05:36 schrieb Tres Seaver:
> Phenex wrote:
> > Hi,
> > i am unable to run the sample application of the repoze.what pylons
> > integration. I get a bunch of error from paste i do not understant what
> > went went wrong. After i failed to get the new version to run (the old
> > one hase problems with unicode usernames but worked fine with the rest,
> > so i installed the actual one via pip), i tried it with the sample. I run
> > Ubuntu Karmic with python 2.6 and all moduls in newest version inside an
> > virtuelenv. I give the traceback here:
> >
> > (pylons)phe...@phenex-laptop:~/Programmiererung/Web/pylone-
> > tests/PylonsSecuredApp$ clear; paster setup-app development.ini
> > Traceback (most recent call last):
> >   File "/home/phenex/.virtualenv/pylons/bin/paster", line 8, in 
> > load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/script/command.py", line 84, in run
> > invoke(command, command_name, options, args[1:])
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/script/command.py", line 123, in invoke
> > exit_code = runner.run(args)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/script/appinstall.py", line 68, in run
> > return super(AbstractInstallCommand, self).run(new_args)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/script/command.py", line 218, in run
> > result = self.command()
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/script/appinstall.py", line 447, in command
> > conf = appconfig(config_spec, relative_to=os.getcwd())
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 215, in appconfig
> > global_conf=global_conf)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 248, in loadcontext
> > global_conf=global_conf)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 278, in _loadconfig
> > return loader.get_context(object_type, name, global_conf)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 409, in get_context
> > section)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 431, in _context_from_use
> > object_type, name=use, global_conf=global_conf)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 361, in get_context
> > global_conf=global_conf)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 248, in loadcontext
> > global_conf=global_conf)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 285, in _loadegg
> > return loader.get_context(object_type, name, global_conf)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 561, in get_context
> > object_type, name=name)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/paste/deploy/loadwsgi.py", line 581, in find_egg_entry_point
> > pkg_resources.require(self.spec)
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/pkg_resources.py", line 666, in require
> > needed = self.resolve(parse_requirements(requirements))
> >   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> > packages/pkg_resources.py", line 565, in resolve
> > raise DistributionNotFound(req)  # XXX put more info here
> > pkg_resources.DistributionNotFound: PylonsSecuredApp
> > ---
> > Any ideas?
> 
> I just tried to reprodue this in a clean virtualenv:
> 
>  $ uname -a
>  Linux scout 2.6.28-18-generic #60-Ubuntu SMP Fri Mar 12 04:40:52 UTC\
> 2010 i686 GNU/Linux
>  $ /opt/Python-2.6.5/bin/virtualenv --no-site-packages \
> --unzip-setuptools /tmp/phenex
>  New python executable in /tmp/phenex/bin/python
>  Installing setuptools.done.
>  $ cd /tmp/phenex
>  $ bin/easy_install Pylons repoze.what
>  
>  Finished processing dependencies for repoze.what
>  $ mkdir src
>  $ cd src
>  $ ../bin/paster create -t pylons phenex
>  ...
> Copying templates/default_project/test.ini_tmpl to ./phenex/test.ini
>  Running /tmp/phenex/bin/python setup.py egg_info
>  $ cd phenex
>  $ ../../bin/paster setup-app development.ini
>  Running setup_config() from phenex.websetup
> 
> Until sometime last week, the released version of repoze.what (1.0.8)
> was incomptible with the latest repoze.who releast (2.0a2).  The
> currently released repoze.what (1.0.9) now pins repoze.who (effectively
> to the last 1.0.x release).
> 
> Can you t

Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phenex wrote:
> Hi,
> i am unable to run the sample application of the repoze.what pylons 
> integration. I get a bunch of error from paste i do not understant what went 
> went wrong. After i failed to get the new version to run (the old one hase 
> problems with unicode usernames but worked fine with the rest, so i installed 
> the actual one via pip), i tried it with the sample. I run Ubuntu Karmic with 
> python 2.6 and all moduls in newest version inside an virtuelenv.
> I give the traceback here:
> 
> (pylons)phe...@phenex-laptop:~/Programmiererung/Web/pylone-
> tests/PylonsSecuredApp$ clear; paster setup-app development.ini
> Traceback (most recent call last):
>   File "/home/phenex/.virtualenv/pylons/bin/paster", line 8, in 
> load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/command.py", line 84, in run
> invoke(command, command_name, options, args[1:])
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/command.py", line 123, in invoke
> exit_code = runner.run(args)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/appinstall.py", line 68, in run
> return super(AbstractInstallCommand, self).run(new_args)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/command.py", line 218, in run
> result = self.command()
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/appinstall.py", line 447, in command
> conf = appconfig(config_spec, relative_to=os.getcwd())
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 215, in appconfig
> global_conf=global_conf)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 248, in loadcontext
> global_conf=global_conf)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 278, in _loadconfig
> return loader.get_context(object_type, name, global_conf)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 409, in get_context
> section)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 431, in _context_from_use
> object_type, name=use, global_conf=global_conf)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 361, in get_context
> global_conf=global_conf)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 248, in loadcontext
> global_conf=global_conf)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 285, in _loadegg
> return loader.get_context(object_type, name, global_conf)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 561, in get_context
> object_type, name=name)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 581, in find_egg_entry_point
> pkg_resources.require(self.spec)
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/pkg_resources.py", line 666, in require
> needed = self.resolve(parse_requirements(requirements))
>   File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/pkg_resources.py", line 565, in resolve
> raise DistributionNotFound(req)  # XXX put more info here
> pkg_resources.DistributionNotFound: PylonsSecuredApp
> ---
> Any ideas?

I just tried to reprodue this in a clean virtualenv:

 $ uname -a
 Linux scout 2.6.28-18-generic #60-Ubuntu SMP Fri Mar 12 04:40:52 UTC\
2010 i686 GNU/Linux
 $ /opt/Python-2.6.5/bin/virtualenv --no-site-packages \
--unzip-setuptools /tmp/phenex
 New python executable in /tmp/phenex/bin/python
 Installing setuptools.done.
 $ cd /tmp/phenex
 $ bin/easy_install Pylons repoze.what
 
 Finished processing dependencies for repoze.what
 $ mkdir src
 $ cd src
 $ ../bin/paster create -t pylons phenex
 ...
Copying templates/default_project/test.ini_tmpl to ./phenex/test.ini
 Running /tmp/phenex/bin/python setup.py egg_info
 $ cd phenex
 $ ../../bin/paster setup-app development.ini
 Running setup_config() from phenex.websetup

Until sometime last week, the released version of repoze.what (1.0.8)
was incomptible with the latest repoze.who releast (2.0a2).  The
currently released repoze.what (1.0.9) now pins repoze.who (effectively
to the last 1.0.x release).

Can you try upgrading repoze.what, which should then downgrade
repoze.who, and see if it makes your problem go away?




Tres.
- --
===
Tres Sea

Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-11 Thread Phenex
Am Samstag 10 April 2010 17:11:46 schrieb Chris McDonough:
> I'm not sure that I remember the entire context here, but if you are using
> r.who 2.0, ensure that your "auth_tkt" plugin is both an identifier and and
> authenticator.  In r.who 1.0 this did not need to be true; in r.who 2.0,
> configurations need to change so that it is true.
> 
> On 4/10/10 7:11 AM, Phenex wrote:
> > I really need help with this, especially because i don't think the
> > problem is there because i did somthing wrong. Repoze worked fine in the
> > older version (except the unicode thing), but now no login is possible.
> > Database is ok and password is authentified correctly. And the same
> > problem in the sample application just confirme my suspicion tht it is a
> > general issue under this constellation of the newest module versions.
> > ___
> > Repoze-dev mailing list
> > Repoze-dev@lists.repoze.org
> > http://lists.repoze.org/listinfo/repoze-dev
> 
The first think i want is to get the sample-app running. As long as i don't 
have this, it dosn't make sense to search for an error in my code.
Is there no one of the developers who could try it with the newest 
repoze.who/waht versions?
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-10 Thread Chris McDonough
I'm not sure that I remember the entire context here, but if you are using 
r.who 2.0, ensure that your "auth_tkt" plugin is both an identifier and and 
authenticator.  In r.who 1.0 this did not need to be true; in r.who 2.0, 
configurations need to change so that it is true.

On 4/10/10 7:11 AM, Phenex wrote:
> I really need help with this, especially because i don't think the problem is
> there because i did somthing wrong. Repoze worked fine in the older version
> (except the unicode thing), but now no login is possible. Database is ok and
> password is authentified correctly. And the same problem in the sample
> application just confirme my suspicion tht it is a general issue under this
> constellation of the newest module versions.
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev
>


-- 
Chris McDonough
Agendaless Consulting, Fredericksburg VA
The repoze.bfg Web Application Framework Book: http://bfg.repoze.org/book
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-10 Thread Phenex
I really need help with this, especially because i don't think the problem is 
there because i did somthing wrong. Repoze worked fine in the older version 
(except the unicode thing), but now no login is possible. Database is ok and 
password is authentified correctly. And the same problem in the sample 
application just confirme my suspicion tht it is a general issue under this 
constellation of the newest module versions.
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-07 Thread Phenex
Am Mittwoch 07 April 2010 23:47:14 schrieb Gustavo Narea:
> Did you try #2?
> 
> You can then try logging in with one of the initial credentials:
> http://bitbucket.org/Gustavo/whatpylonsproject/src/tip/pylonssecuredapp/web
> setup.py
> 
Yes i did. Records are in database and the verification of the password returns 
True. The problem occours somewhere in the backend i'm quite shure that it has 
nothing to do with the sample application. Even the cookie is set in the 
browser, but the login page return the login failed error.
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-07 Thread Gustavo Narea
Hello,

On 07/04/10 12:11, Phenex wrote:
> The appliction is running now, but i have the same problem i've had mith my 
> own one - i simply connot login. The password validation itself works, i have 
> no idea were the problem is. No exception, simply the message "Wrong 
> credentials"
>   

Before running `paster serve', you need to do a couple of things:

 1.- Install the application and its dependencies, which is what you
already did (`python setup.py develop').
 2.- Create some minimum records in the database: paster setup-app
development.ini

Did you try #2?

You can then try logging in with one of the initial credentials:
http://bitbucket.org/Gustavo/whatpylonsproject/src/tip/pylonssecuredapp/websetup.py

-- 
Gustavo Narea .

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-07 Thread Phenex
Am Dienstag 06 April 2010 13:13:58 schrieb Andrey Popp:
> It seems you have this application not installed in terms of
> setuptools: run `python setup.py develop`. Paste get WSGI application
> via entry point which are became active only after installing package.
Thanks a lot, i never worked with setuptools before. I had to change a few 
things, before it worked, because some imported modules had been changed in 
the actual version.

* li/auth.py line 30 the loglevel passed expected to be an string but is an 
integer in the new version of the logger-module
* lib/helpers.py line 11 secure_form is now in webhelpers.pylonslib
I hope that was all, i'm not sure...

The appliction is running now, but i have the same problem i've had mith my 
own one - i simply connot login. The password validation itself works, i have 
no idea were the problem is. No exception, simply the message "Wrong 
credentials"
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Problem with repoze.what-pylons sample application

2010-04-06 Thread Andrey Popp
It seems you have this application not installed in terms of
setuptools: run `python setup.py develop`. Paste get WSGI application
via entry point which are became active only after installing package.

On Tue, Apr 6, 2010 at 3:11 PM, Phenex  wrote:
> Hi,
> i am unable to run the sample application of the repoze.what pylons
> integration. I get a bunch of error from paste i do not understant what went
> went wrong. After i failed to get the new version to run (the old one hase
> problems with unicode usernames but worked fine with the rest, so i installed
> the actual one via pip), i tried it with the sample. I run Ubuntu Karmic with
> python 2.6 and all moduls in newest version inside an virtuelenv.
> I give the traceback here:
>
> (pylons)phe...@phenex-laptop:~/Programmiererung/Web/pylone-
> tests/PylonsSecuredApp$ clear; paster setup-app development.ini
> Traceback (most recent call last):
>  File "/home/phenex/.virtualenv/pylons/bin/paster", line 8, in 
>    load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/command.py", line 84, in run
>    invoke(command, command_name, options, args[1:])
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/command.py", line 123, in invoke
>    exit_code = runner.run(args)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/appinstall.py", line 68, in run
>    return super(AbstractInstallCommand, self).run(new_args)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/command.py", line 218, in run
>    result = self.command()
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/script/appinstall.py", line 447, in command
>    conf = appconfig(config_spec, relative_to=os.getcwd())
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 215, in appconfig
>    global_conf=global_conf)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 248, in loadcontext
>    global_conf=global_conf)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 278, in _loadconfig
>    return loader.get_context(object_type, name, global_conf)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 409, in get_context
>    section)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 431, in _context_from_use
>    object_type, name=use, global_conf=global_conf)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 361, in get_context
>    global_conf=global_conf)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 248, in loadcontext
>    global_conf=global_conf)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 285, in _loadegg
>    return loader.get_context(object_type, name, global_conf)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 561, in get_context
>    object_type, name=name)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/paste/deploy/loadwsgi.py", line 581, in find_egg_entry_point
>    pkg_resources.require(self.spec)
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/pkg_resources.py", line 666, in require
>    needed = self.resolve(parse_requirements(requirements))
>  File "/home/phenex/.virtualenv/pylons/lib/python2.6/site-
> packages/pkg_resources.py", line 565, in resolve
>    raise DistributionNotFound(req)  # XXX put more info here
> pkg_resources.DistributionNotFound: PylonsSecuredApp
> ---
> Any ideas?
> (please excuse my bad english)
> ___
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev
>



-- 
Andrey Popp

phone: +7 911 740 24 91
e-mail: 8may...@gmail.com
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev