This error occurs because, the path to the file app_one
is not in the current path, and you have to add it to the path using sys.path.append
Try :
import sys
sys.path.append('./app_one')
from views import show
show()
More Related Contents:
- Reading file using relative path in python project
- Relative imports in Python 3
- Relative imports – ModuleNotFoundError: No module named x
- Imports in __init__.py and ‘import as’ statement
- ‘ModuleNotFoundError’ when trying to import module from imported package
- Reading a file using a relative path in a Python project
- bash: Python import – Command not found for pandas
- Searching for IP addresses in a file
- Swapping variable places inside if throws an error
- What is the best way to remove accents (normalize) in a Python unicode string?
- How to install python3 version of package via pip on Ubuntu?
- “for line in…” results in UnicodeDecodeError: ‘utf-8’ codec can’t decode byte
- How to add a new column to a CSV file?
- How to postpone/defer the evaluation of f-strings?
- Why does Python assignment not return a value?
- Regex matching between two strings?
- The smtplib.server.sendmail function in python raises UnicodeEncodeError: ‘ascii’ codec can’t encode character
- “zsh: illegal hardware instruction python” when installing Tensorflow on macbook pro M1 [duplicate]
- When import docx in python3.3 I have error ImportError: No module named ‘exceptions’
- How to remove or hide x-axis labels from a seaborn / matplotlib plot
- Clarification on the Decimal type in Python
- How to install pygame? [duplicate]
- “TypeError: ‘type’ object is not subscriptable” in a function signature
- Is having a concurrent.futures.ThreadPoolExecutor call dangerous in a FastAPI endpoint?
- append dictionary to data frame
- How to use a variable as function name in Python
- pyvenv-3.4 returned non-zero exit status 1
- How does str.startswith really work?
- What is absolute import in python?
- What is the effect of using `python -m pip` instead of just `pip`? [duplicate]