-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named kmerdb in the bin script from pyproject.toml's entry_point. #97
Comments
Looks related to this StackOverflow post. |
What is my environment?Python 3.10.1 What have I tried?cd kmerdb
python -m build
pip install -I dist/kmerdb-0.7.2-py3-none-any.whl Install completes successfully.
|
Issue borking the debug process on my end: pyenv/pyenv#2572 |
It seems that this is a generic issue regardless of the virtualenv strategy I'm using. For PyPI folks who may come here, know that I've ruled out a middleware-specific issue by using both classical The issue is that regardless of whether my python package Virtualenv, pip, setuptools, and python versions can all be found in the relevant issues in your repository. The legacy setup.py which did produce the correct bin script can be found here |
What's interesting is that the virtualenv seems to be setting my pythonpath correctly, so i can still import and invoke the module independently, just can use the #!path/to/.venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from kmerdb import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli()) Which again produces the output as above, regarding the kmerdb module not being available to the bin script. Thanks again for your help! |
The text was updated successfully, but these errors were encountered: