Skip to content
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

How to run a awslogs installed by pip on windows? #375

Open
eliaweiss opened this issue Jul 28, 2022 · 1 comment
Open

How to run a awslogs installed by pip on windows? #375

eliaweiss opened this issue Jul 28, 2022 · 1 comment

Comments

@eliaweiss
Copy link

I installed awslogs https://github.com/jorgebastida/awslogs

When I try to run it I get awslogs : The term 'awslogs' is not recognized as the name of a cmdlet, function, script file, or operable program.

I couldn't find any info on how to actually run a cmd that was installed by pip on windows,

When searching the web i could only find info about how to install a pip cmd but not how to run a cmd install by pip

More info:

pip show --files awslogs
Name: awslogs
Version: 0.14.0
Summary: awslogs is a simple command line tool to read aws cloudwatch logs.
Home-page: https://github.com/jorgebastida/awslogs
Author: Jorge Bastida
Author-email: me@jorgebastida.com
License: BSD
Location: c:\python310\lib\site-packages
Requires: boto3, jmespath, python-dateutil, termcolor
Required-by:
Files:
awslogs-0.14.0.dist-info\AUTHORS
awslogs-0.14.0.dist-info\COPYING
awslogs-0.14.0.dist-info\METADATA
awslogs-0.14.0.dist-info\RECORD
awslogs-0.14.0.dist-info\WHEEL
awslogs-0.14.0.dist-info\entry_points.txt
awslogs-0.14.0.dist-info\top_level.txt
awslogs_init_.py
awslogs_version.py
awslogs\bin.py
awslogs\core.py
awslogs\exceptions.py
tests_init_.py
tests\test_it.py
tests\test_versions.py

pip awslogs
ERROR: unknown command "awslogs"

py.exe C:\Python310\Lib\site-packages\awslogs\
C:\Python310\python.exe: can't find 'main' module in 'C:\Python310\Lib\site-packages\awslogs\'

py.exe C:\Python310\Lib\site-packages\awslogs\bin.py
Traceback (most recent call last):
File "C:\Python310\Lib\site-packages\awslogs\bin.py", line 9, in
from . import exceptions
ImportError: attempted relative import with no known parent package

see https://stackoverflow.com/questions/73149088/how-to-run-a-cmd-installed-by-pip-on-windows?noredirect=1#comment129197513_73149088

@DeflateAwning
Copy link

Same issue.

Reproduction:

  1. On windows, install via python3 -m pip install awslogs.
  2. Run via python3 -m awslogs -h. Observe this error:
python.exe: No module named awslogs.__main__; 'awslogs' is a package and cannot be directly executed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants