librelist archives

« back to archive

Flask-Uploads doesn't import

Flask-Uploads doesn't import

From:
Samrat Man Singh
Date:
2011-08-04 @ 04:43
I cloned the flask-uploads repository from BitBucket and then installed it
using *python setup.py install* but when I do

>>>from flaskext.uploads import *
I get:

>>>ImportError: No module named uploads

Why am I getting this? I tried reinstalling too, but didn't work.






Samrat

Re: Flask-Uploads doesn't import

From:
Samrat Man Singh
Date:
2011-08-04 @ 07:06
I just realized that if I change my directory to /flaskext and then
'import uploads' from there it works; why is that? Does that mean I
have to place the uploads.py file in the app directory?

On 8/4/11, Samrat Man Singh <samratmansingh@gmail.com> wrote:
> I cloned the flask-uploads repository from BitBucket and then installed it
> using *python setup.py install* but when I do
>
>>>>from flaskext.uploads import *
> I get:
>
>>>>ImportError: No module named uploads
>
> Why am I getting this? I tried reinstalling too, but didn't work.
>
>
>
>
>
>
> Samrat
>

Re: [flask] Flask-Uploads doesn't import

From:
Ron DuPlain
Date:
2011-08-04 @ 14:06
Hi,

On Thu, Aug 4, 2011 at 12:43 AM, Samrat Man Singh
<samratmansingh@gmail.com> wrote:
> I cloned the flask-uploads repository from BitBucket and then installed it
> using python setup.py install but when I do
>>>>from flaskext.uploads import *
> I get:
>>>>ImportError: No module named uploads
> Why am I getting this? I tried reinstalling too, but didn't work.

I've been seeing a lot of namespace package issues with how flaskext
packages are installed.  Have you sorted out your issue, Samrat?

-Ron

Re: [flask] Flask-Uploads doesn't import

From:
Samrat Man Singh
Date:
2011-08-04 @ 14:10
Yeah, it turns out I'd forgotten to import flask first :)

On 8/4/11, Ron DuPlain <ron.duplain@gmail.com> wrote:
> Hi,
>
> On Thu, Aug 4, 2011 at 12:43 AM, Samrat Man Singh
> <samratmansingh@gmail.com> wrote:
>> I cloned the flask-uploads repository from BitBucket and then installed it
>> using python setup.py install but when I do
>>>>>from flaskext.uploads import *
>> I get:
>>>>>ImportError: No module named uploads
>> Why am I getting this? I tried reinstalling too, but didn't work.
>
> I've been seeing a lot of namespace package issues with how flaskext
> packages are installed.  Have you sorted out your issue, Samrat?
>
> -Ron
>