module not found during load_entry_point in Python

In case you have installed the setup.py file with the flag --editable

For example:

pip install --editable .

You have to install the package again without the --editable flag.

pip install .

It will not affect the changes you made locally in the package.


It looks like you haven't installed the package in any way, so you're relying on it happening to sit in the current working directory, or some other directory you've added to sys.path.

You didn't tell us how you "invoke awesome-tool from the command-line," but my guess is that you're doing it from a different working directory.

For example:

$ cd ~/virtualenvs/awesome-tool
$ python
>>> import awesometool.awesometool
>>> ^D
$ cd ..
$ python
>>> import awesometool.awesometool
ImportError: No module named awesome_tool.awesome_tool
$ cd awesome-tool
$ python ./bin/awesome-tool
<everything works>
$ cd bin
$ python awesome-tool
ImportError: No module named awesome_tool.awesome_tool