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

Issue in application testharness #363

Open
nileshgore25 opened this issue May 12, 2020 · 1 comment
Open

Issue in application testharness #363

nileshgore25 opened this issue May 12, 2020 · 1 comment

Comments

@nileshgore25
Copy link

(acipy37) [root@localhost testharness]# python apic_test_harness.py --directory ../snapback/apic-config-db/
Traceback (most recent call last):
File "apic_test_harness.py", line 161, in
session = FakeSession(filenames)
File "/root/aciprog/aci_ansible_learning_labs_code_samples/acipy37/lib/python3.7/site-packages/acitoolkit-0.4-py3.7.egg/acitoolkit/acifakeapic.py", line 100, in init
File "/root/aciprog/aci_ansible_learning_labs_code_samples/acipy37/lib/python3.7/site-packages/acitoolkit-0.4-py3.7.egg/acitoolkit/acifakeapic.py", line 288, in _fill_data
AttributeError: 'dict' object has no attribute 'iteritems'
(acipy37) [root@localhost testharness]#

@edudppaz
Copy link
Contributor

edudppaz commented Aug 4, 2020

This is could be due to iteritems being removed in Python3:

Remove dict.iteritems(), dict.iterkeys(), and dict.itervalues().

Instead: use dict.items(), dict.keys(), and dict.values() respectively.

https://wiki.python.org/moin/Python3.0#Built-In_Changes

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