librelist archives

« back to archive

UnicodeDecodeError in Flask app calling pysphere

UnicodeDecodeError in Flask app calling pysphere

From:
Tames McTigue
Date:
2013-01-04 @ 02:33
Hello everyone,
I am new to Flask and am having an issue. I posted this on StackOverflow 
but nobody seems to have any ideas. You can check out the link for all the
details:

http://stackoverflow.com/questions/13997488/unicodedecodeerror-in-flask-app-calling-pysphere
The basics are that I get a UnicodeDecodeError when trying to transfer a 
binary file using pysphere:
http://code.google.com/p/pysphere/
It works fine outside of Flask, and also works fine when sending a text 
file (as a test).
I was hoping someone could give me an idea of why it only fails from a 
Flask app and maybe a workaround. It seems like it is trying to handle the
binary file for some reason.
Thank you!
Tames McTiguetamesmctigue@hotmail.com 		 	   		  

Feedback solicited: PythonAnywhere

From:
Harry Percival
Date:
2013-01-04 @ 11:10
Hi everyone,

First off, apologies if anyone feels this mail is a little spammy, do feel
free to ignore, or reply to me directly with torrents of abuse. I can take
it.  I promise to reply with grovelling, obsequious apologies.

We’ve been building an online development environment and hosting platform
called PythonAnywhere.  We offer free hosting for basic web apps, and 
we’ve built in a “1-click config” wizard for Flask.

https://www.pythonanywhere.com

Your feedback is kindly solicited: what do you think of the site in 
general? More specifically, what do you think about the Flask wizard, and 
the way we’re nudging people towards using Flask?  Would you change 
anything?

thanks in advance,

Harry + the PythonAnywhere team.


-- 
Harry Percival
Developer
harry@pythonanywhere.com

PythonAnywhere - a fully browser-based Python development and hosting environment
<http://www.pythonanywhere.com/>

PythonAnywhere LLP
17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79
Registered in England and Wales as company number OC378414.
Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
    

Re: [flask] Feedback solicited: PythonAnywhere

From:
James Anderson
Date:
2013-01-04 @ 16:46
Harry,

I'm a newer python developer, but I think the site is of great benefit (to
me anyway). I host with you there and I'm a paid member (the top tier plan)
and honestly for me, it has been great. The ability to make quick changes
to my codebase from anywhere has been a huge help to me. I use it strictly
for flask applications and the recent addition of multi-domain support is
great. I have three VPN's with linode and prefer to do my python related
hosting with PA because of the support and batteries included make my life
a little easier. The one frustration I do have is the lack of support for
nosql databases like mongo, which I would like to play with. Above all,
your customer support and transparency is excellent and is what I most
appreciate.




On Fri, Jan 4, 2013 at 3:10 AM, Harry Percival <harry@pythonanywhere.com>wrote:

>   Hi everyone,
>
> First off, apologies if anyone feels this mail is a little spammy, do feel
> free to ignore, or reply to me directly with torrents of abuse. I can take
> it.  I promise to reply with grovelling, obsequious apologies.
>
> We’ve been building an online development environment and hosting platform
> called PythonAnywhere.  We offer free hosting for basic web apps, and we’ve
> built in a “1-click config” wizard for Flask.
>
> https://www.pythonanywhere.com
>
> Your feedback is kindly solicited: what do you think of the site in
> general? More specifically, what do you think about the Flask wizard, and
> the way we’re nudging people towards using Flask?  Would you change
> anything?
>
> thanks in advance,
>
> Harry + the PythonAnywhere team.
>
>
> --
> Harry Percival
> Developer
> harry@pythonanywhere.com
>
> PythonAnywhere - a fully browser-based Python development and hosting
> environment
> <http://www.pythonanywhere.com/>
>
> PythonAnywhere LLP
> 17a Clerkenwell Road, London EC1M 5RD, UK
> VAT No.: GB 893 5643 79
> Registered in England and Wales as company number OC378414.
> Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
>
>

Re: [flask] Feedback solicited: PythonAnywhere

From:
Markus Unterwaditzer
Date:
2013-01-04 @ 11:38
I used it once with the free plan and can say that the abstraction 
layer
above setting up your own wsgi server and daemons rather confused me
instead of helped me to deploy my stuff more quickly. That might be 
just
me, since I have similar problems with Heroku.

