6 Feb 2025 |
| Jeff changed their profile picture. | 06:08:17 |
7 Feb 2025 |
nebucatnetzer13 | I have a strange thing happening in one of your projects, maybe someone of you has an idea what is happening. We basically have the following configuration. It is a project where we use Ansible and Ansible Molecule for testing. In the dev shell everythin feels normal. When we have a look at ansible-playbook it seems to be a binary.
Recently we created a custom Ansible module with additional dependencies. They work fine wenn we run it directly from the within the dev shell.
But when run Molecule tests (a container based test framework) the path to ansible-playbook in the store is different and it is now a bash script. Inside which it points to a different Python version which then doesn't have our required dependencies.
Everything gets installed through poetry2nix so I'm a bit lost why it should be different between the dev shell and molecule.
system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system};
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
python = pkgs.python310;
root = ./.;
pythonDevEnvironment = poetry2nix.mkPoetryEnv {
groups = [
"main"
"dev"
];
projectDir = root;
inherit python;
};
| 07:04:14 |
| @perchun:matrix.org left the room. | 07:32:28 |
| chess7th joined the room. | 14:56:08 |
nebucatnetzer13 | Upon further investigation it's actually not the binaries but the path to ansible python module location . Output of ansible-playbook --version :
Output inside molecule:
ansible-playbook [core 2.17.8]
config file = /home/andreas/git_repos/work/contria_ansible/.devenv/state/molecule/ansible.cfg
configured module search path = ['/home/andreas/git_repos/work/contria_ansible/library']
ansible python module location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/lib/python3.10/site-packages/ansible
ansible collection location = /nix/store/fpm91wbb3hzm70xdhcf74ik1f04qkxny-galaxy-requirements:/home/andreas/git_repos/work/contria_ansible/collections/ansible_collections
executable location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/bin/ansible-playbook
python version = 3.10.16 (main, Dec 3 2024, 17:27:57) [GCC 13.3.0] (/nix/store/v5x90j46fchzh3b891hcc1h3pajbcsc7-python3-3.10.16/bin/python3.10)
jinja version = 3.1.5
libyaml = True
| 22:43:56 |
nebucatnetzer13 | * Upon further investigation it's actually not the binaries but the path to ansible python module location . Output of ansible-playbook --version :
Expected:
ansible-playbook [core 2.17.8]
config file = None
configured module search path = ['/home/andreas/git_repos/work/contria_ansible/library']
ansible python module location = /nix/store/kz7p8bg8jk3ypa3h6pxlifcsy9q4b5z2-python3-3.10.16-env/lib/python3.10/site-packages/ansible
ansible collection location = /nix/store/fpm91wbb3hzm70xdhcf74ik1f04qkxny-galaxy-requirements:/home/andreas/git_repos/work/contria_ansible/collections/ansible_collections
executable location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/bin/ansible-playbook
python version = 3.10.16 (main, Dec 3 2024, 17:27:57) [GCC 13.3.0] (/nix/store/kz7p8bg8jk3ypa3h6pxlifcsy9q4b5z2-python3-3.10.16-env/bin/python3.10)
jinja version = 3.1.5
libyaml = True
Output inside molecule:
ansible-playbook [core 2.17.8]
config file = /home/andreas/git_repos/work/contria_ansible/.devenv/state/molecule/ansible.cfg
configured module search path = ['/home/andreas/git_repos/work/contria_ansible/library']
ansible python module location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/lib/python3.10/site-packages/ansible
ansible collection location = /nix/store/fpm91wbb3hzm70xdhcf74ik1f04qkxny-galaxy-requirements:/home/andreas/git_repos/work/contria_ansible/collections/ansible_collections
executable location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/bin/ansible-playbook
python version = 3.10.16 (main, Dec 3 2024, 17:27:57) [GCC 13.3.0] (/nix/store/v5x90j46fchzh3b891hcc1h3pajbcsc7-python3-3.10.16/bin/python3.10)
jinja version = 3.1.5
libyaml = True
| 22:44:43 |
nebucatnetzer13 | * Upon further investigation it's actually not the binaries but the path to ansible python module location . Output of ansible-playbook --version :
Expected:
ansible-playbook [core 2.17.8]
config file = /home/andreas/git_repos/work/contria_ansible/ansible.cfg
configured module search path = ['/home/andreas/git_repos/work/contria_ansible/library']
ansible python module location = /nix/store/kz7p8bg8jk3ypa3h6pxlifcsy9q4b5z2-python3-3.10.16-env/lib/python3.10/site-packages/ansible
ansible collection location = /nix/store/fpm91wbb3hzm70xdhcf74ik1f04qkxny-galaxy-requirements:/home/andreas/git_repos/work/contria_ansible/collections/ansible_collections
executable location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/bin/ansible-playbook
python version = 3.10.16 (main, Dec 3 2024, 17:27:57) [GCC 13.3.0] (/nix/store/kz7p8bg8jk3ypa3h6pxlifcsy9q4b5z2-python3-3.10.16-env/bin/python3.10)
jinja version = 3.1.5
libyaml = True
Output inside molecule:
ansible-playbook [core 2.17.8]
config file = /home/andreas/git_repos/work/contria_ansible/.devenv/state/molecule/ansible.cfg
configured module search path = ['/home/andreas/git_repos/work/contria_ansible/library']
ansible python module location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/lib/python3.10/site-packages/ansible
ansible collection location = /nix/store/fpm91wbb3hzm70xdhcf74ik1f04qkxny-galaxy-requirements:/home/andreas/git_repos/work/contria_ansible/collections/ansible_collections
executable location = /nix/store/vmjwcq9kq819haqs7r6xrxp75sbai916-python3.10-ansible-core-2.17.8/bin/ansible-playbook
python version = 3.10.16 (main, Dec 3 2024, 17:27:57) [GCC 13.3.0] (/nix/store/v5x90j46fchzh3b891hcc1h3pajbcsc7-python3-3.10.16/bin/python3.10)
jinja version = 3.1.5
libyaml = True
| 22:45:35 |
18 Feb 2025 |
truh | why do you expect to have two different ansible-core store paths for executable and module? Having a single ansible-core store path seems more sensible. | 09:21:50 |
truh | * why do you expect to have two different ansible-core store paths for executable and module? Having a single ansible-core store path seems more sensible.
edit: Ah sorry, didn't see that the message was this old. | 09:22:15 |
truh | * why do you expect to have two different ansible-core store paths for executable and module? Having a single ansible-core store path seems more sensible.
edit: Ah sorry, didn't see that the message was this old. Hope you figured it out. | 09:22:53 |
19 Feb 2025 |
nebucatnetzer13 | Not yet no, for the moment we disabled these molecule tests. | 19:10:18 |
20 Feb 2025 |
| kookie changed their profile picture. | 12:13:05 |
28 Feb 2025 |
| sb set a profile picture. | 06:23:15 |
| sb changed their display name from sepiabrown to Suwon Park. | 06:23:32 |
| sb removed their profile picture. | 06:29:09 |
| sb removed their display name Suwon Park. | 06:30:58 |
7 Mar 2025 |
Erica | Redacted or Malformed Event | 08:49:37 |
Erica | Hello, I'm having trouble with a previously working setup (not touched since autumn 24), When running the flake I now have the following error :
error: builder for '/nix/store/vx1l4rrh1f0z1asrv2iw5k1n19zxy307-python3.12-click-8.1.8.drv' failed with exit code 2;
last 25 log lines:
[...]
> File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'flit_core'
Is it a known issue ?
| 08:52:30 |
Erica | Redacted or Malformed Event | 08:53:17 |
Erica | * Here is the line in the flake.nix
app-server-poetry = mkPoetryApplication { projectDir = ./.; };
| 08:53:40 |
Erica | Redacted or Malformed Event | 08:54:58 |
Erica | I downgraded click to 8.1.7 and it removed this particular issue. | 09:23:38 |
| @vsiles:matrix.org left the room. | 16:33:32 |
10 Mar 2025 |
| b42 left the room. | 11:42:15 |
| Charles left the room. | 22:29:11 |
21 Mar 2025 |
| zupo changed their profile picture. | 11:39:13 |
22 Mar 2025 |
| lunarequest 🏳️⚧️ changed their profile picture. | 02:18:21 |
24 Mar 2025 |
| Nicolas changed their display name from Nicolas Lenz to Nicolas. | 13:39:58 |
27 Mar 2025 |
| @c0ba1t:matrix.org left the room. | 20:26:34 |
30 Mar 2025 |
| @softinio:matrix.org left the room. | 00:12:27 |