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

Error occured in Python command: 'dict' object has no attribute 'iteritems' #46

Closed
clawoflight opened this issue Nov 8, 2016 · 9 comments
Labels

Comments

@clawoflight
Copy link

I am getting the following error:

 >>> db
 Traceback (most recent call last):
  File "<string>", line 545, in invoke
  File "<string>", line 293, in redisplay
  File "<string>", line 327, in render
AttributeError: 'dict' object has no attribute 'iteritems'
Error occurred in Python command: 'dict' object has no attribute 'iteritems'

I don't know what could cause this.

$ python --version && python2 --version
Python 3.5.2
Python 2.7.12
$ pacman -Qi gdb-dashboard | grep Version
Version         : 0.1.2-1

$ cat .gdbinit.d/main
set auto-load safe-path
set follow-fork-mode child
#dashboard -style syntax_highlighting "monokai"

It's worth noting that my process forks, in case that changes anything.

@cyrus-and
Copy link
Owner

cyrus-and commented Nov 8, 2016

I think I know what the problem is, but can you please run this inside GDB in the meanwhile?

python import sys; print sys.version

@clawoflight
Copy link
Author

Wow, that was fast!
Output:

>>> python import sys; print sys.version
  File "<string>", line 1
    import sys; print sys.version
                        ^
SyntaxError: invalid syntax
Error while executing Python code.

>>> python import sys; print(sys.version)
3.5.2 (default, Jun 28 2016, 08:46:01) 
[GCC 6.1.1 20160602]

Is your code only compatible with python 2?

@cyrus-and
Copy link
Owner

Nope, but one of the last changes broke the compatibility. The fix is on the way...

@cyrus-and cyrus-and added the bug label Nov 8, 2016
@clawoflight
Copy link
Author

Okay, good to know :)
No need to rush for me, I'm not using this for work right now and don't need it urgently :)

@cyrus-and
Copy link
Owner

Here we go, it should work now, thanks for reporting! :)

Just out of curiosity, what distro are you using?

@clawoflight
Copy link
Author

Yes, it does, thanks a bunch! :)

Plain Arch Linux :)
In case that's what you are asking about, someone called anthraxx (Levente Polyak) maintains stable and git packages in the AUR.

@cyrus-and
Copy link
Owner

You're welcome!

Yes that's exactly what I wanted to know, thank you.

@clawoflight
Copy link
Author

You're welcome :) Arch is great in that respect, there is a package for nearly everything.

@wuxb45
Copy link

wuxb45 commented Nov 9, 2016

Thanks for the timely fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants