!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

331 Members
https://github.com/nix-community/poetry2nix63 Servers

Load older messages


SenderMessageTime
1 Apr 2022
@dincio:matrix.orgdincio Hello everyone. I was trying to compile a project and the derivation failed when encountering the atomics pip package (https://pypi.org/project/atomics/) with this error:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 12:46:14
@dincio:matrix.orgdincio * Hello everyone. I was trying to compile a project and the derivation failed when encountering the atomics pip package (https://pypi.org/project/atomics/) with this error: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 12:46:33
@k900:0upti.meK900Scroll up 12:53:33
@dincio:matrix.orgdincio * Hello everyone. I was trying to compile a project and the derivation failed when encountering the atomics pip package (https://pypi.org/project/atomics/) with this error: "ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output." 12:53:34
@k900:0upti.meK900There's probably a more useful error there 12:53:39
@dincio:matrix.orgdinciook12:53:49
@dincio:matrix.orgdincioI found this12:55:12
@dincio:matrix.orgdincioRunning command python setup.py egg_info Traceback (most recent call last): File "<string>", line 1, in <module> File "/data/data/com.termux.nix/files/usr/tmp/nix-build-python3.9-atomics-1.0.2.drv-0/pip-req-build-44p_cncj/setup.py", line 6, in <module> import git ModuleNotFoundError: No module named 'git'12:55:22
@dincio:matrix.orgdincio * Running command python setup.py egg_info Traceback (most recent call last):File "<string>", line 1, in <module> File "/data/data/com.termux.nix/files/usr/tmp/nix-build-python3.9-atomics-1.0.2.drv-0/pip-req-build-44p_cncj/setup.py", line 6, in <module> import git ModuleNotFoundError: No module named 'git' 12:55:33
@k900:0upti.meK900Looks like it's missing some dependency 12:55:41
@k900:0upti.meK900You can fix that with an override 12:55:45
@k900:0upti.meK900But it might be a good idea to report this upstream too 12:55:54
@dincio:matrix.orgdincioOk, you mean report upstream using an issue?12:56:11
@k900:0upti.meK900Yes12:57:27
@dincio:matrix.orgdincioOk, thanks for the help12:57:44
2 Apr 2022
@dincio:matrix.orgdincioI've encountered another problem similar to the first one (running nix-build with the suggested configuration). This time, the building of a package called `midi2audio` fails with this error: output = open(markdown_filename).read() FileNotFoundError: [Errno 2] No such file or directory: '/data/data/com.termux.nix/files/usr/tmp/nix-build-python3.9-midi2audio-0.1.1.drv-1/pip-req-build-fbu9mj_8/README.md'14:55:54
@dincio:matrix.orgdincio* I've encountered another problem similar to the first one (running nix-build with the suggested configuration). This time, the building of a package called `midi2audio` fails with this error: ``` output = open(markdown_filename).read() FileNotFoundError: [Errno 2] No such file or directory: '/data/data/com.termux.nix/files/usr/tmp/nix-build-python3.9-midi2audio-0.1.1.drv-1/pip-req-build-fbu9mj_8/README.md' ```14:56:11
@dincio:matrix.orgdincio* I've encountered another problem similar to the first one (running nix-build with the suggested configuration). This time, the building of a package called `midi2audio` fails with this error: ~~~ output = open(markdown_filename).read() FileNotFoundError: [Errno 2] No such file or directory: '/data/data/com.termux.nix/files/usr/tmp/nix-build-python3.9-midi2audio-0.1.1.drv-1/pip-req-build-fbu9mj_8/README.md' ~~~14:56:23
@dincio:matrix.orgdincio* I've encountered another problem similar to the first one (running nix-build with the suggested configuration). This time, the building of a package called `midi2audio` fails with this error: output = open(markdown_filename).read() FileNotFoundError: [Errno 2] No such file or directory: '/data/data/com.termux.nix/files/usr/tmp/nix-build-python3.9-midi2audio-0.1.1.drv-1/pip-req-build-fbu9mj_8/README.md'14:56:36
@k900:0upti.meK900That looks like another upstream issue15:00:42
@mou_bugtracker:matrix.orgmou

Source distribution does not include file referenced from setup.py

❯ tar -ztf midi2audio-0.1.1.tar.gz
midi2audio-0.1.1/
midi2audio-0.1.1/install_fluidsynth_with_soundfonts_osx.sh
midi2audio-0.1.1/midi2audio.egg-info/
midi2audio-0.1.1/midi2audio.egg-info/dependency_links.txt
midi2audio-0.1.1/midi2audio.egg-info/entry_points.txt
midi2audio-0.1.1/midi2audio.egg-info/not-zip-safe
midi2audio-0.1.1/midi2audio.egg-info/PKG-INFO
midi2audio-0.1.1/midi2audio.egg-info/SOURCES.txt
midi2audio-0.1.1/midi2audio.egg-info/top_level.txt
midi2audio-0.1.1/midi2audio.py
midi2audio-0.1.1/PKG-INFO
midi2audio-0.1.1/setup.cfg
midi2audio-0.1.1/setup.py

https://github.com/bzamecnik/midi2audio/blob/2174329842e7c5fc777d900d8222eb6382adea33/setup.py#L13

15:02:03
@k900:0upti.meK900That would definitely be a problem 15:10:09
@dincio:matrix.orgdincio
In reply to @mou_bugtracker:matrix.org

Source distribution does not include file referenced from setup.py

❯ tar -ztf midi2audio-0.1.1.tar.gz
midi2audio-0.1.1/
midi2audio-0.1.1/install_fluidsynth_with_soundfonts_osx.sh
midi2audio-0.1.1/midi2audio.egg-info/
midi2audio-0.1.1/midi2audio.egg-info/dependency_links.txt
midi2audio-0.1.1/midi2audio.egg-info/entry_points.txt
midi2audio-0.1.1/midi2audio.egg-info/not-zip-safe
midi2audio-0.1.1/midi2audio.egg-info/PKG-INFO
midi2audio-0.1.1/midi2audio.egg-info/SOURCES.txt
midi2audio-0.1.1/midi2audio.egg-info/top_level.txt
midi2audio-0.1.1/midi2audio.py
midi2audio-0.1.1/PKG-INFO
midi2audio-0.1.1/setup.cfg
midi2audio-0.1.1/setup.py

https://github.com/bzamecnik/midi2audio/blob/2174329842e7c5fc777d900d8222eb6382adea33/setup.py#L13

Ok, thanks I'll investigate this and see if I can fix it (really don't know much about source distributions and wheels)
15:26:08
@fkarg:matrix.orgfkarg joined the room.20:32:01
@fkarg:matrix.orgfkarg set a profile picture.20:33:02
@fkarg:matrix.orgfkarg

Hello everyone. I'm trying for a few hours now to build a jupyterWith environment, and it currently seems to fail in building a poetry2nix-based python package of jupyter-client:

/build/jupyter_client-7.2.1/dist /build/jupyter_client-7.2.1
Processing ./jupyter_client-7.2.1-py3-none-any.whl
Requirement already satisfied: tornado>=6.0 in /nix/store/vl2sm5n2xi61n90fgwwd4lan5m9yw5fv-python3.9-tornado-6.1/lib/python3.9/site-packages (from jupyter-client==7.2.1) (6.1)
Requirement already satisfied: pyzmq>=22.3 in /nix/store/2kzf237vchr5cbz9qdn1drj680njwbps-python3.9-pyzmq-22.3.0/lib/python3.9/site-packages (from jupyter-client==7.2.1) (22.3.0)
Requirement already satisfied: python-dateutil>=2.8.2 in /nix/store/rrqaxg7v4zxw0gspdcr0gvyl8nwqj0wn-python3.9-python-dateutil-2.8.2/lib/python3.9/site-packages (from jupyter-client==7.2.1) (2.8.2)
ERROR: Could not find a version that satisfies the requirement entrypoints (from jupyter-client) (from versions: none)
ERROR: No matching distribution found for entrypoints
builder for '/nix/store/1m9gc9wmxrg61xdfmnjdw8xqwl1xk06g-python3.9-jupyter-client-7.2.1.drv' failed with exit code 1

Anyone have an idea what I can do now? I tried a few things but wasn't successful, no idea how to continue approaching this. Any suggestions appreciated :)

20:42:42
@mou_bugtracker:matrix.orgmouWhere i can find source of jupyter-client to look into? Or maybe your intermediate work could be posted somehow, so i can try debug or play with?21:10:31
@fkarg:matrix.orgfkarg It should be as simple as having a new poetry package with ipykernel==6.11 as direct dependency (which has jupyter-client 7.2.1 as dependency), but I'm getting a error: value is null while a set was expected that I just can't seem to figure out 21:51:00
@fkarg:matrix.orgfkargHere's my attempt: https://github.com/fkarg/poetry2nix-debugging-testing21:55:40
4 Apr 2022
@mou_bugtracker:matrix.orgmou
In reply to @fkarg:matrix.org
It should be as simple as having a new poetry package with ipykernel==6.11 as direct dependency (which has jupyter-client 7.2.1 as dependency), but I'm getting a error: value is null while a set was expected that I just can't seem to figure out

First of all, i'm only learning nix. I focused my attenttion on cffi package. and after poetry lock i got next related changes in poetry.lock file

 [package.dependencies]
-cffi = "*"
-py = "*"
+cffi = {version = "*", markers = "implementation_name == \"pypy\""}
+py = {version = "*", markers = "implementation_name == \"pypy\""}

After this building of your tree start failing on ipykernel.

I really do not know why poetry does this changes. But looking at poetr2nix code i can say - in overrides, there is logic what cffi does not existst beyond pypy implementation

07:25:11

Show newer messages


Back to Room ListRoom Version: 6