* [Comm] P7, CrossOver Office 10 и PyGTK2 @ 2013-10-08 10:30 Владимир Гусев 2013-10-08 15:56 ` Hihin Ruslan 0 siblings, 1 reply; 5+ messages in thread From: Владимир Гусев @ 2013-10-08 10:30 UTC (permalink / raw) To: ALT Linux Community general discussions Собственно все в сабже. Имеется P7 (основой послужил Simply). Хотел установить Crossover Office 10. Проинсталлировал. Запускаю. Выскакивает xmessage с таким текстом: You seem to be missing the Gtk Python modules. If this is the case you may try running one of the following commands as root: Fedora: yum install pygtk2 pygtk2-libglade Mandriva: urpmi pygtk2.0 pygtk2.0-libglade SUSE: yast -i python-gtk Кинулся смотреть, что установлено у меня из подобного: [vova@comp-pentium-d-502a94 /]$ rpm -qa |grep pygtk python-module-pygtk-2.24.0-alt5 python-module-pygtk_git-2.24.1-alt4.git20111002 python-module-pygtk_git-libglade-2.24.1-alt4.git20111002 Потом решил поискать так: [vova@comp-pentium-d-502a94 /]$ rpm -qa |grep python python-module-pyxdg-0.19-alt1.1 python-module-lxml-3.1.1-alt1.git20130330 python-module-pygnome-2.28.1-alt3 python-2.7.4-alt1 python-module-pygtk-2.24.0-alt5 python-modules-encodings-2.7.4-alt1 python-modules-compiler-2.7.4-alt1 python-modules-multiprocessing-2.7.4-alt1 python-module-pycairo-1.10.1-alt2.git20120522 python3-base-3.3.1-alt4 python-base-2.7.4-alt1 python-module-genshi-0.7-alt1 python-modules-2.7.4-alt1 python-modules-hotshot-2.7.4-alt1 python-module-nose-1.2.1-alt1.git20130317 python-module-numpy-2.0.0-alt8.git20121009 python-module-PyPanel-2.4-alt4.4.1.1 python-module-pygtk_git-2.24.1-alt4.git20111002 python-module-pygnome-gnome-vfs-2.28.1-alt3 python-strict-2.7.4-alt1 python-modules-logging-2.7.4-alt1 python-dev-2.7.4-alt1 python-module-html5lib-0.95-alt4 python-module-pygnome-canvas-2.28.1-alt3 python-modules-curses-2.7.4-alt1 python-module-numpy-addons-2.0.0-alt8.git20121009 python-module-pygtk_git-libglade-2.24.1-alt4.git20111002 python3-module-pygobject-2.28.6-alt6 python-modules-email-2.7.4-alt1 python-modules-ctypes-2.7.4-alt1 python-modules-unittest-2.7.4-alt1 python-module-pygobject-2.28.6-alt3 python-module-numpy-testing-2.0.0-alt8.git20121009 libpython3-3.3.1-alt4 libpython-2.7.4-alt1 python-module-xlib-0.15-alt1.rc1.1 python-modules-xml-2.7.4-alt1 python-modules-bsddb-2.7.4-alt1 python-module-distribute-0.6.35-alt1 python-module-BeautifulSoup-3.2.1-alt2.1 Самое главное есть. Это python-module-pygtk-2.24.0-alt5 Но Crossover не видит это. Помнится, что когда-то давно что-то подобное я уже решал. Но как - уже не помню. Что подскажете? ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] P7, CrossOver Office 10 и PyGTK2 2013-10-08 10:30 [Comm] P7, CrossOver Office 10 и PyGTK2 Владимир Гусев @ 2013-10-08 15:56 ` Hihin Ruslan 2013-10-08 18:26 ` Владимир Гусев 0 siblings, 1 reply; 5+ messages in thread From: Hihin Ruslan @ 2013-10-08 15:56 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 450 bytes --] Здравствуйте Владимир Гусев В сообщении от 8 октября 2013 Владимир Гусев написал(a): > Но как - уже не помню. Что подскажете? Надо-бы посмотреть что он ищет. Может ему python-module-pygtk-devel нужен? -- *** А ещё говорят так (fortune): If all the world's economists were laid end to end, we wouldn't reach a conclusion. -- William Baumol ________________________________________________________________________ С уважением Хихин Руслан [-- Attachment #2: This is a digitally signed message part. --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] P7, CrossOver Office 10 и PyGTK2 2013-10-08 15:56 ` Hihin Ruslan @ 2013-10-08 18:26 ` Владимир Гусев 2013-10-16 13:01 ` Владимир Гусев 0 siblings, 1 reply; 5+ messages in thread From: Владимир Гусев @ 2013-10-08 18:26 UTC (permalink / raw) To: ruslandh, ALT Linux Community general discussions On Tue, 08 Oct 2013 19:56:11 +0400, Hihin Ruslan wrote: > Здравствуйте Владимир Гусев > В сообщении от 8 октября 2013 Владимир Гусев написал(a): >> Но как - уже не помню. Что подскажете? > > Надо-бы посмотреть что он ищет. > Может ему python-module-pygtk-devel нужен? Завтра на работе пропущу его через strace (а может и ldd) - отпишусь. -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] P7, CrossOver Office 10 и PyGTK2 2013-10-08 18:26 ` Владимир Гусев @ 2013-10-16 13:01 ` Владимир Гусев 2013-10-17 7:03 ` Владимир Гусев 0 siblings, 1 reply; 5+ messages in thread From: Владимир Гусев @ 2013-10-16 13:01 UTC (permalink / raw) To: ALT Linux Community general discussions [-- Attachment #1: Type: text/plain, Size: 1715 bytes --] On 10/08/2013 10:26 PM, Владимир Гусев wrote: > On Tue, 08 Oct 2013 19:56:11 +0400, Hihin Ruslan wrote: > >> Здравствуйте Владимир Гусев >> В сообщении от 8 октября 2013 Владимир Гусев написал(a): >>> Но как - уже не помню. Что подскажете? >> >> Надо-бы посмотреть что он ищет. >> Может ему python-module-pygtk-devel нужен? > > Завтра на работе пропущу его через strace (а может и ldd) - отпишусь. > Последний абзац запускаиз-под strace, к примеру, cxinstaller: write(2, " File \"/opt/cxoffice/lib/python"..., 73 File "/opt/cxoffice/lib/python/installwizard.py", line 10, in <module> ) = 73 open("/opt/cxoffice/lib/python/installwizard.py", O_RDONLY|O_LARGEFILE) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=73922, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb48db000 read(3, "# (c) Copyright 2009-2010. CodeW"..., 4096) = 4096 write(2, " ", 4 ) = 4 write(2, "import gtk.glade\n", 17import gtk.glade ) = 17 close(3) = 0 munmap(0xb48db000, 4096) = 0 write(2, "ImportError", 11ImportError) = 11 write(2, ": ", 2: ) = 2 write(2, "No module named glade", 21No module named glade) = 21 write(2, "\n", 1 ) = 1 rt_sigaction(SIGINT, {SIG_DFL, [], 0}, {0x8119d50, [], 0}, 8) = 0 brk(0) = 0x8731000 brk(0) = 0x8731000 brk(0x853e000) = 0x853e000 brk(0) = 0x853e000 exit_group(1) = ? +++ exited with 1 +++ ldd для него не подошел, это скрипт.. Сам файлик cxinstaller прилагаю к письму. [-- Attachment #2: cxinstaller --] [-- Type: text/plain, Size: 4773 bytes --] #! /usr/bin/env python # (c) Copyright 2009-2010. CodeWeavers, Inc. import os # Portable which(1) implementation def which(path, app): """Looks for an executable in the specified directory list. path is an os.pathsep-separated list of directories and app is the executable name. If app contains a path separator then path is ignored. If the file is not found, then None is returned. """ if os.path.isabs(app): if os.path.isfile(app) and os.access(app, os.X_OK): return app elif os.sep in app or (os.altsep and os.altsep in app): app_path = os.path.join(os.getcwd(), app) if os.path.isfile(app_path) and os.access(app_path, os.X_OK): return app_path else: for directory in path.split(os.pathsep): if directory == "": continue app_path = os.path.join(directory, app) if os.path.isfile(app_path) and os.access(app_path, os.X_OK): return app_path return None import sys def locate_cx_root(): """Locate where CrossOver is installed. We start by locating our own python script file and walking back up the path, traversing symbolic links on the way. Then we verify what we have found the right directory by checking for the presence of the cxmenu script. """ # pylint: disable-msg=I0011,W0601,W0603 global CX_ROOT if "CX_DEVELOP_ROOT" in os.environ: CX_ROOT = os.environ["CX_DEVELOP_ROOT"] return # figure out argv0 argv0 = which(os.environ["PATH"], sys.argv[0]) if not argv0: argv0 = sys.argv[0] if not os.path.isabs(argv0): argv0 = os.path.join(os.getcwd(), argv0) # traverse the symbolic links dir0 = os.path.dirname(argv0) while True: if dir0.endswith("/lib"): bindir = dir0[0:-3] + "bin" else: bindir = dir0 landmark = os.path.join(bindir, "cxmenu") if os.path.isfile(landmark): break if not os.path.islink(argv0): break argv0 = os.readlink(argv0) if not os.path.isabs(argv0): argv0 = os.path.join(dir0, argv0) dir0 = os.path.dirname(argv0) # compute CX_ROOT CX_ROOT = os.path.dirname(os.path.normpath(bindir)) # check CX_ROOT landmark = os.path.join(CX_ROOT, "bin", "cxmenu") if not os.path.isfile(landmark) or not os.access(landmark, os.X_OK): sys.stderr.write("%s:error: could not find CrossOver in '%s'\n" % (os.path.dirname(sys.argv[0]), CX_ROOT)) sys.exit(1) sys.path.append(os.path.join(CX_ROOT, "lib", "python")) locate_cx_root() import cxutils cxutils.CX_ROOT = CX_ROOT import checkgtk checkgtk.check_gtk() import gtk import cxopt import installwizard import cxguitools # This only looks like it's doing nothing # pylint: disable-msg=W0611 import cheatconsole def main(): # Parse the command line options opt_parser = cxopt.Parser(usage="%prog [--bottle BOTTLE] [--tiefile TIEFILE] [--c4pfile TIEFILE] [--profileid PROFILEID] [--installersource INSTALLERSOURCE] [--help]", description="Starts the CrossOver Windows application installation wizard.") opt_parser.add_option("--bottle", dest="bottle", help="Use the specified bottle and $CX_BOTTLE otherwise") # Keep --c4pfile for backward compatibility opt_parser.add_option("--tiefile", "--c4pfile", dest="tiefile", help="Load the specified additional .tie file") opt_parser.add_option("--profileid", dest="profileid", help="Select the specified profile for installation") opt_parser.add_option("--installersource", dest="installersource", help="Specifies the path to the installer file or directory") (options, args) = opt_parser.parse_args() # Do more checks and provide defaults if options.bottle is None and 'CX_BOTTLE' in os.environ: options.bottle = os.environ['CX_BOTTLE'] if options.tiefile is None and args and (args[0].endswith('.tie') or args[0].endswith('.gz') or args[0].endswith('c4p')): options.tiefile = args[0] args = args[1:] if options.installersource is not None: options.installersource = os.path.abspath(options.installersource) if args: opt_parser.error("unexpected argument '%s'" % args[0]) cxguitools.set_default_icon() # give the wizard a name so it can be accessed from the console as __main__.wizard # disable-msg=W0601 global wizard wizard = installwizard.InstallerAssistantController(bottle=options.bottle, c4pfile=options.tiefile, profileid=options.profileid, installersource=options.installersource) cxguitools.warn_if_root() gtk.main() if __name__ == "__main__": sys.exit(main()) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] P7, CrossOver Office 10 и PyGTK2 2013-10-16 13:01 ` Владимир Гусев @ 2013-10-17 7:03 ` Владимир Гусев 0 siblings, 0 replies; 5+ messages in thread From: Владимир Гусев @ 2013-10-17 7:03 UTC (permalink / raw) To: ALT Linux Community general discussions On 10/16/2013 05:01 PM, Владимир Гусев wrote: > On 10/08/2013 10:26 PM, Владимир Гусев wrote: >> On Tue, 08 Oct 2013 19:56:11 +0400, Hihin Ruslan wrote: >> >>> Здравствуйте Владимир Гусев >>> В сообщении от 8 октября 2013 Владимир Гусев написал(a): >>>> Но как - уже не помню. Что подскажете? >>> >>> Надо-бы посмотреть что он ищет. >>> Может ему python-module-pygtk-devel нужен? >> >> Завтра на работе пропущу его через strace (а может и ldd) - отпишусь. >> > > Последний абзац запуска из-под strace, к примеру, cxinstaller: > [..] Я увидел тут только одно - "No module named glade". Но: [vova@comp-pentium-d-502a94 ~]$ rpm -qa |grep glade libglade-2.6.4-alt5.qa1 python-module-pygtk_git-libglade-2.24.1-alt4.git20111002 libgladeui-3.8.3-alt1 И: [vova@comp-pentium-d-502a94 ~]$ rpm -qa |grep glade libglade-2.6.4-alt5.qa1 python-module-pygtk_git-libglade-2.24.1-alt4.git20111002 [..] glade - A user interface designer for Gtk+ and GNOME libgladeui2.0 - GTK+/GNOME3 widget builder library libgladeui2.0-devel - GTK+3/GNOME3 widget builder library libgladeui2.0-gir - GObject introspection data for the GladeUI glade3 - GTK+2/GNOME2 widget builder libgladeui - GTK+2/GNOME2 widget builder library libgladeui-devel - GTK+2/GNOME2 widget builder library [..] libglade - libglade library libglade-devel - Libraries, includes, etc to develop libglade applications libglademm - C++ interface of glade2 library libglademm-devel - Development related files of libglademm libglademm-doc - Documentation for libglademm libgtk-sharp2 - GTK+ and GNOME bindings for Mono perl-Gtk2-GladeXML - Create user interfaces directly from Glade XML files python-module-pygtk-libglade - A wrapper for the libglade library for use with PyGTK python-module-pygtk_git-libglade - A wrapper for the libglade library for use with PyGTK python-module-pygtk_git-tests - pygtk2 tests python-module-twisted-core-gui - GUI for Twisted Core python3-module-twisted-core-gui - GUI for Twisted Core (Python 3) [..] libgladeui2.0-devel-doc - GladeUI development documentation libgladeui2.0-gir-devel - GObject introspection devel data for the GladeUI gresistor - Identify resistors intltool - Scripts and assorted auto* magic for i18nalizing various kinds of data files libglade-devel-doc - Development documentation for libglade gtk-builder-convert - Glade file conversion utility nicotine-plus - The client program for the SoulSeek filesharing system perl-Gtk2-GladeXML-Simple - A clean object-oriented interface to Gtk2::GladeXML python-module-phatch - Phatch python API module python-module-pygg - Python module intended to ease the usage of Glade with PyGTK ruby-gettext-utils - GetText utils spe - Integrated Python Development Environment tepache - Tepache is a code sketcher for python. Доустановил python-module-pygtk-libglade, все заработало. Век живи, век учись - дураком помрешь ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-17 7:03 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-08 10:30 [Comm] P7, CrossOver Office 10 и PyGTK2 Владимир Гусев 2013-10-08 15:56 ` Hihin Ruslan 2013-10-08 18:26 ` Владимир Гусев 2013-10-16 13:01 ` Владимир Гусев 2013-10-17 7:03 ` Владимир Гусев
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git