JMP-compatible Gajim
- Inicie sesión o regístrese para enviar comentarios
JMP requires a version of Gajim that is at least 0.0.1 versions ahead
of the one in Trisquel 8. The version in Trisquel 8 prevents me from
sending images to my contacts over MMS.
I tried adding Gajim's PPA and it gave me dependency issues.
cal@user-ThinkPad-X200 :~$ apt search gajim
Sorting... Done
Full Text Search... Done
gajim/unstable,unstable 1.0.3-1 all [residual-config]
XMPP client written in Python / GTK
gajim-default-nightly/unstable,unstable 20180715-1 all
XMPP client written in Python / GTK
gajim-dev-keyring/unstable,unstable 2016.03.29 all
GnuPG archive key of the gajim-dev repository
gajim-nightly/unstable,unstable 20180616-1 all
XMPP client written in Python / GTK
cal@user-ThinkPad-X200 :~$ sudo apt install gajim
[sudo] password for cal:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
gajim : Depends: gir1.2-gtk-3.0 (>= 3.22) but 3.18.9-1ubuntu3.3 is
to be installed
Recommends: python3-crypto but it is not going to be
installed
Recommends: python3-gnupg (>= 0.3.8) but it is not going to
be installed
E: Unable to correct problems, you have held broken packages.
cal@user-ThinkPad-X200 :~$
Oh, well. I'm using Flatpak as a workaround, until I can properly
install it. I just want to be able to send photos to Mom's phone.
cal@user-ThinkPad-X200 :~$ flatpak install flathub org.gajim.Gajim
Installing in system:
org.gajim.Gajim/x86_64/stable flathub 7d81574b5cfa
permissions: ipc, network, pulseaudio, wayland, x11
file access: home, xdg-run/dconf, ~/.config/dconf:ro
dbus access: ca.desrt.dconf, org.freedesktop.secrets,
org.gnome.ScreenSaver, org.mpris.MediaPlayer2.*
system dbus access: org.freedesktop.GeoClue2,
org.freedesktop.login1
org.gajim.Gajim.Locale/x86_64/stable flathub a9556864327a
Is this ok [y/n]: y
Installing: org.gajim.Gajim/x86_64/stable from flathub
[####################] 1 delta parts, 2 loose fetched; 6904 KiB
transferred in 1
Now at 7d81574b5cfa.
Installing: org.gajim.Gajim.Locale/x86_64/stable from flathub
[####################] 7 metadata, 2 content objects fetched; 59 KiB
transferred
Now at a9556864327a.
cal@user-ThinkPad-X200 :~$ flatpak run org.gajim.Gajim
Fixed.
> The following packages have unmet dependencies.
> gajim : Depends: gir1.2-gtk-3.0 (>= 3.22) but 3.18.9-1ubuntu3.3 is
My expectation is that if you try to install 3.22 you'll lack dependencies for that, and if you try to install those dependencies you'll lack dependencies for them, etc. This is usually the point at which I get the package from Guix instead.
Alternatively, you could see if there is a version of Gajim that is new enough to be able to send picture messages but old enough that it does not require a newer version of gir1.2-gtk-3.0 than Trisquel's. What is the earliest version of Gajim that works with JMP? I dont see anything about a version requirement on the website. Did you get this info from Denver?
Off-topic: I've never used Flatpak. Do you find it preferable to using Guix to get newer version of packages than those in the repo? Do programs installed via Flatpak reliably inherit DE-wide GTK themes? That's been my only real annoyance with Guix.
> What is the earliest version of Gajim that works with JMP?
Trisquel 8's version + 0.0.1.
> I dont see anything about a version requirement on the website. Did
> you get this info from Denver?
Yes.
> Off-topic: I've never used Flatpak. Do you find it preferable to
> using Guix to get newer version of packages than those in the repo?
No, it was just faster and more widely used.
> Do programs installed via Flatpak reliably inherit DE-wide GTK
> themes? That's been my only real annoyance with Guix.
Yes.
However, Flatpak-installed apps still don't cooperate with my IBus, so
I can't type emoji or other languages.
And this new version of Gajim still won't send image files to SMS
contacts. I might as well continue uploading images to the Web and
sending the link. This way, I can at least continue typing emoji and
other languages.
However, the version of Gajim in Trisquel gives errors all the time:
A programming error has been detected
It is probably not fatal, but should be reported
to the developers nonetheless.
Details
Traceback (most recent call last):
File "/usr/share/gajim/src/chat_control.py", line 2975, in
_on_message_tv_buffer_changed
self.begin_e2e_negotiation()
File "/usr/share/gajim/src/chat_control.py", line 3237, in
begin_e2e_negotiation
self.session.negotiate_e2e(False)
File "/usr/share/gajim/src/common/stanza_session.py", line 698, in
negotiate_e2e
self.n_s = crypto.generate_nonce()
File "/usr/share/gajim/src/common/crypto.py", line 128, in
generate_nonce
return random_bytes(8)
File "/usr/share/gajim/src/common/crypto.py", line 122, in
random_bytes
OpenSSL.rand.add(os.urandom(bytes_), bytes_)
File "/usr/share/gajim/src/common/demandimport.py", line 86, in
__getattribute__
self._load()
File "/usr/share/gajim/src/common/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
ImportError: No module named rand
[❌ Close] [Report Bug]
This just randomly shows up ALL THE TIME.
Oh, well. It's the best I can do. Staying with old Gajim!
> And this new version of Gajim still won't send image files to SMS
> contacts.
Are you referring to the Flatpak version, or the version I explain how to build in my other comment? If you mean the latter, the version of Gajim is not the problem, as I am now able to send pictures from Gajim after building 0.16.9.
From the changelog[1] for 1.0.0:
"Ported to GTK3 / Python3"
I suspect that the move to gtk3 is what added the gir1.2-gtk-3.0 >=3.22 dependency, so I set out to build the previous version of Gajim (0.16.9). There is still one outdated runtime dependency (python-nbxmpp) but since this package has no version-specific dependencies it's no trouble to build the most recent version of this package.
$ git clone https://dev.gajim.org/gajim/python-nbxmpp.git
$ cd python-nbxmpp
$ python setup.py build
$ sudo python setup.py install
$ cd ..
$ rm -rf python-nbxmpp
Now to build gajim:
$ sudo apt remove gajim # if you still have the old version installed
$ sudo apt install intltool
$ wget https://gajim.org/downloads/0.16/gajim-0.16.9.tar.bz2
$ tar -xvf gajim-0.16.9.tar.bz2
$ cd gajim-0.16.9
$ ./configure
$ make
$ sudo make install
$ cd ..
$ rm -rf gajim-0.16.9
I was then able to launch Gajim and from my JMP account was able to send a picture to my friend's phone number.
I had noticed that sending pictures through Gajim didn't work, but I hadn't realized that I could fix this by using a later version. Thanks for bringing that to my attention.
[1] https://dev.gajim.org/gajim/gajim/blob/gajim-1.0.0/ChangeLog
$ pwd
/home/cal/Downloads/#trisquel/JMP-compatible Gajim/gajim-0.16.9
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... configure: error: unsafe
absolute working directory name
$ make
make: *** No targets specified and no makefile found. Stop.
$
> /home/cal/Downloads/#trisquel/JMP-compatible Gajim/gajim-0.16.9
> error: unsafe
> absolute working directory name
The script doesn't like the "#" in the file path. Your choices are to (a) rename #trisquel, (b) build somewhere else, or (c) modify line 2462 of the script. I advise (a) or (b). The script doesn't want to build in a directory containing "#" for a reason. It might cause everything following the "#" to be interpreted as a comment at some point during the build process.
It works now! Thanks! This is perfect!
I had this same problem. Only flatpak fixed it. I'd rather it work as a read install from the Trisquel repos.
- Inicie sesión o regístrese para enviar comentarios