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 module
  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.
 
Yeah, this solved the problem. Thank jou so much

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

2010-04-08 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 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


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

2010-04-06 Thread Phenex
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 module
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