So, I’m attempting to make a Flatpak of the Amulet Minecraft Map Editor. I feed my requirements.txt to flatpak-pip-generator, save the output (in YAML) to amulet.yml, and run this:
========================================================================
Building module python3-pre-commit in /home/evilsupahfly/Downloads/Amulet/.flatpak-builder/build/python3-pre-commit-1
========================================================================
Running: pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "pre-commit>=1.11.1" --report=pip_report.json --no-build-isolation
Using pip 24.1.2 from /usr/lib/python3.11/site-packages/pip (python 3.11)
Looking in links: file:///run/build/python3-pre-commit
Processing ./pre_commit-3.8.0-py2.py3-none-any.whl
Processing ./cfgv-3.4.0-py2.py3-none-any.whl (from pre-commit>=1.11.1)
Processing ./identify-2.6.0-py2.py3-none-any.whl (from pre-commit>=1.11.1)
Processing ./nodeenv-1.9.1-py2.py3-none-any.whl (from pre-commit>=1.11.1)
INFO: pip is looking at multiple versions of pre-commit to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement pyyaml>=5.1 (from pre-commit) (from versions: none)
ERROR: No matching distribution found for pyyaml>=5.1
Error: module python3-pre-commit: Child process exited with code 1
Can anybody tell me why PyYAML hates me?
Edit: I wasn’t spamming. I was asking for help.
B
bbhtt
#2
Seems like an issue with the order. It’s probably trying to install pre-commit before installing pyyaml, but the former depends on the latter.
E
EvilSupahFly
#3
I’ll switch up the order then and see what happens.
lxml isn’t pyyaml but I see from your example how they’ve included the Python version as part of the filename, which I didn’t realize. Or just didn’t see.
I would think pastebin would be exempt from that rule, given how instrumental it is in keeping posts looking clean and tidy, but I’ll be mindful of this going forward.