-
root@adb6cc63d099:/app# poetry run tgcf
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'tgcf' has no attribute 'cli'
# why this 👆 unexpected
root@adb6cc63d099:/app# tgcf --version
bash: tgcf: command not found
# expected,👆 as tgcf is installed within virtual env
root@adb6cc63d099:/app# poetry shell
Spawning shell within /root/.cache/pypoetry/virtualenvs/tgcf-9TtSrW0h-py3.9
root@adb6cc63d099:/app# . /root/.cache/pypoetry/virtualenvs/tgcf-9TtSrW0h-py3.9/bin/activate
(tgcf-9TtSrW0h-py3.9) root@adb6cc63d099:/app# tgcf
Usage: tgcf [OPTIONS] MODE:[past|live]
Try 'tgcf --help' for help.
Error: Missing argument 'MODE:[past|live]'. Choose from:
past,
live.
# this error 👆 is expected, its fine Link to tgcf |
Beta Was this translation helpful? Give feedback.
Answered by
aahnik
Apr 20, 2021
Replies: 1 comment
-
My error got fixed by changing my pyproject.toml [tool.poetry.scripts]
-tgcf = 'tgcf:cli.app'
+tgcf = 'tgcf.cli:app'
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aahnik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My error got fixed by changing my pyproject.toml