You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AttributeError: 'module' object has no attribute 'bucket' #3
Traceback (most recent call last):
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 238, in <module>
obj.run()
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 152, in run
output = action.run(**self._parameters)
+ 9 more lines
Traceback (most recent call last):
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 238, in <module>
obj.run()
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 152, in run
output = action.run(**self._parameters)
File "/opt/stackstorm/packs/aws/actions/run.py", line 20, in run
return self.do_method(module_path, cls, action, **kwargs)
File "/opt/stackstorm/packs/aws/actions/lib/action.py", line 122, in do_method
formatted = self.resultsets.formatter(resultset)
File "/opt/stackstorm/packs/aws/actions/lib/ec2parsers.py", line 204, in formatter
return self.selector(output)
File "/opt/stackstorm/packs/aws/actions/lib/ec2parsers.py", line 193, in selector
elif isinstance(output, s3.bucket.Bucket):
AttributeError: 'module' object has no attribute 'bucket'
Seeing hte above error when running aws.cf_create_stack
File "/opt/stackstorm/packs/aws/actions/lib/ec2parsers.py", line 193, in selector
elif isinstance(output, s3.bucket.Bucket):
AttributeError: 'module' object has no attribute 'bucket'
Your 'aws' pack seems old because the target line is corrected like this in the latest version.
Could you please update your 'aws' pack to the latest version?
@xydinesh I've bumped the version tag, so that the latest is now 0.7.5. It has all the recent changes and should work fine. Could you please try to install the latest again and confirm?
By the way, st2 pack install aws should always install the latest master. It's possible you haven't reloaded the pack content after installation, or the pack failed to update for you. If the things aren't fixed for you in 0.7.5 (or if 0.7.5 isn't installed with st2 pack install aws), try removing the pack, reloading all content with st2ctl reload --register-all, installing the pack, and reloading again.
Activity
AndyMoore111 commentedon Dec 14, 2016
StackStorm/st2contrib#637 (comment)
fixed in st2contrib it seems
xydinesh commentedon Jan 11, 2017
As a workaround, I downgraded to 0.7.0 and worked fine.
st2 pack install aws=0.7.0userlocalhost commentedon Jan 12, 2017
Yes, This problem appear from v0.7.1 to v0.7.3.
But now, this is corrected by #4. We can handle 'Bucket' object at the latest version, like this.
This issue has already been finished.
@emedvedev, Would you please close it?
xydinesh commentedon Jan 12, 2017
Well, for me it is not fixed in 0.7.4, I got following error when calling
st2 run aws.vpc_create_tags resource_ids="vpc-68984b01" tags="Name=Test"ubuntu@ip-172-30-0-134:~$ st2 execution get 5876f4103aae7b59a0d0725e
id: 5876f4103aae7b59a0d0725e
status: failed (1s elapsed)
parameters:
resource_ids: vpc-68984b01
tags: Name=NibiruTestVPC
result:
exit_code: 1
result: None
stderr: "Traceback (most recent call last):
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 242, in
obj.run()
File "/opt/stackstorm/st2/local/lib/python2.7/site-packages/st2common/runners/python_action_wrapper.py", line 154, in run
output = action.run(**self._parameters)
File "/opt/stackstorm/packs/aws/actions/run.py", line 20, in run
return self.do_method(module_path, cls, action, **kwargs)
File "/opt/stackstorm/packs/aws/actions/lib/action.py", line 122, in do_method
formatted = self.resultsets.formatter(resultset)
File "/opt/stackstorm/packs/aws/actions/lib/ec2parsers.py", line 204, in formatter
return self.selector(output)
File "/opt/stackstorm/packs/aws/actions/lib/ec2parsers.py", line 193, in selector
elif isinstance(output, s3.bucket.Bucket):
AttributeError: 'module' object has no attribute 'bucket'
"
stdout: ''
userlocalhost commentedon Jan 12, 2017
@xydinesh, thank you for your reply.
Your 'aws' pack seems old because the target line is corrected like this in the latest version.
Could you please update your 'aws' pack to the latest version?
xydinesh commentedon Jan 12, 2017
I see it is fixed on master but not on 0.7.4. If I do
st2 pack install awsIt installs 0.7.4, How do I install the latest ?
emedvedev commentedon Jan 12, 2017
@xydinesh I've bumped the version tag, so that the latest is now 0.7.5. It has all the recent changes and should work fine. Could you please try to install the latest again and confirm?
By the way,
st2 pack install awsshould always install the latestmaster. It's possible you haven't reloaded the pack content after installation, or the pack failed to update for you. If the things aren't fixed for you in 0.7.5 (or if 0.7.5 isn't installed withst2 pack install aws), try removing the pack, reloading all content withst2ctl reload --register-all, installing the pack, and reloading again.xydinesh commentedon Jan 12, 2017
It installs 0.7.5 now and issue is fixed. Thanks!
emedvedev commentedon Jan 12, 2017
Awesome. Closing the issue.
Merge pull request #3 from jamison-rose/jrose_fix_python3_bug