ryran / pyrite

OpenSSL/GnuPG encryption/signing gui for Linux implemented with Python & PyGTK
73 stars 14 forks source link

pyrite doesn't work in rhel6 or centos6 #4

Closed mariarti closed 9 years ago

mariarti commented 12 years ago

pyrite

Traceback (most recent call last): File "/usr/bin/pyrite", line 37, in import modules.core File "/usr/share/pyrite/modules/core.py", line 415 if startup or self.g_cipher.get_active() in {0, 2}: ^ SyntaxError: invalid syntax

Help pls!

ryran commented 12 years ago

Hi mariarti. What version of python do you have installed? Per the README on the main page, you need python-2.7. I don't know about centos6, but I can tell you that pyrite doesn't work in rhel6. I've been meaning to work on that, but have been busy with my new job at Red Hat for the past few months...

# rpm -q python

Note that the other issue with rhel6 (and centos) is the gtk version -- pyrite currently uses features of gtk2 v2.24 and rhel6's 2.18 just doesn't cut it.

mariarti commented 12 years ago

Hi ryran. $ rpm -q python python-2.6.6-29.el6_2.2.x86_64

and rpm -qa | grep gtk PackageKit-gtk-module-0.5.8-19.el6.centos.x86_64 xdg-user-dirs-gtk-0.8-7.el6.x86_64 gtk2-devel-2.18.9-6.el6.centos.x86_64 gtk2-immodule-xim-2.18.9-6.el6.centos.x86_64 libcanberra-gtk2-0.22-1.el6.centos.x86_64 authconfig-gtk-6.1.12-5.el6.x86_64 pywebkitgtk-1.1.6-3.el6.x86_64 gtkhtml3-3.28.3-3.el6.x86_64 libreport-gtk-2.0.5-20.el6.x86_64 gtkmm24-2.18.2-1.el6.x86_64 pinentry-gtk-0.7.6-6.el6.x86_64 python-slip-gtk-0.2.20-1.el6_2.noarch gtksourceview2-2.8.2-4.el6.x86_64 pygtk2-2.16.0-3.el6.x86_64 GConf2-gtk-2.28.0-6.el6.x86_64 gtk2-2.18.9-6.el6.centos.x86_64 gtkspell-2.0.16-1.el6.x86_64 usermode-gtk-1.102-3.el6.x86_64 gtk+-1.2.10-70.el6.x86_64 gtk-doc-1.11-5.1.el6.noarch gtkmm24-devel-2.18.2-1.el6.x86_64 transmission-gtk-2.13-1.el6.x86_64 gtk2-engines-2.18.4-5.el6.centos.x86_64 webkitgtk-1.2.6-2.el6_0.x86_64 pygtk2-libglade-2.16.0-3.el6.x86_64 ibus-gtk-1.3.4-6.el6.x86_64 pygtksourceview-2.8.0-1.el6.x86_64

ryran commented 12 years ago

Yeah. Like I said my friend... gtk2-2.18 and pyrthon-2.6 just aren't good enough. I will look into the possibility of dumbing things down for those versions. I think the gtk stuff is possible but the python....

mariarti commented 12 years ago

Seems that current situation is that speed for software updates on Centos&Rhel will be not enough... So, good idea to make release for this OS (versions of gtk&python)

ryran commented 12 years ago

No it's not about speed; it's about stability. Red Hat rarely re-bases big software components (like gtk & python) to higher upstream versions within one major release of RHEL. It happens sometimes though -- with the release of RHEL 6.3, rsyslog was rebased to the v5 series. In any case, I'll post here when I figure out if it's feasible for me to get pyrite working with gtk2-2.18, but I'm 99% sure that dumbing it down for python 2.6 is too much damn work (you would have to install python-2.7 alongside the version you already have, which is totally doable).

mariarti commented 12 years ago

maybe it isn't necessary to downgrade pyrite, cause may be there is another app that allow to encrypt/decrypt messages (like "seahorse-plugins" as for me and my installed gnome ) I'll wait for updating gtk&python by standard release and later can see your app. But in any case I want to say many thanks for your reply. )))

ryran commented 12 years ago

seahorse-plugins/seahorse-nautilus is awesome for files. If that works for you, go for it. In the meantime, I've been meaning to look into getting this working in RHEL6, so I'll keep this issue open to track the progress. Peace.

ryran commented 9 years ago

I'm never going to get to this. If someone else wants to create a rhel-6-compatible-branch, feel free to re-open.