Click here to Skip to main content
15,895,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Unable to open "& lt; frozen importlib. _bootstrap_external & gt;": The file was not found (file://e:/code/flask_web/< frozen importlib. _bootstrap_external & gt;).

What I have tried:

from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
from flasker import config

try:
    test = config.DevConfig
    for t in test:
        print(t)
except Exception as e:
    print(e)


def get_db():
    engine = create_engine(config. SQLALCHEMY_DATABASE_URI)
    session = sessionmaker(bind=engine)
    return session
Posted
Updated 9-Sep-18 21:38pm

1 solution

Quote:
Vscode debugging Python error,

debugging what ? The problem is not in this code.
Which word you don't understand in
Unable to open "< frozen importlib. _bootstrap_external >": The file was not found (file://e:/code/flask_web/< frozen importlib. _bootstrap_external >)

We can't help you on this. Either you change the file request, either you change the position of file on you hdd.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900