Skip to content

[Documentation Bug] Install Instructions don't work #448

@maltfield

Description

@maltfield

This ticket is a bug report in the documentation of the rinohtype module on pypi.

Installation is trivial:

pip install rinohtype

...

rinoh CHANGES.rst

Unfortunatley, installation is obviously not so trivial, as attempting to follow the above documentation produces an error.

Problem

The following execution uses docker to consistantly reproduce the error in Debian 12

sudo apt-get install docker.io
sudo bash -c 'gpasswd -a "${SUDO_USER}" docker'
su - `whoami`

docker run --rm -it --entrypoint /bin/bash debian:bookworm-slim

apt update
apt install python3 python3-sphinx python3-pip

pip install rinohtype
rinoh CHANGES.rst

Example

Below is an example exeuction of the above commands

user@disp3666:~$ sudo apt-get install docker.io
...
user@disp3666:~$ 

user@disp3666:~$ sudo bash -c 'gpasswd -a "${SUDO_USER}" docker'
Adding user user to group docker
user@disp3666:~$ 

user@disp3666:~$ su - `whoami`
user@disp3666:~$ 

user@disp3666:~$ docker run --rm -it --entrypoint /bin/bash debian:bookworm-slim
Unable to find image 'debian:bookworm-slim' locally
bookworm-slim: Pulling from library/debian
5c32499ab806: Pull complete 
Digest: sha256:7e490910eea2861b9664577a96b54ce68ea3e02ce7f51d89cb0103a6f9c386e0
Status: Downloaded newer image for debian:bookworm-slim
root@b3f9a2a1eadb:/# 

root@b3f9a2a1eadb:/# apt update
...
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8791 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [6924 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [281 kB]
Fetched 9333 kB in 14s (644 kB/s)                                              
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@b3f9a2a1eadb:/# 

root@b3f9a2a1eadb:/# apt install python3 python3-sphinx python3-pip
...
0 upgraded, 206 newly installed, 0 to remove and 0 not upgraded.
Need to get 148 MB of archives.
After this operation, 599 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
root@b3f9a2a1eadb:/# 

root@b3f9a2a1eadb:/# pip install rinohtype
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.11/README.venv for more information.

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.
root@b3f9a2a1eadb:/# 

root@b3f9a2a1eadb:/# rinoh CHANGES.rst
bash: rinoh: command not found
root@b3f9a2a1eadb:/# 

Solution

The documentation should be updated such that a user following it can install and use rinoh, without erorrs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions