Does not install into a venv on Ubuntu 20.04
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 32/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Domaine
- build-system, operating-systems
Piste de recherche
Start with README.md and reproduce the pip install in an Ubuntu 20.04 Python 3.9 virtual environment. Check the documented packages against the available libsystemd-dev package and inspect the C compilation failure involving systemd/reader.c. Done means the documented dependencies and installation path work in that environment.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
The README.md says I can just apt install the headers. However, the only systemd header package available is libsystemd-dev. The others, like libsystemd-journal-dev and libsystemd-daemon-dev do not exist for 20.04, so I can't install them.
If I try to pip install into my venv anyway, I get a bunch of compilation errors (as I figured). They seem related to unicode. Anyway, here's the last lines showing the pip install crashing:
cython_utility:179:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
In file included from /home/jecompt/.pyenv/versions/3.9.5/include/python3.9/unicodeobject.h:1026,
from /home/jecompt/.pyenv/versions/3.9.5/include/python3.9/Python.h:97,
from systemd/reader.c:23:
/home/jecompt/.pyenv/versions/3.9.5/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
cython_utility:179:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
In file included from /home/jecompt/.pyenv/versions/3.9.5/include/python3.9/unicodeobject.h:1026,
from /home/jecompt/.pyenv/versions/3.9.5/include/python3.9/Python.h:97,
from systemd/reader.c:23:
/home/jecompt/.pyenv/versions/3.9.5/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> systemd
- Langage dominant
- C
- Étoiles
- 522
- Forks
- 79
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de systemd/python-systemd
-
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
systemd/python-systemd#177 · 1 commentaire · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 42/100
systemd/python-systemd#169 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
systemd/python-systemd#167 · 19 commentaires ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
systemd/python-systemd#152 · 1 commentaire · 13 réactions ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
systemd/python-systemd#146 · 2 commentaires ·
Toutes les issues de systemd/python-systemd
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
bradcypert/plum#53 ·
-
Component: GLib
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
-
Status: Opened
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
nextbsd/nextbsd-userland#285 ·