Summary: | python-module-pygobject3 'gi.repository.Gdk' object has no attribute 'Color' | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | gBopHuk <gbophuk_alt> |
Component: | python-module-pygobject3 | Assignee: | Yuri N. Sedunov <aris> |
Status: | CLOSED NOTABUG | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P3 | CC: | aris |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
gBopHuk
2016-12-29 15:51:35 MSK
Не воспроизводится:
$ python
Python 2.7.11 (default, Apr 15 2016, 13:09:43)
[GCC 5.3.1 20151207 (ALT Linux 5.3.1-alt3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gi
>>> gi.require_version('Gdk', '3.0')
>>> from gi.repository import Gdk
>>>
______________________________________________________________
$ ipython
Python 2.7.11 (default, Apr 15 2016, 13:09:43)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: import gi
In [2]: gi.require_version('Gdk', '3.0')
In [3]: from gi.repository import Gdk
In [4]:
(В ответ на комментарий №1)
> Не воспроизводится:
>
> $ python
> Python 2.7.11 (default, Apr 15 2016, 13:09:43)
> [GCC 5.3.1 20151207 (ALT Linux 5.3.1-alt3)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import gi
> >>> gi.require_version('Gdk', '3.0')
> >>> from gi.repository import Gdk
> >>>
> ______________________________________________________________
> $ ipython
> Python 2.7.11 (default, Apr 15 2016, 13:09:43)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 4.0.0 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help -> Python's own help system.
> object? -> Details about 'object', use 'object??' for extra details.
>
> In [1]: import gi
>
> In [2]: gi.require_version('Gdk', '3.0')
>
> In [3]: from gi.repository import Gdk
>
> In [4]:
Интересно, может мне надо что-то ещё доустановить?
$ipython
Python 2.7.11 (default, Apr 15 2016, 13:09:43)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]:import gi
ERROR - failed to write data to stream: <open file '<stdout>', mode 'w' at 0x7fc2c14c0150>
(В ответ на комментарий №2) > Интересно, может мне надо что-то ещё доустановить? > $ipython > Python 2.7.11 (default, Apr 15 2016, 13:09:43) > Type "copyright", "credits" or "license" for more information. > > IPython 4.0.0 -- An enhanced Interactive Python. > ? -> Introduction and overview of IPython's features. > %quickref -> Quick reference. > help -> Python's own help system. > object? -> Details about 'object', use 'object??' for extra details. > > In [1]:import gi > ERROR - failed to write data to stream: <open file '<stdout>', mode 'w' at > 0x7fc2c14c0150> Простите, не в том окружении запускал. Вот результат из того окружения где собираю пакет. ython 2.7.11 (default, Apr 15 2016, 13:09:43) Type "copyright", "credits" or "license" for more information. IPython 4.0.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: import gi In [2]: gi.require_version('Gdk', '3.0') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-2-4a32b79a80ff> in <module>() ----> 1 gi.require_version('Gdk', '3.0') /usr/lib64/python2.7/site-packages/gi/__init__.pyc in require_version(namespace, version) 120 if version not in available_versions: 121 raise ValueError('Namespace %s not available for version %s' % --> 122 (namespace, version)) 123 124 _versions[namespace] = version ValueError: Namespace Gdk not available for version 3.0 |