Skip to content

Poetry shell; my_app works, but poetry run my_app does not #7830

Closed Answered by smprather
smprather asked this question in Q&A
Discussion options

You must be logged in to vote

Found more. Turns out:

  1. I was wrong yet again. The "fix" would only work in poetry run, but not poetry shell. So I just reversed the situation.
  2. What I have FINALLY found, is that you can't have the entry script name be the same as the project name. My project name is apl_cockpit and my top level script was apl_cockpit.py. If I change apl_cockpit.py to cli.py, everything works consistently.

Is this expected? Was I supposed to know this already?

Replies: 6 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@smprather
Comment options

@smprather
Comment options

@smprather
Comment options

Comment options

You must be logged in to vote
1 reply
@smprather
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@smprather
Comment options

Comment options

You must be logged in to vote
4 replies
@dimbleby
Comment options

@smprather
Comment options

@dimbleby
Comment options

@smprather
Comment options

Answer selected by smprather
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants