diff-pdf-visually
diff-pdf-visually copied to clipboard
installation with pipx impossible
In your documentation you suggest to install via pip3 install --user diff-pdf-visually.
I dont have ubuntu but suse, but anyway,
Direct install via pip3 is no longer possible since python 3.11 but I think, this is not specific for suse.
The message is
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try
zypper install python313-xyz, where xyz is the package
you are trying to install.
If you wish to install a non-rpm packaged Python package,
create a virtual environment using python3.13 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-rpm packaged Python application,
it may be easiest to use `pipx install xyz`, which will manage a
virtual environment for you. Install pipx via `zypper install python313-pipx` .
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Other applications I successfully installed with pipx as suggested, but trying
pipx install diff-pdf-visually
yields
No apps associated with package diff-pdf-visually or its dependencies. If you are attempting to install a library, pipx should not be used. Consider using pip or a
similar tool instead.
This is very strange as diff-pdf-visually is indeed an app.
Now I found that also pip3 does not work correctly: I use a conda environment for the moment.
Then pip3 install diff-pdf-visually proceeds without error, but no executable is created.
I think, this is the same problem as the above one.
Thank you for reporting!
Sorry for the delay. I played with the build settings, and now it seems to work for me. Does it work for you?
(It seems the underlying reason was I was using a buggy version of hatch(ling).)
I believe I've encountered same problem. My pretty stupid reproducer is
docker run -ti ubuntu /bin/bash
apt update -y && DEBIAN_FRONTEND=noninteractive apt install -y python3-pip imagemagick poppler-utils && pip3 install --break-system-packages diff-pdf-visually
Which results in
...
Running hooks in /etc/ca-certificates/update.d...
done.
ERROR: Could not find a version that satisfies the requirement diff-pdf-visually (from versions: none)
ERROR: No matching distribution found for diff-pdf-visually