-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ImportError: No module named service #1255
Comments
Where did you get awscli-cwlogs from?
** Compare to https://pypi.python.org/pypi/awscli and you will see that if you scroll to the bottom there is a source file of awscli-1.7.18.tar.gz listed. I'm gueesing the you can fix this with:
|
Hello, pip uninstall -y awscli-cwlogs After running the above commands, I get the following: Traceback (most recent call last): |
Okay, so I can't figure out where your import of cwlogs is coming from. It's not in the project source for aws-cli or botocore. Your stack trace (specifically: Based on: Lines 55 to 56 in c0d866a
It looks like you have a cwlogs plugin that is failing to load. Would you mind sharing the source of your ~/.aws/config file?Mine is:
and that |
@markfrancis905 The issue is that the awscli-cwlogs plugin you have installed is not compatible with the latest version of the CLI. I've reached out to the service team to coordinate getting that plugin updated. In the meantime, your two options are:
For (2) you can disable the plugin by ensuring that your CLI config file (which defaults to ~/.aws/config) does not have the cwlogs plugin line:
Let me know if you're still having issues. |
This is somewhat unrelated to this ticket but characterized by a similar traceback (i.e. Google will bring you here), so I want to just leave this here... If you're getting Maintainers please feel free to delete this comment if you think it's too irrelevant! |
Not sure if it will work on your scenario but got it to work with: pip install --upgrade --extra-index-url=http://aws-cloudwatch.s3-website-us-east-1.amazonaws.com/ --trusted-host aws-cloudwatch.s3-website-us-east-1.amazonaws.com awscli-cwlogs most probably for version awscli-cwlogs-1.3.1.tar.gz on the url above |
(Windows 7 64-bit and with the same result on Windows 10 64-bit) Successfully installed awscli-1.7.27 awscli-cwlogs-1.3.2 bcdoc-0.14.0 botocore-0.108.0 jmespath-0.7.1 python-dateutil-2.4.2 rsa-3.1.4 six-1.10.0 Any updates on what to do? |
Hi Guy' s |
@deepakd-perpetual Is this a feature or a bug? |
I followed these steps: sudo chown -R userid:usergroup /Library/Python/2.7/site-packages/ |
mate...did you fix it?... Only problem with this chosen one instance..lol.. [root@mine]# pip freeze | grep aws Can someone help me? |
I'm getting the following error with version 1.7.16:
Traceback (most recent call last):
File "/usr/bin/aws", line 27, in
sys.exit(main())
File "/usr/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/usr/lib/python2.6/site-packages/awscli/clidriver.py", line 47, in main
driver = create_clidriver()
File "/usr/lib/python2.6/site-packages/awscli/clidriver.py", line 56, in create_clidriver
event_hooks=emitter)
File "/usr/lib/python2.6/site-packages/awscli/plugin.py", line 49, in load_plugins
plugin.awscli_initialize(event_hooks)
File "/usr/lib/python2.6/site-packages/cwlogs/init.py", line 25, in awscli_initialize
from cwlogs.pull import initialize as logs_pull_init
File "/usr/lib/python2.6/site-packages/cwlogs/pull.py", line 22, in
from awscli.customizations.service import Service
ImportError: No module named service
[root@]# pip freeze | grep aws
awscli==1.7.16
awscli-cwlogs==1.1.1
I have ran "pip install awscli --force-reinstall --upgrade" with no change.
The text was updated successfully, but these errors were encountered: