-
Hi poets-- I have had this working in the past (like last week), but after reshuffling my python installation, I started a new poetry project. When I do this, it works. $ poetry shell
Spawning shell within /home/xxxxxx/.cache/pypoetry/virtualenvs/apl-cockpit-5QocjSzm-py3.11
. /home/xxxxxx/.cache/pypoetry/virtualenvs/apl-cockpit-5QocjSzm-py3.11/bin/activate
$ . /home/xxxxxx/.cache/pypoetry/virtualenvs/apl-cockpit-5QocjSzm-py3.11/bin/activate
(apl-cockpit-py3.11) $ apl_cockpit -vvv
3 But when I do this, it doesn't.
This isn't a showstopper, but it's not expected. And I imagine other things will fail, like Here's some more debug info. $ poetry run type -a apl_cockpit
apl_cockpit is /home/xxxxxx/.cache/pypoetry/virtualenvs/apl-cockpit-5QocjSzm-py3.11/bin/apl_cockpit
$ cat /home/xxxxxx/.cache/pypoetry/virtualenvs/apl-cockpit-5QocjSzm-py3.11/lib/python3.11/site-packages/ap
apl_cockpit-0.1.0.dist-info/apl_cockpit.pth
/proj/yyyyyy/xxxxxx/dev/apl_cockpit/src
$ ls /proj/yyyyyy/xxxxxx/dev/apl_cockpit/src/apl_cockpit/apl_cockpit.py
-rw-r--r-- 1 xxxxxx eusers 295 Apr 23 22:38 /proj/yyyyyy/xxxxxx/dev/apl_cockpit/src/apl_cockpit/apl_cockpit.py
/home/xxxxxx/dev/apl_cockpit/src/apl_cockpit
$ ls /proj/yyyyyy/xxxxxx/dev/apl_cockpit/src/apl_cockpit/__init__.py
-rw-r--r-- 1 xxxxxx eusers 149 Apr 23 22:38 /proj/yyyyyy/xxxxxx/dev/apl_cockpit/src/apl_cockpit/__init__.py
/home/xxxxxx/dev/apl_cockpit/src/apl_cockpit
$ cat /proj/yyyyyy/xxxxxx/dev/apl_cockpit/src/apl_cockpit/__init__.py
from pathlib import Path
with open(f"{Path(__file__).parent}/VERSION") as fh:
__version__ = fh.read()
__version_info__ = __version__.split(".")
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
could you share your pyproject.toml file? |
Beta Was this translation helpful? Give feedback.
-
I still had a poetry install in my home dir (~/.local/bin/poetry). I cleansed all of that and it's working now! There was some crossing of the streams, so the obvious happened, "weird undefined behavior". Thanks for the moral support @Secrus ! |
Beta Was this translation helpful? Give feedback.
-
I might have to give up. Wipe everything and start from scratch. I'm REALLY worried that when I do that, I'm going to get the same result. Everything looks correct. |
Beta Was this translation helpful? Give feedback.
-
Ok. So |
Beta Was this translation helpful? Give feedback.
-
FOUND IT!!! I only need one apl_cockpit in the entry point. Well, there goes ~3 hours.... [tool.poetry.scripts]
#apl_cockpit = "apl_cockpit.apl_cockpit:main" <-- FAIL
apl_cockpit = "apl_cockpit:main" <-- WORKS! |
Beta Was this translation helpful? Give feedback.
-
Found more. Turns out:
Is this expected? Was I supposed to know this already? |
Beta Was this translation helpful? Give feedback.
Found more. Turns out:
poetry run
, but notpoetry shell
. So I just reversed the situation.Is this expected? Was I supposed to know this already?