!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

315 Members
https://github.com/nix-community/poetry2nix58 Servers

Load older messages


SenderMessageTime
25 Jan 2022
@mou_bugtracker:matrix.orgmouAlso i can fix whatever way you suggest and prepare PR if needed17:23:10
@adis:blad.isadisbladis
In reply to @mou_bugtracker:matrix.org
Also i can fix whatever way you suggest and prepare PR if needed
I don't really have much feedback except that it looks great!
Please PR this 👍️
22:59:36
26 Jan 2022
@mou_bugtracker:matrix.orgmou
In reply to @adis:blad.is
I don't really have much feedback except that it looks great!
Please PR this 👍️
How to name file and where to put it? In root? I have doubts about in-lining it in README
06:12:03
@adis:blad.isadisbladis
In reply to @mou_bugtracker:matrix.org
How to name file and where to put it? In root? I have doubts about in-lining it in README
Could you create a docs directory? I'll try to set up github actions to publish it.
06:16:14
@akiiino:matrix.orgakiiino joined the room.15:31:14
@akiiino:matrix.orgakiiino

Hey folks! I'm at my wits end here, trying to use Nix to manage my python project in any capacity. I have two questions: a specific one and a general one:

  • specific: I have set up a basic mkPoetryEnv in shell.nix, but when I try to actually start the shell, all I get is error: Missing suitable source/wheel file entry for tensorflow. Couldn't figure out what could cause this, so I'm stuck.
  • general: Is poetry2nix even the right tool for what I want to do? So my setup right now (without nix) is: I have a couple of repos I work in and edit; so I have a pyproject.toml that lists them as dependencies by local paths, plus some more dependencies just from pip. Some of these dependencies come from a private pypi server, which is also listed in pyproject.toml. Can poetry2nix handle this relatively simple usecase?
    -- complication 1: can I add some packages without including them in the pyproject.toml? e.g. I don't really want Jupyter to affect the dependency resolution process.
    -- complication 2: what if I also want to add some non-python packages to the environment (say, tmux)?

Sorry for the wall of text, just really frustrated so far with how little of Nix is documented properly and how untransparent the whole ecosystem in general is 🙃

15:40:03
@akiiino:matrix.orgakiiino *

Hey folks! I'm at my wits' end here, trying to use Nix to manage my python project in any capacity. I have two questions: a specific one and a general one:

  • specific: I have set up a basic mkPoetryEnv in shell.nix, but when I try to actually start the shell, all I get iserror: Missing suitable source/wheel file entry for tensorflow. Couldn't figure out what could cause this, so I'm stuck.
  • general: Is poetry2nix even the right tool for what I want to do? So my setup right now (without nix) is: I have a couple of repos I work in and edit; so I have a pyproject.toml that lists them as dependencies by local paths, plus some more dependencies just from pip. Some of these dependencies come from a private pypi server, which is also listed in pyproject.toml. Can poetry2nix handle this relatively simple usecase?
    -- complication 1: can I add some packages without including them in the pyproject.toml? e.g. I don't really want Jupyter to affect the dependency resolution process.
    -- complication 2: what if I also want to add some non-python packages to the environment (say, tmux)?

Sorry for the wall of text, just really frustrated so far with how little of Nix is documented properly and how untransparent the whole ecosystem in general is 🙃

15:45:29
@k900:0upti.meK900Not sure what to tell you about your tensorflow problem, but I can tell you that tensorflow packaging is horrible, even by python standards 15:51:09
@k900:0upti.meK900 Re: your general question - everything you described should be possible, but you probably want Jupyter to be a dev dependency in Poetry instead 15:51:54
@akiiino:matrix.orgakiiinoYeah, I figured. Tensorflow sucks in general, but I gotta stick with it for reasons beyond my control 🤷15:52:12
@k900:0upti.meK900Otherwise you'll mix two dependency trees and then Fun will happen 15:52:16
@k900:0upti.meK900I'm not saying you're wrong for using it or anything 15:52:30
@k900:0upti.meK900I actually kinda like the library 15:52:43
@k900:0upti.meK900It's just that Python tooling is extremely not qualified to do the things they want to do 15:53:05
@akiiino:matrix.orgakiiinoHmmm... How would using dev dependencies help? I might be wrong, please correct me, but I thought they were just something you could "turn off" easily, but when they do get installed, they are treated the same as any othed dependency15:55:27
@k900:0upti.meK900Help with what exactly? 15:55:47
@akiiino:matrix.orgakiiinoAh, I misread :) I retract my question15:56:38
@akiiino:matrix.orgakiiino Ok, even an empty pyproject with just tensorflow doesn't want to work. More than that, even just numpy breaks! with different errors though.
> ERROR: numpy-1.22.1-cp38-cp38-macosx_10_9_universal2.whl is not a supported wheel on this platform.
I'm on a mac — what other platform would it be supported on??
I guess I forgot an important question — is poetry2nix linux-only?
16:09:39
@k900:0upti.meK900Oh16:17:08
@k900:0upti.meK900Are you on M1? 16:17:12
@k900:0upti.meK900If yes, you might need a newer Python version, because pip in 3.8 doesn't know osx/aarch64 is a validntargrtn16:17:47
@k900:0upti.meK900* If yes, you might need a newer Python version, because pip in 3.8 doesn't know osx/aarch64 is a valid target16:17:53
@akiiino:matrix.orgakiiinoNope, Intel, and never had any problems with python before16:18:35
@k900:0upti.meK900It's possible you manually upgraded pip then16:19:35
@k900:0upti.meK900Either way try building your environment with 3.9 or even 3.1016:19:51
@k900:0upti.meK900It might work 16:19:54
@akiiino:matrix.orgakiiinoNope, 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
@k900:0upti.meK900 I believe 10.9 is the minimum version 16:22:37
29 Jan 2022
@rolandco:matrix.orgRoland Coeurjoly joined the room.15:00:01
@rolandco:matrix.orgRoland CoeurjolyHi 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 libc16:23:47

Show newer messages


Back to Room ListRoom Version: 6