- ModuleNotFoundError: нет модуля с именем «arichuvadi.valam»; 'arichuvadi' не является пакетом
Установил локальный пакет в редактируемой форме с помощью следующей команды
#+begin_src Shell#+end_srcКод: Выделить всё
pip install -e .
Код: Выделить всё
#+begin_src shell
$ python mlm/arichuvadi/uyirmei.py
Traceback (most recent call last):
File "/home/vanangamudi/code/arichuvadi/mlm/arichuvadi/uyirmei.py", line 1, in
from arichuvadi.valam import UYIRMEI_MAP_PATH
File "/home/vanangamudi/code/arichuvadi/mlm/arichuvadi/arichuvadi.py", line 7, in
from arichuvadi.valam import (
ModuleNotFoundError: No module named 'arichuvadi.valam'; 'arichuvadi' is not a package
#+end_src
Код: Выделить всё
#+begin_src shell :results code
tree
#+end_src
#+RESULTS:
#+begin_src shell
.
├── LICENSE
├── MANIFEST.in
├── mlm
│ ├── arichuvadi
│ │ ├── arichuvadi.py
│ │ ├── __init__.py
│ │ ├── uyirmei.py
│ │ └── valam.py
│ ├── arichuvadi.egg-info
│ │ ├── dependency_links.txt
│ │ ├── PKG-INFO
│ │ ├── SOURCES.txt
│ │ └── top_level.txt
│ ├── orunguri-tha.py
│ └── tharavu
│ ├── adaiyalamitta-ari.txt
│ ├── ari.txt
│ ├── ari-uni.txt
│ └── uyir-mei.csv
├── pyproject.toml
├── README.txt -> YENNAI_PADI.txt
├── setup.py
├── YENNAI_PADI.txt
└── YENNA_SEIYA.org
4 directories, 20 files
#+end_src
Код: Выделить всё
#+begin_src shell
$ python
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import arichuvadi
>>> import arichuvadi.valam
>>>
#+end_src
Подробнее здесь: https://stackoverflow.com/questions/786 ... is-not-a-p