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
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 >
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
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 >