OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

ModuleNotFoundError: No module named 'arichuvadi.valam'; 'arichuvadi' is not a package

  • Thread starter Thread starter vanangamudi
  • Start date Start date
V

vanangamudi

Guest

  • ModuleNotFoundError: No module named 'arichuvadi.valam'; 'arichuvadi' is not a package Installed the local package in editable form with the following command

    #+begin_src shell

    Code:
    pip install -e .

    #+end_src

I get this error when running the code like this

Code:
#+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 <module>
        from arichuvadi.valam import UYIRMEI_MAP_PATH
      File "/home/vanangamudi/code/arichuvadi/mlm/arichuvadi/arichuvadi.py", line 7, in <module>
        from arichuvadi.valam import (
    ModuleNotFoundError: No module named 'arichuvadi.valam'; 'arichuvadi' is not a package

#+end_src

Here is the file layout

Code:
#+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

It works when importing in repl

Code:
#+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

Please help!
<ul>
<li><p>ModuleNotFoundError: No module named 'arichuvadi.valam'; 'arichuvadi' is not a package
Installed the local package in editable form with the following command</p>
<p>#+begin_src shell</p>
<pre><code>pip install -e .
</code></pre>
<p>#+end_src</p>
</li>
</ul>
<p>I get this error when running the code like this</p>
<pre><code>#+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 <module>
from arichuvadi.valam import UYIRMEI_MAP_PATH
File "/home/vanangamudi/code/arichuvadi/mlm/arichuvadi/arichuvadi.py", line 7, in <module>
from arichuvadi.valam import (
ModuleNotFoundError: No module named 'arichuvadi.valam'; 'arichuvadi' is not a package

#+end_src
</code></pre>
<p>Here is the file layout</p>
<pre><code>#+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
</code></pre>
<p>It works when importing in repl</p>
<pre><code>#+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
</code></pre>
<p>Please help!</p>
 

Latest posts

Top