-
fjklp
> fjklp: building Gajim nightly as flatpak is only like 3 commands there is a readme I tried following the readme. When I do `pip install .` it output: ``` error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. ``` ↺
-
fjklp
I don't know this stuff and don't want to deal with it. Are we not going to have a nightly package again?
-
fjklp
> > I actually did copy that but where would it be pasted? you mean to join again? > fjklp: you can paste it in the same place you copied it from (but perhaps for a different account) nothing can be pasted there ↺
-
hannibal
fjklp: try thr readme in https://dev.gajim.org/gajim/gajim/-/tree/master/flatpak?ref_type=heads✎ -
hannibal
fjklp: try the readme in https://dev.gajim.org/gajim/gajim/-/tree/master/flatpak?ref_type=heads ✏
-
fjklp
seems like I'll end up making some mess that I'll have to clean up or fix later
-
fjklp
I want things to be simple right now
-
fjklp
I really dislike doing stuff I don't understand. In https://dev.gajim.org/gajim/gajim/-/tree/master/flatpak?ref_type=heads#install-gajim-and-dependencies there is a line `flatpak --user remote-add --no-gpg-verify gajim_flatpak_repo gajim_flatpak_repo`. What is --no-gpg-verify and is it stupid for me to be running this?
-
fjklp
man, I'm going to mess something up
-
fjklp
I don't understand that whole flatpak build process, nor if it will cause problems. After the whole process I run `flatpak run org.gajim.Gajim` and it outputs `Missing dependency: Namespace GtkSource not available for version 4`
-
fjklp
I guess the easiest way to stay up to date is just to run the regular release
-
fjklp
> seems like I'll end up making some mess that I'll have to clean up or fix later I should have listened to that guy ↺
-
fjklp
does anyone know if `flatpak-builder --install-deps` only installs into the specified directory?
-
fjklp
how often does flathub get updated?
-
fjklp
great, I can't share databases between nightly and stable
-
meson
fjklp: It's flatpak, apps and app data are to a certain degree sandboxed :-P And nightly and stable are in a sense two different flatpak apps
-
meson
Have you managed to build it yourself or do you still need help?
-
fjklp
I installed stable, I abandoned building
-
fjklp
I guess I need to migrate stuff now
-
fjklp
for now I guess I'll forget about using nightly
-
meson
> I abandoned building I will post you my instructions later
-
fjklp
gajim nuked my fucking logs
-
meson
fjklp, ``` python3 -m venv python-venv-gajim source python-venv-gajim/bin/activate # for bash, for fish shell it's activate.fish pip install cryptography css-parser emoji PyGObject pycairo keyring nbxmpp omemo-dr packaging pillow precis-i18n qrcode setuptools SQLAlchemy protobuf git clone https://dev.gajim.org/gajim/gajim.git gajim/launch.py ```
-
fjklp
can anyone explain why ``` cd ~/.var/app mv org.gajim.Gajim.Devel/data/gajim/ org.gajim.Gajim/data/gajim/ org.gajim.Gajim.Devel/config/gajim/ org.gajim.Gajim/config/gajim/ ``` then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost?✎ -
fjklp
can anyone explain why ``` cd ~/.var/app mv org.gajim.Gajim.Devel/data/gajim/ org.gajim.Gajim/data/gajim/ mv org.gajim.Gajim.Devel/config/gajim/ org.gajim.Gajim/config/gajim/ ``` then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost? ✏
-
fjklp
the typing notification is infinitely better now but damn does this piss me off
-
meson
> mv org.gajim.Gajim.Devel/data/gajim because this overwrites all files which equal name in the destination folder✎ -
meson
> mv org.gajim.Gajim.Devel/data/gajim because this overwrites all files with equal name in the destination folder ✏
-
fjklp
isn't that the goal in migrating?
-
meson
have you used the stable flatpak before?✎ -
meson
have you used the stable flatpak before or the nightly (devel) ? ✏
-
meson
have you used Gajim from your distro package?
-
fjklp
I'm not sure what you are actually wanting to know here
-
fjklp
I did `rm -rf ~/.var/app/org.gajim.Gajim/data/gajim`, then installed the stable flatpak, then launched the stable flatpak, fearing that it might overwrite stuff on the first run, then I did the `mv` command to migrate stuff. Then I launched the stable flatpak again.
-
meson
I just wanted to know, which Gajim version you have used before, where you think you lost all your logs?✎ -
meson
I just wanted to know, which Gajim version you have used before regularly, where you think you lost all your logs? ✏
-
fjklp
>I have used maybe more installs than I can recall. I was using the nightly deb for a long time. Then the nightly flatpak. I have no idea what the relevance of this is.✎ -
fjklp
>which Gajim version you have used before regularly I have used maybe more installs than I can recall. I was using the nightly deb for a long time. Then the nightly flatpak. I have no idea what the relevance of this is. ✏
-
fjklp
>where you think you lost all your logs I'm not sure what you mean. I assume they don't exist.
-
fjklp
do you mean what do I think went wrong? no idea, that's why I asked.
-
meson
I got it now. > then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost? it should not. your logs.db is empty? there's no logs.db.bak (backup) from a potential downgrade?✎ -
meson
I got it now. > then run gajim would cause everything in org.gajim.Gajim/data/gajim/ to be lost? it should not. your logs.db is empty in `org.gajim.Gajim/data/gajim/`? there's no logs.db.bak (backup) from a potential downgrade? ✏
-
fjklp
all the omemo keys and everything was gone
-
fjklp
it seems gajim deleted everything
-
fjklp
idk, I coped the exact commands when I posted them here
-
fjklp
I have no backup
-
fjklp
that was intentional, no need to remind me to do backups after it's lost
-
meson
maybe the commands should be adjusted: cp -r instead of mv ;)
-
fjklp
you mean I should assume that software will nuke things
-
meson
always use the safer path
-
fjklp
god damn it I really hate computers
-
meson
fjklp, can you please check if you have a gajim folder in `org.gajim.Gajim/data/gajim/` and `org.gajim.Gajim/config/gajim/`?
-
meson
i.e. `org.gajim.Gajim/data/gajim/gajim`
-
meson
I have the feeling you may have moved the folder itself instead of its content
-
fjklp
holy shit
-
fjklp
> I have the feeling you may have moved the folder itself instead of its content you are exactly right. Thank you sir. Sorry for all my complaining. My mistake. ↺
-
fjklp
heh, I really wish I had the ability to clean up all the useless comments I left
-
meson
np, glad it works for you now and the instructions in the Wiki should be clarified or corrected✎ -
meson
np, glad it works for you now and now we know that the instructions in the Wiki should be clarified or corrected ✏
-
fjklp
cal0pteryx, big improvement on the typing notifications! Thanks for that.
-
meson
fjklp, where have you found these `mv` instructions? https://dev.gajim.org/gajim/gajim/tree/master/flatpak#migrate-your-data literally says `copy`
-
fjklp
meson, I'm aware, it was my choice
-
meson
🙈️
-
fjklp
I sometimes surprise myself at how easy it is for me to make mistakes like this
-
aereaux
I filed an issue with pipx about the way I'm using it to install the git version of gajim. They suggest implementing setuptools-scm to properly install the git version of nbxmpp. Is that something you are considering? https://github.com/pypa/pipx/issues/1545#issuecomment-2385133103
-
lovetox
aereaux: what is your actual problem? I cannot find one in the linked issue
-
aereaux
lovetox, When I install gajim using pipx it installs the release version of nbxmpp because that's what specified in the `pyproject.toml`. I used `pipx inject` to install the git version afterwards, but while it reports a success it doesn't actually install it because it matches the version number of the release version already installed
-
lovetox
Seems force solves your problem
-
aereaux
It doesn't. It runs the pip install command but that doesn't actual install it because the version numbers match
-
lovetox
Yes that's what force is for
-
aereaux
I'm not sure I understand what you mean? The force option doesn't actually end up installing anything
-
lovetox
Sounds like a bug theb
-
lovetox
Or what do the docs say on the force option
-
aereaux
Yeah I know, that's why I filed the bug, but they suggested this other solution. According to https://pipx.pypa.io/stable/docs/#pipx-inject : ` --force, -f Modify existing virtual environment and files in PIPX_BIN_DIR and PIPX_MAN_DIR` which seems like a weird way to specify what it might do?✎ -
aereaux
Yeah I know, that's why I filed the bug, but they suggested this other solution. According to https://pipx.pypa.io/stable/docs/#pipx-inject : `--force, -f Modify existing virtual environment and files in PIPX_BIN_DIR and PIPX_MAN_DIR` which seems like a weird way to specify what it might do? ✏
-
lovetox
I write later an answer
-
aereaux
OK, thanks. Let me know if you need any other debugging info from me or to test anything
-
aereaux
Another question: do you know if there's an "official" way to install the `[project.optional-dependencies]` from the `pyproject.toml`?
-
cal0pteryx
pip install.[dev]
-
aereaux
Ah, thanks! I was having trouble figuring out the syntax for installing from a local dir!
-
meson
in 1.9.5 there's now obviously an empty line for typing notifications, but you think it's possible to let the scrollbar or especially the participant list touch the message action bar? it looks a bit cut off in the air:
-
meson
https://share.conversations.im/meeson_/YXteimSLgf3sbbrd/Screenshot_20241001_170248.png
-
cal0pteryx
You'll get used to it :)
👍 1 -
meson
:D
-
XRevan86
`littlemancatch@gajim.org` – spam account.
-
XRevan86
A spam botnet is attacking me (and others), it includes this gajim.org account.
-
lovetox
asterix ^
-
lovetox
aereaux, did you try pipx upgrade --force
-
aereaux
`pipx upgrade` is for upgrading the version of the main package in a pipx virtualenv. I've been using `pipx reinstall` to manage the versions of gajim itself so that I get a clean environment each time
-
aereaux
The `[dev]` solution lets me at least avoid this problem, so I can use that for now
-
lovetox
main package?
-
lovetox
are you sure, it sounds just like a command to upgrade any package you define
-
aereaux
Yeah, the environments pipx manages are defined by the packages you use to install them (each into their own venv), such as `package gajim 1.9.5, installed using Python 3.12.6` (from `pipx list`). `upgrade` upgrades that package using pip
-
lovetox
hmm i think there should be away to force reinstall a package in pipx
-
lovetox
they cannot expect all projects to use some git version build dependency
-
lovetox
still i will look into setuptools-scm
-
aereaux
I kind of agree that setuptools-scm is a bit much, but thanks for looking into it
🎉 1 -
cal0pteryx
Gajim 1.9.5 has been released 🎉 https://gajim.org/post/2024-09-30-gajim-1.9.5-released/
🎉 6 -
bot
lovetox pushed 1 commits to branch gajim/master fix: Translations: Use standard ngettext method - https://dev.gajim.org/gajim/gajim/-/commit/555da2d88cb76cd12822cc11312e32def82d7226
-
Codimp
> Gajim 1.9.5 has been released 🎉 https://gajim.org/post/2024-09-30-gajim-1.9.5-released/ yeah, but on the website it seems the articles dates are wrong ↺
-
Codimp
oh in facts dates are wrong only in French and Spanish
-
Codimp
and I can't build the website localy with Hugo, a strange template error. Is the readme still up to date?
-
Codimp
ok, it seems to need a specific version of Hugo (version 128 build, but not 135)
-
lorenzo
> Gajim 1.9.5 has been released 🎉 https://gajim.org/post/2024-09-30-gajim-1.9.5-released/ 🎉 ↺
-
cal0pteryx
I have some experience from un-breaking date rendering on xmpp.org. But on gajim.org, Hugo's version is a fixed one I think, which might make it harder. I see what I can do
-
Codimp
I'm looking into it, I found the issue, I'm writing a PR
-
Codimp
(note that the only "simple" solution is using month as a number instead of word)
-
cal0pteryx
if it helps: https://github.com/xsf/xmpp.org/commit/61c106a46363e959d0b6480ada09ced9d2eabe3c
-
Codimp
a lot yes, thanks
-
Codimp
PR is done, but the pipeline is not running, don't know if it's normal
-
cal0pteryx
Codimp, I'm looking at it right now, thanks
-
bot
lovetox pushed 1 commits to branch gajim/master imprv: Debug Console: Use different colors depending on light/dark preference - https://dev.gajim.org/gajim/gajim/-/commit/8373fb6fe2beb684bf6fb3773315adbb85d9cce2
-
cal0pteryx
Codimp, thanks a lot!
👍 2 -
aereaux
> lovetox pushed 1 commits to branch gajim/master > > fix: Translations: Use standard ngettext method - https://dev.gajim.org/gajim/gajim/-/commit/555da2d88cb76cd12822cc11312e32def82d7226 > > Huh, I'm getting some "%s min ago" with this commit in the chat list ↺
-
cal0pteryx
huh, me too
-
meson
Why does the participant list report 367 users, while the chat details 377?✎ -
meson
Why does the participant list report 367 users, while the chat details 377 (for this MUC)? ✏