cannot import name ‘create app’ from website// python ImportError
from website import create_app app = create_app() if __name__ == ‘__main__’: app.run(debug=True) Even though I have installed Module website in vs (pip install website) I get an ImportError that I cannot import ‘create app’ from website from flask import Flask def create_app(): app = Flask(__name__) app.config[‘SECRET_KEY’] = ‘hfahuhsfuiahdfuhai juueioudiu’ return app At first I had […]
Resolving Circular Import Error in Python for Nested Submodules in a Forked Library
I am working on a Python project structured with a src directory that includes various scripts and a forked library submodule. The project’s directory structure is as follows:
Why am I getting this import error and how can I resolve it?
import speech_recognition as sr def takeCommand(): r = sr.Recognizer() with sr.Microphone() as source: print(“Listening…”) r.pause_threshold = 0.6 r.energy_threshold = 300 audio = r.listen(source, phrase_time_limit=5) try: print(“Understanding…”) query = r.recognize_google(audio, language=’en-in’) print(f’You said: {query}n’) except Exception as e: print(“Say that again”) return “None” return query if __name__ == “__main__”: while True: query = takeCommand() if “wake […]
ImportError: cannot import name ‘DataError’ from ‘pandas.core.base’
Getting the following error while running pandas profiling. Not sure why this has popped up and how to resolve. Kindly suggest
import error on a discord bot from github
btw i have like no code experence this is a project for my club discord server abt meeting time and dates ect
python cannot import names from my own files
I have the following code
ImportError: cannot import name ‘ParamSpec’ from ‘typing’
I am getting the error below when I try to import ParamSpec from typing-extensions: