Pyha / flup-py3.3

Random assortment of WSGI servers (for py3.3)
9 stars 2 forks source link

AssertionError: write() argument must be string #2

Open jedie opened 10 years ago

jedie commented 10 years ago

I'm trying to run django with python 3.3 using your flup fork. But i the the error:

...
  File "/home/test/django-env/lib/python3.3/site-packages/flup/server/fcgi_base.py", line 1062, in write
    assert type(data) is str, 'write() argument must be string
AssertionError: write() argument must be string

Code line is here: https://github.com/Pyha/flup-py3.3/blob/master/flup/server/fcgi_base.py#L1062

In this case: data is type bytes

btw. is this project alive?

Eraldo commented 10 years ago

Got the same issue (error) as jedie.

jedie commented 10 years ago

btw. i use https://github.com/Kozea/flipflop ;)

Eraldo commented 10 years ago

Awesome! Danke Jens..

Werde das gleich mal versuchen.

Wie du auch erkannt hast mach es langfristig keinen Sinn und ich habe auch Uspace schon angeschrieben. Bin gespannt was kommt.. immerhin ist fastcgi ab django 1.7 deprecated und wird in 1.9 removed.

Vielleicht bekommen wir ja nginx. ;)

Ich werde dich updaten wenn ich etwas erfahre und möchte dich auch darum bitten.

Lieben Gruß, Eraldo

On Wed, Jul 9, 2014 at 6:06 PM, Jens Diemer notifications@github.com wrote:

btw. i use https://github.com/Kozea/flipflop ;)

— Reply to this email directly or view it on GitHub https://github.com/Pyha/flup-py3.3/issues/2#issuecomment-48495877.

yaph commented 10 years ago

Had the same issue with a Flask site, thanks for recommending flipflip @jedie that worked for me!

stroobandt commented 7 years ago

@jedie Thank you for suggesting flipflop as a working replacement.

pip3 install flipflop

did the job for me.