Does not install into a venv on Ubuntu 20.04
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 32/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Ambito
- build-system, operating-systems
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- C
- Stelle
- 522
- Fork
- 79
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di systemd/python-systemd
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
systemd/python-systemd#177 · 1 commento · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
systemd/python-systemd#169 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
systemd/python-systemd#167 · 19 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
systemd/python-systemd#152 · 1 commento · 13 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
systemd/python-systemd#146 · 2 commenti ·
Tutte le issue di systemd/python-systemd
Issue simili
-
Status: Waiting triage Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
nanoframework/Home#1857 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
libsdl-org/SDL#16372 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
corazawaf/coraza-nginx#140 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100