I am currently using [Uberspace](https://uberspace.de), which i am 
extremely
happy with. Uberspace just gives you a system UNIX user and access to 
one
Apache VirtualHost. You can launch your own WSGI server through SSH on 
any port
that is unused and configure Apache to proxy to that port. Using the 
shell like
that is the only way there, and in my opinion it is the easiest too.

I don't think i am your target group at all, so i can't really speak on 
behalf
of it.

-- Markus

PS, can you delete your account nowadays?

Harry Percival <harry@pythonanywhere.com> wrote:

> Hi everyone,
>
> First off, apologies if anyone feels this mail is a little spammy, do
> feel free to ignore, or reply to me directly with torrents of abuse. 
> I
> can take it. I promise to reply with grovelling, obsequious 
> apologies.
>
> We've been building an online development environment and hosting
> platform called PythonAnywhere. We offer free hosting for basic web 
> apps,
> and we've built in a "1-click config" wizard for Flask.
>
> https://www.pythonanywhere.com [1]
>
> Your feedback is kindly solicited: what do you think of the site in
> general? More specifically, what do you think about the Flask wizard, 
> and
> the way we're nudging people towards using Flask? Would you change
> anything?
>
> thanks in advance,
>
> Harry + the PythonAnywhere team.
>
> --
> Harry Percival
> Developer
> harry@pythonanywhere.com
>
> PythonAnywhere - a fully browser-based Python development and hosting
> environment
> <http://www.pythonanywhere.com/>
>
> PythonAnywhere LLP
> 17a Clerkenwell Road, London EC1M 5RD, UK
> VAT No.: GB 893 5643 79
> Registered in England and Wales as company number OC378414.
> Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK



  Links:
  ------
  [1] https://www.pythonanywhere.com

Re: [flask] Feedback solicited: PythonAnywhere

From:
Harry Percival
Date:
2013-01-11 @ 16:20
Hi Markus,

I only just found this email in my spam folder.  Not sure why it ended up in 
there.

Re: ease of WSGI config, we think we've massively improved this since the 
early days.  Nowadays, it's a matter of just choosing a location for your 
files, and then it's set up with one click -- no need to edit wsgi config if 
you don't want to, and it starts serving immediately.  If you have any 
suggestions, we're all ears!

Re: deleting your account, there's still no automated way of doing it, but 
we're happy to manually delete accounts for anyone that wants us to.  Drop 
us a note to support@pythonanywhere.com if you like.

thanks to everyone that's been taking a look around over the last week or 
so!  Keep your feedback coming, it's much appreciated.

rgds,
Harry



-- 
Harry Percival
Developer
harry@pythonanywhere.com

PythonAnywhere - a fully browser-based Python development and hosting 
environment
<http://www.pythonanywhere.com/>

PythonAnywhere LLP
17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79
Registered in England and Wales as company number OC378414.
Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
-----Original Message----- 
From: Markus Unterwaditzer
Sent: Friday, January 04, 2013 11:38 AM
To: flask@librelist.com
Subject: Re: [flask] Feedback solicited: PythonAnywhere

I used it once with the free plan and can say that the abstraction
layer
above setting up your own wsgi server and daemons rather confused me
instead of helped me to deploy my stuff more quickly. That might be
just
me, since I have similar problems with Heroku.

I am currently using [Uberspace](https://uberspace.de), which i am
extremely
happy with. Uberspace just gives you a system UNIX user and access to
one
Apache VirtualHost. You can launch your own WSGI server through SSH on
any port
that is unused and configure Apache to proxy to that port. Using the
shell like
that is the only way there, and in my opinion it is the easiest too.

I don't think i am your target group at all, so i can't really speak on
behalf
of it.

-- Markus

PS, can you delete your account nowadays?

Harry Percival <harry@pythonanywhere.com> wrote:

> Hi everyone,
>
> First off, apologies if anyone feels this mail is a little spammy, do
> feel free to ignore, or reply to me directly with torrents of abuse.
> I
> can take it. I promise to reply with grovelling, obsequious
> apologies.
>
> We've been building an online development environment and hosting
> platform called PythonAnywhere. We offer free hosting for basic web
> apps,
> and we've built in a "1-click config" wizard for Flask.
>
> https://www.pythonanywhere.com [1]
>
> Your feedback is kindly solicited: what do you think of the site in
> general? More specifically, what do you think about the Flask wizard,
> and
> the way we're nudging people towards using Flask? Would you change
> anything?
>
> thanks in advance,
>
> Harry + the PythonAnywhere team.
>
> --
> Harry Percival
> Developer
> harry@pythonanywhere.com
>
> PythonAnywhere - a fully browser-based Python development and hosting
> environment
> <http://www.pythonanywhere.com/>
>
> PythonAnywhere LLP
> 17a Clerkenwell Road, London EC1M 5RD, UK
> VAT No.: GB 893 5643 79
> Registered in England and Wales as company number OC378414.
> Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK



  Links:
  ------
  [1] https://www.pythonanywhere.com

Re: [flask] Feedback solicited: PythonAnywhere

From:
Markus Unterwaditzer
Date:
2013-01-12 @ 21:10
I am now completely new to programming. I found Python Anywhere through 
a Google search for "simple python website".

Let's go signing up. Oh, i see you named the free plan as "N00b plan". 
Awesome, that's just what i need, since i am... A N00B, NOT A L33T. 
(seriously though, i think at least the leetspeak spelling is a bit 
childish)

I see that the password field in the sign up form gets immediately red 
if i enter anything, without any message on what might be wrong. The red 
goes away as soon as i had entered the password a second time. (I think 
the form validation should be triggered when the user unfocuses the 
second password field)

Fast forward, i set up the default Flask app from the "Web" tab. I 
skipped all these creation wizards because i can't RTFM. I ignore the 
wizard at the top and go edit the single-file app, using the link from 
the "Created app successfully" messsage. I try to use "Save and Run", 
because i thought that would "run the app" (so reload the server). I 
don't notice the browser's message that a popup has been blocked (since 
i am a noob). Oh yeah, the wizard already told me that i need to go to 
the dashboard. So here i go.

Oh what's up now, i can't see how i can get back to the editor. I go to 
the "Web" tab, selecting my app and can't find an "edit" link! I fiddle 
around a bit in the file structure and finally find the file that seems 
to be my Flask app. I edit it again. And go back to the dashboard, 
reloading my app.

...

I see how your setup wizards could be useful to people that just want 
to set up a website quickly, learning Python afterwards if ever. 
However, i don't think it is useful to people who actually want to know 
what is happening. The user interface seems to abstract too many things 
away that are essential when having a (Flask-based) website.

I would suggest not to have a single filesystem view, but rather one 
per app (and another one for your dotfiles). Ideally, everything 
(consoles, databases) should be per-app and there should also be a way 
to really shut down your app. Not just to reload the server, but to 
manually shut down and start up would be neat, i think. You could add 
the possibility of a custom 503/500 page in your paid accounts.

Also, don't rely too heavily on wizards. Instead, strive to create a 
user interface that is just so primitive that most kinds of introductory 
text is obsolete.

So... here are some things that i noticed when giving Python Anywhere a 
second try. Hope the feedback helps.

-- Markus

On 2013-01-11 17:20, Harry Percival wrote:
> Hi Markus,
>
> I only just found this email in my spam folder.  Not sure why it 
> ended up in
> there.
>
> Re: ease of WSGI config, we think we've massively improved this since 
> the
> early days.  Nowadays, it's a matter of just choosing a location for 
> your
> files, and then it's set up with one click -- no need to edit wsgi 
> config if
> you don't want to, and it starts serving immediately.  If you have 
> any
> suggestions, we're all ears!
>
> Re: deleting your account, there's still no automated way of doing 
> it, but
> we're happy to manually delete accounts for anyone that wants us to.  
> Drop
> us a note to support@pythonanywhere.com if you like.
>
> thanks to everyone that's been taking a look around over the last 
> week or
> so!  Keep your feedback coming, it's much appreciated.
>
> rgds,
> Harry
>
>
>
> --
> Harry Percival
> Developer
> harry@pythonanywhere.com
>
> PythonAnywhere - a fully browser-based Python development and hosting
> environment
> <http://www.pythonanywhere.com/>
>
> PythonAnywhere LLP
> 17a Clerkenwell Road, London EC1M 5RD, UK
> VAT No.: GB 893 5643 79
> Registered in England and Wales as company number OC378414.
> Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
> -----Original Message-----
> From: Markus Unterwaditzer
> Sent: Friday, January 04, 2013 11:38 AM
> To: flask@librelist.com
> Subject: Re: [flask] Feedback solicited: PythonAnywhere
>
> I used it once with the free plan and can say that the abstraction
> layer
> above setting up your own wsgi server and daemons rather confused me
> instead of helped me to deploy my stuff more quickly. That might be
> just
> me, since I have similar problems with Heroku.
>
> I am currently using [Uberspace](https://uberspace.de), which i am
> extremely
> happy with. Uberspace just gives you a system UNIX user and access to
> one
> Apache VirtualHost. You can launch your own WSGI server through SSH 
> on
> any port
> that is unused and configure Apache to proxy to that port. Using the
> shell like
> that is the only way there, and in my opinion it is the easiest too.
>
> I don't think i am your target group at all, so i can't really speak 
> on
> behalf
> of it.
>
> -- Markus
>
> PS, can you delete your account nowadays?
>
> Harry Percival <harry@pythonanywhere.com> wrote:
>
>> Hi everyone,
>>
>> First off, apologies if anyone feels this mail is a little spammy, 
>> do
>> feel free to ignore, or reply to me directly with torrents of abuse.
>> I
>> can take it. I promise to reply with grovelling, obsequious
>> apologies.
>>
>> We've been building an online development environment and hosting
>> platform called PythonAnywhere. We offer free hosting for basic web
>> apps,
>> and we've built in a "1-click config" wizard for Flask.
>>
>> https://www.pythonanywhere.com [1]
>>
>> Your feedback is kindly solicited: what do you think of the site in
>> general? More specifically, what do you think about the Flask 
>> wizard,
>> and
>> the way we're nudging people towards using Flask? Would you change
>> anything?
>>
>> thanks in advance,
>>
>> Harry + the PythonAnywhere team.
>>
>> --
>> Harry Percival
>> Developer
>> harry@pythonanywhere.com
>>
>> PythonAnywhere - a fully browser-based Python development and 
>> hosting
>> environment
>> <http://www.pythonanywhere.com/>
>>
>> PythonAnywhere LLP
>> 17a Clerkenwell Road, London EC1M 5RD, UK
>> VAT No.: GB 893 5643 79
>> Registered in England and Wales as company number OC378414.
>> Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
>
>
>
>   Links:
>   ------
>   [1] https://www.pythonanywhere.com

Re: [flask] Feedback solicited: PythonAnywhere

From:
Harry Percival
Date:
2013-01-14 @ 12:37
Wow, great feedback!  The stream-of-consciousness aspect really helps 
understand how it feels from your point of view.  Much appreciated.  We'll 
work on it.



-- 
Harry Percival
Developer
harry@pythonanywhere.com

PythonAnywhere - a fully browser-based Python development and hosting 
environment
<http://www.pythonanywhere.com/>

PythonAnywhere LLP
17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79
Registered in England and Wales as company number OC378414.
Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
-----Original Message----- 
From: Markus Unterwaditzer
Sent: Saturday, January 12, 2013 9:10 PM
To: flask@librelist.com
Subject: Re: [flask] Feedback solicited: PythonAnywhere

I am now completely new to programming. I found Python Anywhere through
a Google search for "simple python website".

Let's go signing up. Oh, i see you named the free plan as "N00b plan".
Awesome, that's just what i need, since i am... A N00B, NOT A L33T.
(seriously though, i think at least the leetspeak spelling is a bit
childish)

I see that the password field in the sign up form gets immediately red
if i enter anything, without any message on what might be wrong. The red
goes away as soon as i had entered the password a second time. (I think
the form validation should be triggered when the user unfocuses the
second password field)

Fast forward, i set up the default Flask app from the "Web" tab. I
skipped all these creation wizards because i can't RTFM. I ignore the
wizard at the top and go edit the single-file app, using the link from
the "Created app successfully" messsage. I try to use "Save and Run",
because i thought that would "run the app" (so reload the server). I
don't notice the browser's message that a popup has been blocked (since
i am a noob). Oh yeah, the wizard already told me that i need to go to
the dashboard. So here i go.

Oh what's up now, i can't see how i can get back to the editor. I go to
the "Web" tab, selecting my app and can't find an "edit" link! I fiddle
around a bit in the file structure and finally find the file that seems
to be my Flask app. I edit it again. And go back to the dashboard,
reloading my app.

...

I see how your setup wizards could be useful to people that just want
to set up a website quickly, learning Python afterwards if ever.
However, i don't think it is useful to people who actually want to know
what is happening. The user interface seems to abstract too many things
away that are essential when having a (Flask-based) website.

I would suggest not to have a single filesystem view, but rather one
per app (and another one for your dotfiles). Ideally, everything
(consoles, databases) should be per-app and there should also be a way
to really shut down your app. Not just to reload the server, but to
manually shut down and start up would be neat, i think. You could add
the possibility of a custom 503/500 page in your paid accounts.

Also, don't rely too heavily on wizards. Instead, strive to create a
user interface that is just so primitive that most kinds of introductory
text is obsolete.

So... here are some things that i noticed when giving Python Anywhere a
second try. Hope the feedback helps.

-- Markus

On 2013-01-11 17:20, Harry Percival wrote:
> Hi Markus,
>
> I only just found this email in my spam folder.  Not sure why it
> ended up in
> there.
>
> Re: ease of WSGI config, we think we've massively improved this since
> the
> early days.  Nowadays, it's a matter of just choosing a location for
> your
> files, and then it's set up with one click -- no need to edit wsgi
> config if
> you don't want to, and it starts serving immediately.  If you have
> any
> suggestions, we're all ears!
>
> Re: deleting your account, there's still no automated way of doing
> it, but
> we're happy to manually delete accounts for anyone that wants us to.
> Drop
> us a note to support@pythonanywhere.com if you like.
>
> thanks to everyone that's been taking a look around over the last
> week or
> so!  Keep your feedback coming, it's much appreciated.
>
> rgds,
> Harry
>
>
>
> --
> Harry Percival
> Developer
> harry@pythonanywhere.com
>
> PythonAnywhere - a fully browser-based Python development and hosting
> environment
> <http://www.pythonanywhere.com/>
>
> PythonAnywhere LLP
> 17a Clerkenwell Road, London EC1M 5RD, UK
> VAT No.: GB 893 5643 79
> Registered in England and Wales as company number OC378414.
> Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
> -----Original Message-----
> From: Markus Unterwaditzer
> Sent: Friday, January 04, 2013 11:38 AM
> To: flask@librelist.com
> Subject: Re: [flask] Feedback solicited: PythonAnywhere
>
> I used it once with the free plan and can say that the abstraction
> layer
> above setting up your own wsgi server and daemons rather confused me
> instead of helped me to deploy my stuff more quickly. That might be
> just
> me, since I have similar problems with Heroku.
>
> I am currently using [Uberspace](https://uberspace.de), which i am
> extremely
> happy with. Uberspace just gives you a system UNIX user and access to
> one
> Apache VirtualHost. You can launch your own WSGI server through SSH
> on
> any port
> that is unused and configure Apache to proxy to that port. Using the
> shell like
> that is the only way there, and in my opinion it is the easiest too.
>
> I don't think i am your target group at all, so i can't really speak
> on
> behalf
> of it.
>
> -- Markus
>
> PS, can you delete your account nowadays?
>
> Harry Percival <harry@pythonanywhere.com> wrote:
>
>> Hi everyone,
>>
>> First off, apologies if anyone feels this mail is a little spammy,
>> do
>> feel free to ignore, or reply to me directly with torrents of abuse.
>> I
>> can take it. I promise to reply with grovelling, obsequious
>> apologies.
>>
>> We've been building an online development environment and hosting
>> platform called PythonAnywhere. We offer free hosting for basic web
>> apps,
>> and we've built in a "1-click config" wizard for Flask.
>>
>> https://www.pythonanywhere.com [1]
>>
>> Your feedback is kindly solicited: what do you think of the site in
>> general? More specifically, what do you think about the Flask
>> wizard,
>> and
>> the way we're nudging people towards using Flask? Would you change
>> anything?
>>
>> thanks in advance,
>>
>> Harry + the PythonAnywhere team.
>>
>> --
>> Harry Percival
>> Developer
>> harry@pythonanywhere.com
>>
>> PythonAnywhere - a fully browser-based Python development and
>> hosting
>> environment
>> <http://www.pythonanywhere.com/>
>>
>> PythonAnywhere LLP
>> 17a Clerkenwell Road, London EC1M 5RD, UK
>> VAT No.: GB 893 5643 79
>> Registered in England and Wales as company number OC378414.
>> Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
>
>
>
>   Links:
>   ------
>   [1] https://www.pythonanywhere.com