File 
"/usr/local/virtenv/hwa-0.2/lib/python3.2/site-packages/PasteDeploy-1.5.0-py3.2.egg/paste/deploy/loadwsgi.py",
 line 277, in loadcontext
    if '#' in uri:
TypeError: Type str doesn't support the buffer API


Pyramid/waitress works fine with same Pyramid project.

Taking a guess that ``uri`` is string with waitress, but bytes with uWSGI.. ?

Can this be fixed easily?

Best, S



Full trace:

[simonyarde@howarth-dev /usr/local/virtenv/hwa-0.2/hwa]$ ../bin/uwsgi --ini 
development.ini 
[uWSGI] getting INI configuration from development.ini
*** Starting uWSGI 1.2.4 (64bit) on [Mon Jul 16 08:31:41 2012] ***
compiled with version: 4.2.1 20070831 patched [FreeBSD] on 13 July 2012 11:14:07
detected number of CPU cores: 1
current working directory: /usr/local/virtenv/hwa-0.2/hwa
detected binary path: /usr/local/virtenv/hwa-0.2/bin/uwsgi
your memory page size is 4096 bytes
detected max file descriptor number: 11095
lock engine: POSIX semaphores
uwsgi socket 0 bound to TCP address :3031 fd 3
Python version: 3.2.3 (default, Jul 11 2012, 10:17:04)  [GCC 4.2.1 20070831 
patched [FreeBSD]]
Set PythonHome to /usr/local/virtenv/hwa-0.2
*** Python threads support is disabled. You can enable it with --enable-threads 
***
Python main interpreter initialized at 0x802925180
your server socket listen backlog is limited to 100 connections
*** Operational MODE: single process ***
Loading paste environment: config:/usr/local/virtenv/hwa-0.2/hwa/development.ini
Traceback (most recent call last):
  File 
"/usr/local/virtenv/hwa-0.2/lib/python3.2/site-packages/PasteDeploy-1.5.0-py3.2.egg/paste/deploy/loadwsgi.py",
 line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File 
"/usr/local/virtenv/hwa-0.2/lib/python3.2/site-packages/PasteDeploy-1.5.0-py3.2.egg/paste/deploy/loadwsgi.py",
 line 271, in loadobj
    global_conf=global_conf)
  File 
"/usr/local/virtenv/hwa-0.2/lib/python3.2/site-packages/PasteDeploy-1.5.0-py3.2.egg/paste/deploy/loadwsgi.py",
 line 277, in loadcontext
    if '#' in uri:
TypeError: Type str doesn't support the buffer API
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to