8

I am using Python3.4. I am trying to open an application which supposedly uses Python and can't seem to get it working. I do receive the following error:

Traceback (most recent call last):
  File "pychess", line 24, in <module>
    gi.require_version("Gtk", "3.0")
AttributeError: 'module' object has no attribute 'require_version'
6
  • How are you executing this said application? Commented Apr 9, 2015 at 22:33
  • 1
    looks like PyChess requires PyGTK or PyGObject to bind to GTK+3 the popular Gnome graphical backend. What platform are you on? Linux? Macintosh? Windows? You should read the PyChess downloads. Probably best way would be to install through your systems package manager on Linux. Commented Apr 9, 2015 at 22:35
  • I am executing it via ./pychess in it's respective directory, and I am using Linux. Commented Apr 9, 2015 at 22:53
  • I am experiencing the same error running Remarkable on CentOS 7.3. Commented Dec 28, 2016 at 12:06
  • I had the same error in Ubuntu, I simply did this : sudo pip install PyGTK . Everything started working. Commented May 20, 2017 at 16:04

1 Answer 1

1

Install the dependency with pip install PyGTK, as João Cartucho suggests.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.