!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

326 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
2 Jul 2022
@sephi:matrix.orgsephiYou mean a problem with poetry? It seems no one has reported this issue which seems quite… big08:40:19
@sephi:matrix.orgsephi(Python packaging is such a mess :/ )08:43:12
@k900:0upti.meK900Maybe just add it as a git dependency instead?08:44:47
@k900:0upti.meK900Those definitely work08:44:51
@sephi:matrix.orgsephi (I’m just trying to install wagtail with poetry, but wagtail depends on an old beautifulsoup4 version that depends on a use_2to3 setuptools option, which is not available in setuptools>58, but poetry seems to force the use of setuptools 62 so I forked the wagtail repository to relax the dependency to beautifulsoup4, and I can’t just use a git dependency for my repository because it needs compiled files, which are excluded from the git repository) 08:46:59
@sephi:matrix.orgsephiAnyway, I ended up removing all the .gitignore files and committed the compiled assets to the repository. I’m not proud of myself, but it should work ^^08:47:33
4 Jul 2022
@rrrrrok:matrix.orgrrrrrok joined the room.15:34:09
@rrrrrok:matrix.orgrrrrrok

Hi all, I'm trying to install a package that depends on the cryptography package and getting this error:

error: hash mismatch in fixed-output derivation '/nix/store/llmpxpnnnmiqg889bqqdxh21m84vczi4-cryptography-36.0.2-vendor.tar.gz.drv':
         specified: sha256-kozYXkqt1Wpqyo9GYCwN08J+zV92ZWFJY/f+rulxmeQ=
            got:    sha256-6C4N445h4Xf2nCc9rJWpSZaNPilR9GfgbmKvNlSIFqg=

I see here that a number of modifications are applied for this package already, so maybe it's just a matter of them being outdated?

15:37:29
@rrrrrok:matrix.orgrrrrrok I can't quite tell if this is something that I should just try to override somehow or if it needs to be fixed in poetry2nix 15:48:01
5 Jul 2022
@dminuoso:matrix.orgdminuoso joined the room.07:36:14
@dminuoso:matrix.orgdminuoso Hi. Using current nixpkgs at nixos-22.05, I have a completely trivial call to mkPoetryApplication { projectDir = ./.; }, but it errors out with https://gist.github.com/dminuoso/7d9699a95e8c1cb0dafdd733d86bb1bd 07:37:22
@dminuoso:matrix.orgdminuosoI am a bit baffled as to why it cant find --ldap_r07:37:47
@dminuoso:matrix.orgdminuosoAfter some trace debugging I have asserted that python-ldap receives openldap in its buildInputs, so there's that at least.08:07:59
6 Jul 2022
@linus:schreibt.jetztLinux Hackerman
In reply to @dminuoso:matrix.org
I am a bit baffled as to why it cant find --ldap_r
Hm, maybe try NIX_DEBUG=1 to get lots of output from the GCC wrapper?
06:54:47
@thoth101010:matrix.orgthoth joined the room.06:55:29
@thoth101010:matrix.orgthoth

Hello.
I have an issue with the python-magic package (version 0.4.37)

substitute(): ERROR: file 'magic/loader.py' does not exist

It seems that the patch described in poetry2nix doesn’t work : https://github.com/nix-community/poetry2nix/blob/68da2697e1cf1376f8b6dc6121e1b5df08edcab8/overrides/default.nix#L1767-L1770

Do you know what I could do and if I should open an issue ?

06:58:17
@thoth101010:matrix.orgthoth *

Hello.
I have an issue with the python-magic package (version 0.4.37)

substitute(): ERROR: file 'magic/loader.py' does not exist

It seems that the patch described in poetry2nix doesn’t work : https://github.com/nix-community/poetry2nix/blob/68da2697e1cf1376f8b6dc6121e1b5df08edcab8/overrides/default.nix#L1767-L1770

It is strange : the magic/loader.py file exists in the python-magic repository 🤔

Do you know what I could do and if I should open an issue ?

06:59:57
@dminuoso:matrix.orgdminuosolinus: Thanks. After a good nights sleep and a helpful rubber duck I realized that the error was quite spot on.. and exactly the problem.12:55:22
@dminuoso:matrix.orgdminuoso Having openldap in buildInputs does not magically mean an ldap_r shared object can be found there. That derivation must actually produce that file too... 12:55:55
@dminuoso:matrix.orgdminuosoIn nixos-22.05 openldap was upgraded to 2.6, which no longer brings ldap_r.so12:56:15
@linus:schreibt.jetztLinux Hackermanoh nice haha13:50:50
7 Jul 2022
@thoth101010:matrix.orgthoth
In reply to @thoth101010:matrix.org

Hello.
I have an issue with the python-magic package (version 0.4.37)

substitute(): ERROR: file 'magic/loader.py' does not exist

It seems that the patch described in poetry2nix doesn’t work : https://github.com/nix-community/poetry2nix/blob/68da2697e1cf1376f8b6dc6121e1b5df08edcab8/overrides/default.nix#L1767-L1770

It is strange : the magic/loader.py file exists in the python-magic repository 🤔

Do you know what I could do and if I should open an issue ?

I found out that the file it edits exists in develop but not in the last stable version of python-magic.
How can I use poetry2nix with an old version of override ? I should rewrite it myself I think ?

Isn’t it counterintuitive to have a replacement not suitable to the pip version ?

09:18:35
@thoth101010:matrix.orgthoth
In reply to @thoth101010:matrix.org

Hello.
I have an issue with the python-magic package (version 0.4.37)

substitute(): ERROR: file 'magic/loader.py' does not exist

It seems that the patch described in poetry2nix doesn’t work : https://github.com/nix-community/poetry2nix/blob/68da2697e1cf1376f8b6dc6121e1b5df08edcab8/overrides/default.nix#L1767-L1770

It is strange : the magic/loader.py file exists in the python-magic repository 🤔

Do you know what I could do and if I should open an issue ?

*

I found out that the file it edits exists in develop but not in the last stable version of python-magic.
How can I use poetry2nix with an old version of override ? I guess that I should write the override myself ?should rewrite it myself I think ?

Isn’t it counterintuitive to have a replacement not suitable to the pip version ?

09:19:48
@thoth101010:matrix.orgthoth *

I found out that the file it edits exists in develop but not in the last stable version of python-magic.
How can I use poetry2nix with an old version of override ? I guess that I should write the override myself ?should rewrite it myself I think ?

Isn’t it counterintuitive to have a replacement not suitable to the library version ?

09:21:02

There are no newer messages yet.


Back to Room ListRoom Version: 6