-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Closed
Description
I cloned the aws-cli from git clone https://github.com/aws/aws-cli.git. Then I built a .deb package (after installed all other dependencies). When I ran /usr/bin/aws command, it generated the following errors:
Traceback (most recent call last):
File "/usr/bin/aws", line 23, in <module>
sys.exit(main())
File "/usr/bin/aws", line 19, in main
return awscli.clidriver.main()
AttributeError: 'module' object has no attribute 'main'
For trouble-shooting, I installed the package using pip. /usr/local/bin/aws runs without problem.
I noticed that the two 'aws' commands are different (/usr/bin /aws is from git, /usr/local/bin is from pip), see below diff output.
What I have missed?
Thanks!
diff -B -b -u /usr/bin/aws /usr/local/bin/aws
--- /usr/bin/aws 2013-05-04 12:22:58.000000000 -0700
+++ /usr/local/bin/aws 2013-05-04 08:53:25.000000000 -0700
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#!/usr/bin/python
# Copyright 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License"). You
@@ -16,7 +16,8 @@
def main():
- return awscli.clidriver.main()
+ driver = awscli.clidriver.CLIDriver()
+ return driver.main()
if __name__ == '__main__':
Metadata
Metadata
Assignees
Labels
No labels