ImportError: No module named 'flask.ext' [duplicate]2019 Community Moderator ElectionImporting flask.ext raises ModuleNotFoundErrorCalling a function of a module by using its name (a string)How to import a module given the full path?Import a module from a relative pathHow to import a module given its name?Python error “ImportError: No module named”How do I unload (reload) a Python module?How to install packages using pip according to the requirements.txt file from a local directory?ImportError: Cannot import name XImportError: No module named requestsImportError: No module named '_sqlite3'

Professor forcing me to attend a conference, I can't afford even with 50% funding

Is it a Cyclops number? "Nobody" knows!

How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?

I am the light that shines in the dark

An Undercover Army

What does it take to become a wilderness skills guide as a business?

Short story about cities being connected by a conveyor belt

How can I have x-axis ticks that show ticks scaled in powers of ten?

Is it appropriate to ask a former professor to order a library book for me through ILL?

If nine coins are tossed, what is the probability that the number of heads is even?

What does "rhumatis" mean?

How to recover against Snake as a heavyweight character?

How do property taxes on school district bonds work?

Does the US political system, in principle, allow for a no-party system?

PTIJ: Sport in the Torah

Having the player face themselves after the mid-game

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

What does *dead* mean in *What do you mean, dead?*?

Vector-transposing function

Can I frame a new window without adding jack studs?

Tabular environment - text vertically positions itself by bottom of tikz picture in adjacent cell

Why do we call complex numbers “numbers” but we don’t consider 2-vectors numbers?

Trigger on Custom Object Share

What is the best index strategy or query SELECT when performing a search/lookup BETWEEN IP address (IPv4 and IPv6) ranges?



ImportError: No module named 'flask.ext' [duplicate]



2019 Community Moderator ElectionImporting flask.ext raises ModuleNotFoundErrorCalling a function of a module by using its name (a string)How to import a module given the full path?Import a module from a relative pathHow to import a module given its name?Python error “ImportError: No module named”How do I unload (reload) a Python module?How to install packages using pip according to the requirements.txt file from a local directory?ImportError: Cannot import name XImportError: No module named requestsImportError: No module named '_sqlite3'










-1
















This question already has an answer here:



  • Importing flask.ext raises ModuleNotFoundError

    1 answer



When I import a Flask extension like this, it works fine:



from flask_module import Module


So the extension is installed correctly.



But whenever I try to import a Flask extension like this:



from flask.ext.module import Module


I get the following error: ImportError: No module named 'flask.ext'



What is going wrong here?



I'm not sure if this information is useful but anyway:



  1. I haven't found extensions that do work in the last way

  2. I use Windows 10, Python3.5 and Flask 1.0.2

  3. I'm in a virtual envirionment









share|improve this question













marked as duplicate by davidism flask
Users with the  flask badge can single-handedly close flask questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • I don't think this is a duplicate because the question marked as duplicate was about a different error being raised. Of course I did look for my error but I couldn't find it.

    – Lewistrick
    12 hours ago















-1
















This question already has an answer here:



  • Importing flask.ext raises ModuleNotFoundError

    1 answer



When I import a Flask extension like this, it works fine:



from flask_module import Module


So the extension is installed correctly.



But whenever I try to import a Flask extension like this:



from flask.ext.module import Module


I get the following error: ImportError: No module named 'flask.ext'



What is going wrong here?



I'm not sure if this information is useful but anyway:



  1. I haven't found extensions that do work in the last way

  2. I use Windows 10, Python3.5 and Flask 1.0.2

  3. I'm in a virtual envirionment









share|improve this question













marked as duplicate by davidism flask
Users with the  flask badge can single-handedly close flask questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


















  • I don't think this is a duplicate because the question marked as duplicate was about a different error being raised. Of course I did look for my error but I couldn't find it.

    – Lewistrick
    12 hours ago













-1












-1








-1









This question already has an answer here:



  • Importing flask.ext raises ModuleNotFoundError

    1 answer



When I import a Flask extension like this, it works fine:



from flask_module import Module


So the extension is installed correctly.



But whenever I try to import a Flask extension like this:



from flask.ext.module import Module


I get the following error: ImportError: No module named 'flask.ext'



What is going wrong here?



I'm not sure if this information is useful but anyway:



  1. I haven't found extensions that do work in the last way

  2. I use Windows 10, Python3.5 and Flask 1.0.2

  3. I'm in a virtual envirionment









share|improve this question















This question already has an answer here:



  • Importing flask.ext raises ModuleNotFoundError

    1 answer



When I import a Flask extension like this, it works fine:



from flask_module import Module


So the extension is installed correctly.



But whenever I try to import a Flask extension like this:



from flask.ext.module import Module


I get the following error: ImportError: No module named 'flask.ext'



What is going wrong here?



I'm not sure if this information is useful but anyway:



  1. I haven't found extensions that do work in the last way

  2. I use Windows 10, Python3.5 and Flask 1.0.2

  3. I'm in a virtual envirionment




This question already has an answer here:



  • Importing flask.ext raises ModuleNotFoundError

    1 answer







python flask python-import importerror






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









LewistrickLewistrick

61321325




61321325




marked as duplicate by davidism flask
Users with the  flask badge can single-handedly close flask questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by davidism flask
Users with the  flask badge can single-handedly close flask questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
2 days ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • I don't think this is a duplicate because the question marked as duplicate was about a different error being raised. Of course I did look for my error but I couldn't find it.

    – Lewistrick
    12 hours ago

















  • I don't think this is a duplicate because the question marked as duplicate was about a different error being raised. Of course I did look for my error but I couldn't find it.

    – Lewistrick
    12 hours ago
















I don't think this is a duplicate because the question marked as duplicate was about a different error being raised. Of course I did look for my error but I couldn't find it.

– Lewistrick
12 hours ago





I don't think this is a duplicate because the question marked as duplicate was about a different error being raised. Of course I did look for my error but I couldn't find it.

– Lewistrick
12 hours ago












1 Answer
1






active

oldest

votes


















1














The "flask.ext" style of naming/importing modules has been deprecated for a number of years now. You should use the first style you described instead.



As for the suggestion that you install your flask packages globally, this somewhat defeats the purpose of using a venv in the first place. It makes it impossible to use pip freeze --local > requirements.txt to only save relevant packages, opening you up to package version conflicts.






share|improve this answer





























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    The "flask.ext" style of naming/importing modules has been deprecated for a number of years now. You should use the first style you described instead.



    As for the suggestion that you install your flask packages globally, this somewhat defeats the purpose of using a venv in the first place. It makes it impossible to use pip freeze --local > requirements.txt to only save relevant packages, opening you up to package version conflicts.






    share|improve this answer



























      1














      The "flask.ext" style of naming/importing modules has been deprecated for a number of years now. You should use the first style you described instead.



      As for the suggestion that you install your flask packages globally, this somewhat defeats the purpose of using a venv in the first place. It makes it impossible to use pip freeze --local > requirements.txt to only save relevant packages, opening you up to package version conflicts.






      share|improve this answer

























        1












        1








        1







        The "flask.ext" style of naming/importing modules has been deprecated for a number of years now. You should use the first style you described instead.



        As for the suggestion that you install your flask packages globally, this somewhat defeats the purpose of using a venv in the first place. It makes it impossible to use pip freeze --local > requirements.txt to only save relevant packages, opening you up to package version conflicts.






        share|improve this answer













        The "flask.ext" style of naming/importing modules has been deprecated for a number of years now. You should use the first style you described instead.



        As for the suggestion that you install your flask packages globally, this somewhat defeats the purpose of using a venv in the first place. It makes it impossible to use pip freeze --local > requirements.txt to only save relevant packages, opening you up to package version conflicts.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 days ago









        Nick K9Nick K9

        722619




        722619















            Popular posts from this blog

            AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

            Алба-Юлія

            Захаров Федір Захарович