2
我想让博托工作,但我得到一个错误。Boto和AWS上的Python
通过安装博托easy_install
,或者干脆python ./setup.py install
cat boto.py
#!/usr/bin/python
import boto
conn = boto.connect_ec2()
3c075474c10b% ./boto.py
Traceback (most recent call last):
File "./boto.py", line 2, in <module>
import boto
File "/Users/vasiliyb/scripts/boto.py", line 3, in <module>
conn = boto.connect_ec2()
AttributeError: 'module' object has no attribute 'connect_ec2'
在将python脚本重命名为something.py – Cmag
后出现同样的问题,出于某种原因,在同一目录中存在boto.pyc ...修复...谢谢 – Cmag