Tuesday, January 09, 2024
apps@conference.yunohost.org
January
Mon Tue Wed Thu Fri Sat Sun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
             

[00:12:20] <Bram> idk if it has been backported to core
[00:12:20] <Bram> I remember ManiackX complaining a lot to me about how hard it was to integrate it into the helpers so I'm pretty sure he did
[01:49:44] <Bram> https://github.com/search?q=org%3AYunoHost-apps+pythonz&type=code indeed, it has never been backported to core v_v
[01:50:55] <Bram> there is this thing that exist now too (in the gigantic fight for a replacement for pip that no one has ever managed to win and it's fucking annoying) which is probably better https://github.com/pyenv/pyenv
[02:34:46] <Aleks (he/him/il/lui)> never understood why any of these are supposed to be better than pip
[02:34:46] <Aleks (he/him/il/lui)> do they install automaticall lib-dev stuff and/or prevent compiling in local?
[02:34:46] <Bram> you mean pythonz/pyenv or all the other pipenv/poetry/ary and shits?
[02:41:14] <Aleks (he/him/il/lui)> everything yeah
[02:41:20] <Aleks (he/him/il/lui)> dunno if pythonz is supposed to relate to pyenv somehow
[02:41:23] <Bram> oh well, they do a shitload of different things
[02:41:28] <Aleks (he/him/il/lui)> i don't even know why people care about python version except for maybe type annotation support
[02:41:28] <Bram> pythonz and pyenv allow you to manage your python binary version
[02:41:29] <Bram> ah, because there are much more things in those versions
[02:41:29] <Bram> exactly like nvm
[02:41:33] <Aleks (he/him/il/lui)> really x_x
[02:41:33] <Aleks (he/him/il/lui)> such as ?
[02:41:35] <Bram> that we don't really care much for yunohost since the complexity is elsewhere
[02:41:35] <Bram> I don't have a list in my head but a lot of progress are made on python annotation syntaxe for mypy, internals about pkgs managements, the f-strings and other stuff
[02:41:35] <Aleks (he/him/il/lui)> the walrus operator lol
[02:42:39] <Bram> we don't need advanced dataclass nor enum shits
[02:42:40] <Bram> the code is simple enough
[02:46:43] <Bram> but other projects do
[02:46:47] <Bram> so pythonz/pyenv are for python versions management like nvm
[02:46:51] <Bram> well ...
[02:46:51] <Bram> other things ...
[02:46:52] <Aleks (he/him/il/lui)> yeaaaa computerz
[02:46:52] <Bram> it's a fucking mess.
[02:46:52] <Bram> (and matrix refuse that I upload a fucking image)
[02:46:53] <Bram> (because computerz indeed)
[02:46:54] <Bram> this kind of fucking mess
[02:46:54] <Bram> https://alpopkes.com/posts/python/figures/venn_diagram.png
[02:46:56] <Aleks (he/him/il/lui)> ogod
[02:46:56] <Bram> because writting software is HARD
[02:46:56] <Bram> https://alpopkes.com/posts/python/packaging_tools/
[02:46:57] <Bram> and it misses pythonz and virtualenvwrapper because there are even MOAR
[02:47:43] <Bram> but to clear a bit this messy list:
- pip/pipx, virtualenv, venv, conda, setuptools, twine: we don't care about them or already use them (conda is for windows for example)
- pipenv is super annoying and everyone in core python seems to dislike the dev so it's going to fail
- rye is sold as an "experiment" except it's mitsuhiko (flask, jinja2, click) so it might succeed, it's bascially rust pkg manager but for python (cargo)
- poetry is the one that seems to get most traction
- and we are left with flift, maturin, enscons, hatch, pyflow and pdm and I've never heard about that
- I think pdm is by a python core dev so it might succeed?
[02:47:54] <Bram> anyway I hate all of this and I just want to pick one solution and forget about it
[02:47:57] <Bram> anyway, pyenv or pythonz has yunohost helpers like nvm would help here
[02:48:00] <Bram> *as
[02:48:15] <Aleks (he/him/il/lui)> i dont understand how this happen
[02:48:26] <Aleks (he/him/il/lui)> do people know about the fucking xkcd comic about standard
[02:53:48] <Bram> not the first time in python
[02:53:50] <Bram> we had gazillion of events loop and asyncio still came in existance (for the better here)
[02:54:10] <Bram> it just never ends here it's so annoying
[02:59:28] <Aleks (he/him/il/lui)> humanity is so doomed, can't even get a single packager right
[02:59:44] <Bram> and here the problem is being able to agree on one that doesn't sucks
[02:59:44] <Bram> otherwise it works fine-ish on small projects yes
[02:59:44] <Bram> it doesn't work well on long term development with a lot of dependencies
[02:59:44] <Bram> the whole pip-freeze stuff is pretty quickly a mess
[02:59:44] <Aleks (he/him/il/lui)> or at least to me pip/venv works fairly fine except for the part where it miserably crashes trying to compile stuff because it cant warn you about non-installed libdev stuff and whatever, but anyway people are like "oh yeah here's a tool that work let us write 10 different other tools achieving the same shit but differently"
[02:59:44] <Bram> tbf it's a fucking hard problem
[03:04:41] <Aleks (he/him/il/lui)> i was like "nobody tries to reinvent npm riight ? and then i suddently remembered about yarn and pnpm
[03:04:41] <Aleks (he/him/il/lui)> i mean it looks decent compared to the mess that npm is or maybe i'm just a node hater idk haha
[03:04:43] <Bram> node mess is more about the whole ecosystem deciding that "micropkg" are a good thing and should be used and absued and I deeply hate that
[03:05:03] <Aleks (he/him/il/lui)> the other day i decided to switch to alacritty for term and i was like "hmm there's no .deb and the only install recommendation is to use `cargo` and uugh ... but, wait a second, rust are supposed to be people that know how to design good systems, right ? Can't be that bad to run `cargo install` ?" Annnnnnnnnnnd then it proceeded to download half the internets
[03:05:10] <Bram> apparently it's less bad than in nodejs but ... eerrrrr .... I still hate it
[03:05:10] <Bram> yeah rust also decided to use micropkg T_T
[03:05:10] <Bram> I hate that
[03:05:12] <Bram> I just don't understand why appart from "doing big pkg is hard halp" or idk
[03:16:58] <Émy - OniriCorpe> hm, yes, nerdz <3
[07:22:20] <lapineige> > <@Bram_:matrix.org> I remember ManiackX complaining a lot to me about how hard it was to integrate it into the helpers so I'm pretty sure he did

Oh yeah, those time of Maniack gigantic work on custom helpers ^^
[07:27:33] <lapineige> > <@Alekswag:matrix.org> the other day i decided to switch to alacritty for term and i was like "hmm there's no .deb and the only install recommendation is to use `cargo` and uugh ... but, wait a second, rust are supposed to be people that know how to design good systems, right ? Can't be that bad to run `cargo install` ?" Annnnnnnnnnnd then it proceeded to download half the internets

In reply to @Alekswag:matrix.org
the other day i decided to switch to alacritty for term and i was like "hmm there's no .deb and the only install recommendation is to use cargo and uugh ... but, wait a second, rust are supposed to be people that know how to design good systems, right ? Can't be that bad to run cargo install ?" Annnnnnnnnnnd then it proceeded to download half the internets

And leave 500mo of useless cache on the system
[07:58:30] <Yunohost Git/Infra notifications> App minetest rises from level 6 to 8 in job [#21997](https://ci-apps.yunohost.org/ci/job/21997) !
[10:21:49] <eric_G> this line seems to break syntax highlighting. Is something formatted incorrectly? : https://github.com/YunoHost-Apps/ergo_ynh/blob/726cc2c8bc18545fbf15b5a7a86e638d370f1253/scripts/install#L63
[10:44:47] <thatoo> `` Dokos `` depends on `` frappe `` which depends on python 3.10 apparently. Here is the error I get trying to install with python 3.9: 
```



```

```
INFO: pip is looking at multiple versions of frappe to determine which version is compatible with other requirements. This could take a while.
ERROR: Package 'frappe' requires a different Python: 3.9.2 not in '<3.13,>=3.10'
subprocess.CalledProcessError: Command '['/home/thatoo/dokos-bench-folder/env/bin/python', '-m', 'pip', 'install', '--upgrade', '-e', '/home/thatoo/dokos-bench-folder/apps/frappe']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/commands/make.py", line 73, in init
init(
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/utils/render.py", line 109, in wrapper_fn
return fn(*args, **kwargs)
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/utils/system.py", line 79, in init
get_app(
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/app.py", line 456, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/utils/render.py", line 130, in wrapper_fn
return fn(*args, **kwargs)
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/app.py", line 252, in install
install_app(
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/app.py", line 587, in install_app
bench.run(
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File "/home/thatoo/thatoo/lib/python3.9/site-packages/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: ['/home/thatoo/dokos-bench-folder/env/bin/python', '-m', 'pip', 'install', '--upgrade', '-e', '/home/thatoo/dokos-bench-folder/apps/frappe']

ERROR: There was a problem while creating dokos-bench-folder
Do you want to rollback these changes? [y/N]:
```


[10:53:55] <Mateusz Szymański> > <@ericg:matrix.org> this line seems to break syntax highlighting. Is something formatted incorrectly? : https://github.com/YunoHost-Apps/ergo_ynh/blob/726cc2c8bc18545fbf15b5a7a86e638d370f1253/scripts/install#L63

according to `shellcheck`:
```
In install line 63:
passwordhash=$((echo "$password"; echo "$password") | $install_dir/ergo genpasswd)
^----------^ SC2034 (warning): passwordhash appears unused. Verify use (or export if used externally).
^-- SC1102 (error): Shells disambiguate $(( differently or not at all. For $(command substitution), add space after $( . For $((arithmetics)), fix parsing errors.
^-------^ SC2154 (warning): password is referenced but not assigned.
^----------^ SC2086 (info): Double quote to prevent globbing and word splitting.

```
[10:58:33] <thatoo> The command that leads to this was : `` pip3 install --upgrade --quiet dokos-cli ``

I guess the package DOkos will wait for Yunohost 12.0
[10:58:42] <thatoo> The command that leads to this was : `` pip3 install --upgrade --quiet dokos-cli ``

I guess the package Dokos will have to wait for Yunohost 12.0
[10:59:11] <Mateusz Szymański> TBH IDK what this line is supposed to do :P

```
bash-3.2$ password=12abc
bash-3.2$ echo $password
12abc

bash-3.2$ passwordhash=$((echo "$password"; echo "$password") | sha256sum)
bash-3.2$ echo $passwordhash
00395709e4d5f59e318c7c1ea458001cca8e50976a07cf23a9e026a1235c8dd8 -

bash-3.2$ echo $password | sha256sum
71b5419cafe156f4fd09be9786426a44a53a01a8c7e9bd9caccc614df2ed2d00 -
bash-3.2$ echo $password; echo $password | sha256sum
12abc
71b5419cafe156f4fd09be9786426a44a53a01a8c7e9bd9caccc614df2ed2d00 -

bash-3.2$ (echo $password; echo $password) | sha256sum
00395709e4d5f59e318c7c1ea458001cca8e50976a07cf23a9e026a1235c8dd8 -

bash-3.2$ echo 12abc12abc | sha256sum
1d0cb6c81e6d6f7a11f000a60db58d6522e02aa76e8dd3041255372ae8e3bc33 -

bash-3.2$ echo 12abc 12abc | sha256sum
b2f8dd8008ca0599ffa9ebec42ba00cc4eca7fed4166352c9eca85e32890c8fd -
```
[10:59:57] <Mateusz Szymański> (which yields: I have no clue what's passed as input, password with newline?)
[11:02:10] <Mateusz Szymański> ah yes, with newline:

```
bash-3.2$ echo -e 'aa\naa'
aa
aa

bash-3.2$ echo -e '12abc\n12abc' | sha256sum
00395709e4d5f59e318c7c1ea458001cca8e50976a07cf23a9e026a1235c8dd8 -
```

which means the line is well formatted in the source script
[11:04:39] <Mateusz Szymański> > <@thatoo:defis.info> The command that leads to this was : `` pip3 install --upgrade --quiet dokos-cli ``
>
> I guess the package Dokos will have to wait for Yunohost 12.0

btw it's been discussed yesterday that `nextcloud` sets character collation on db level like so: https://github.com/YunoHost-Apps/nextcloud_ynh/blob/9c6d1eea8e0aae331ce616e87ede339d616214bf/scripts/install#L82C1-L83C84
[12:52:18] <Yunohost Git/Infra notifications> Job [#21999](https://ci-apps.yunohost.org/ci/job/21999) for cac-proxy failed miserably :(
[13:55:54] <Yunohost Git/Infra notifications> App droppy goes down from level 7 to 1 in job [#22001](https://ci-apps.yunohost.org/ci/job/22001)
[13:59:22] <Guillaume Bouzige> hello, does anyone know a quick and easy way to expose webhook locally on a yunohost server ?
[14:04:16] <Mateusz Szymański> > hello, does anyone know a quick and easy way to expose webhook locally on a yunohost server ?

with Beehive maybe? https://github.com/muesli/beehive/wiki/Available-Hives#web
depends on what you want to do, but I'd look at workflow automation tools
[14:04:41] <Guillaume Bouzige> yeah I thought about n8n and beehive but they are kind of too complete
[14:05:03] <Mateusz Szymański> https://apps.yunohost.org/catalog?search=automation
[14:05:04] <Guillaume Bouzige> I was reading about adding some conf in nginx to do so
[14:05:44] <Mateusz Szymański> > I was reading about adding some conf in nginx to do so

this approach has a problem of being manually baked in hence prone to breakage by YNH :/
[14:06:09] <Guillaume Bouzige> like it seems like a lua module can start a script on http request
[14:06:34] <Guillaume Bouzige> yeah but if it works I could package it has an app
[14:07:38] <Guillaume Bouzige> like this
```
location /my-website {
content_by_lua_block {
os.execute("/bin/myShellScript.sh")
}
}
```
[14:21:57] <Aleks (he/him/il/lui)> uuugh yeah but keep in mind that webhooks should be sort of authenticated, usually via HTTP headers
[14:22:19] <Aleks (he/him/il/lui)> if you just trigger a raw is command, you wont be able to check the HTTP headers from that command
[14:30:54] <Guillaume Bouzige> yes, I am looking at this solution now https://github.com/adnanh/webhook
[14:54:55] <Aleks (he/him/il/lui)> there's also `fcgiwrap` which is a package that you can install and then it can run any executable, maybe passing the http headers as env variables ? i'm not sure
[14:55:15] <Aleks (he/him/il/lui)> https://techexpert.tips/nginx/nginx-shell-script-cgi/
[16:09:19] <Yunohost Git/Infra notifications> App huginn failed all tests in job [#22011](https://ci-apps.yunohost.org/ci/job/22011) :(
[17:06:06] <Aleks (he/him/il/lui)> https://github.com/YunoHost-Apps/minetest_ynh/commit/ddd22b347d104d117bc7bbdd8e1feab7abeab1e1 🤯
[17:12:23] <Aleks (he/him/il/lui)> https://mastodon.social/@peertube@framapiaf.org/111726643055719231
[17:42:04] <Yunohost Git/Infra notifications> App kimai2 stays at level 2 in job [#22014](https://ci-apps.yunohost.org/ci/job/22014)
[18:54:16] <Yunohost Git/Infra notifications> [nextcloud_ynh] @alexAubin pushed 2 commits to testing ([fe63ef6dfc01...862ee4f08f02](https://github.com/YunoHost-Apps/nextcloud_ynh/compare/fe63ef6dfc01...862ee4f08f02))
[18:54:17] <Yunohost Git/Infra notifications> [nextcloud_ynh] @alexAubin [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622#issuecomment-1883606611) on [issue #622](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622) Testing / switch to packaging V2 + proper mail config: testme
[18:56:09] <Aleks (he/him/il/lui)> hmmm
[18:56:09] <Yunohost Git/Infra notifications> [nextcloud_ynh] @alexAubin [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622#issuecomment-1883608510) on [issue #622](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622) Testing / switch to packaging V2 + proper mail config: testme bro
[18:56:09] <Aleks (he/him/il/lui)> bot broken ?
[19:01:22] <Thomas> Sometimes yes, lets retry 😄
[19:01:24] <Thomas> Yes :p
[19:01:24] <Yunohost Git/Infra notifications> [nextcloud_ynh] @Thovi98 [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622#issuecomment-1883614848) on [issue #622](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622) Testing / switch to packaging V2 + proper mail config: testme
[19:52:26] <Yunohost Git/Infra notifications> [nextcloud_ynh] @Thovi98 [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622#issuecomment-1883614848) on [issue #622](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622) Testing / switch to packaging V2 + proper mail config: testme
[20:16:44] <Yunohost Git/Infra notifications> [nextcloud_ynh] @lapineige [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622#issuecomment-1883716309) on [issue #622](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622) Testing / switch to packaging V2 + proper mail config: Can I test it ?
[20:18:55] <Yunohost Git/Infra notifications> [nextcloud_ynh] @alexAubin [commented](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622#issuecomment-1883719798) on [issue #622](https://github.com/YunoHost-Apps/nextcloud_ynh/pull/622) Testing / switch to packaging V2 + proper mail config: Sure P Ideally wait for at least one upgrade test to complete but yeah
[20:33:11] <Yunohost Git/Infra notifications> App mobilizon goes down from level 8 to 6 in job [#22021](https://ci-apps.yunohost.org/ci/job/22021)