Poetry2nix | 326 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 26 Jan 2022 | ||
| Nope, Intel, and never had any problems with python before | 16:18:35 | |
| It's possible you manually upgraded pip then | 16:19:35 | |
| Either way try building your environment with 3.9 or even 3.10 | 16:19:51 | |
| It might work | 16:19:54 | |
| Nope, similar error. I think it's trying to install a wheel for the wrong OS version (i.e. 10.9, while I'm on 11.6) | 16:22:06 | |
| I believe 10.9 is the minimum version | 16:22:37 | |
| 29 Jan 2022 | ||
| 15:00:01 | ||
| Hi beautiful people! I'm trying get a shell with graphtage and wildq. No problem with the latter, but graphtage fails. >>> from graphtage import json Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/graphtage/__init__.py”, line 1, in <module> from . import graphtage File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/graphtage/graphtage.py”, line 11, in <module> from .multiset import MultiSetEdit File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/graphtage/multiset.py”, line 12, in <module> from .matching import WeightedBipartiteMatcher File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/graphtage/matching.py”, line 44, in <module> from scipy.optimize import linear_sum_assignment File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/optimize/__init__.py”, line 413, in <module> from ._linprog import linprog, linprog_verbose_callback File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/optimize/_linprog.py”, line 23, in <module> from ._linprog_ip import _linprog_ip File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/optimize/_linprog_ip.py”, line 27, in <module> from ._linprog_util import _postsolve File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/optimize/_linprog_util.py”, line 9, in <module> from scipy.optimize._remove_redundancy import ( File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/optimize/_remove_redundancy.py”, line 9, in <module> from scipy.linalg.interpolative import interp_decomp File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/linalg/interpolative.py”, line 385, in <module> import scipy.linalg._interpolative_backend as backend File “/nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/linalg/_interpolative_backend.py”, line 34, in <module> import scipy.linalg._interpolative as _id ImportError: /nix/store/x99l21wg669djr6a77sjzwga06s9zxmk-python3-3.9.9-env/lib/python3.9/site-packages/scipy/linalg/_interpolative.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZGVbN2v_cos It seems to be a problem with scipy. Looking around it seems to be solved by compiling with -lmvec, with provides support for mathematical vectors in libc | 16:23:47 | |
| I have tried putting an override for scipy with lmvec, to no avail | 16:24:40 | |
| maybe you could provide you expression? it will be much easier if there will be ability to experiment and run localy | 16:26:55 | |
| * maybe you could provide your expression? it will be much easier if there will be ability to experiment and run localy | 16:28:57 | |
In reply to @mou_bugtracker:matrix.org { description = “graphtage”; inputs.nixpkgs.url = “github:NixOS/nixpkgs/d9e21f284317f85b3476c0043f4efea87a226c3a”; outputs = { self, nixpkgs }: let pkgs = nixpkgs.legacyPackages.x86_64-linux; myPoetryEnv = pkgs.poetry2nix.mkPoetryEnv { pyproject = ./pyproject.toml; poetrylock = ./poetry.lock; }; in { devShell.x86_64-linux = myPoetryEnv; }; } This is the full content of the flake | 16:50:05 | |
| To reproduce, nix develop; graphtage --help | 16:50:34 | |
| Some wierd quotes ( | 16:51:46 | |
In reply to @rolandco:matrix.orgpyproject.toml and poetry.lock needed too | 16:54:24 | |
| or just pyproject.toml | 16:54:59 | |
In reply to @mou_bugtracker:matrix.org [tool.poetry] name = “graphtage-tool” version = “0.1.0” description = “” authors = [“Roland Coeurjoly rolandcoeurjoly@gmail.com”] [tool.poetry.dependencies] python = “>=3.9,<3.11” graphtage = “^0.2.5” wildq = “^1.1.10” [tool.poetry.dev-dependencies] [build-system] requires = [“poetry-core>=1.0.0”] build-backend = “poetry.core.masonry.api” | 17:00:06 | |
| Sorry | 17:00:34 | |
| How can you reproduce without poetry.lock? Nix complaints without it | 17:01:26 | |
| https://github.com/RCoeurjoly/nix_graphtage | 17:11:45 | |
| mou: you can find the repo above | 17:12:17 | |
| thanks | 17:12:36 | |
| it take time to build | 17:12:44 | |
| The package graphtage is in nixpkgs, and I can create a shell with it easily | 18:52:16 | |
| But wildq is not in nixpkgs | 18:52:29 | |
| Is there a way to create a shell with python modules from nixpkgs and also some installed with poetry? | 18:54:10 | |
| unfortunately my time is over for today. I was not able to figure out cause of problem. But i think cause lies in missing native build dependencies like gfortran and similar. Here is definition for scypi in nixpkgs https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/scipy/default.nix And | 19:36:21 | |
| Consider use poetry2nix not from nixpkgs, but latest version from git. because it has pretty haevy override for scipy https://github.com/nix-community/poetry2nix/blob/master/overrides/default.nix#L1671 | 19:39:18 | |
| i take standard template for poetry2nix and tried to build. ended up with cythonization fail ((
| 19:54:23 | |
| * i took standard template for poetry2nix and tried to build. ended up with cythonization fail ((
| 21:53:16 | |