Title: libsystemd-dev needed also for installation via pip · Issue #138 · systemd/python-systemd · GitHub
Open Graph Title: libsystemd-dev needed also for installation via pip · Issue #138 · systemd/python-systemd
X Title: libsystemd-dev needed also for installation via pip · Issue #138 · systemd/python-systemd
Description: Installing this package with: pip install systemd-python On a Debian oldstable (Bullseye), I got an error message very similar to the ones reported in #47 and #97: pip install systemd-python Collecting systemd-python Downloading systemd-...
Open Graph Description: Installing this package with: pip install systemd-python On a Debian oldstable (Bullseye), I got an error message very similar to the ones reported in #47 and #97: pip install systemd-python Collec...
X Description: Installing this package with: pip install systemd-python On a Debian oldstable (Bullseye), I got an error message very similar to the ones reported in #47 and #97: pip install systemd-python Collec...
Opengraph URL: https://github.com/systemd/python-systemd/issues/138
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"libsystemd-dev needed also for installation via pip","articleBody":"Installing this package with:\r\n\r\n`pip install systemd-python`\r\n\r\nOn a Debian oldstable (Bullseye), I got an error message very similar to the ones reported in #47 and #97:\r\n\r\n```\r\npip install systemd-python\r\nCollecting systemd-python\r\n Downloading systemd-python-235.tar.gz (61 kB)\r\n |████████████████████████████████| 61 kB 83 kB/s\r\n ERROR: Command errored out with exit status 1:\r\n command: /opt/measurement_system-venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_605170e387494e1a9bdc2c7ba6ddef4a/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_605170e387494e1a9bdc2c7ba6ddef4a/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-pip-egg-info-zqy_tu5b\r\n cwd: /tmp/pip-install-3lp1v0wl/systemd-python_605170e387494e1a9bdc2c7ba6ddef4a/\r\n Complete output (12 lines):\r\n Cannot find libsystemd or libsystemd-journal:\r\n\r\n Package libsystemd was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd' found\r\n\r\n Package libsystemd-journal was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd-journal.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd-journal' found\r\n\r\n ----------------------------------------\r\nWARNING: Discarding https://files.pythonhosted.org/packages/10/9e/ab4458e00367223bda2dd7ccf0849a72235ee3e29b36dce732685d9b7ad9/systemd-python-235.tar.gz#sha256=4e57f39797fd5d9e2d22b8806a252d7c0106c936039d1e71c8c6b8008e695c0a (from https://pypi.org/simple/systemd-python/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\r\n Downloading systemd-python-234.tar.gz (53 kB)\r\n |████████████████████████████████| 53 kB 496 kB/s\r\n ERROR: Command errored out with exit status 1:\r\n command: /opt/measurement_system-venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_fce97db8c3184d04b9266626a33ab67b/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_fce97db8c3184d04b9266626a33ab67b/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-pip-egg-info-2hsisnk0\r\n cwd: /tmp/pip-install-3lp1v0wl/systemd-python_fce97db8c3184d04b9266626a33ab67b/\r\n Complete output (12 lines):\r\n Cannot find libsystemd or libsystemd-journal:\r\n\r\n Package libsystemd was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd' found\r\n\r\n Package libsystemd-journal was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd-journal.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd-journal' found\r\n\r\n ----------------------------------------\r\nWARNING: Discarding https://files.pythonhosted.org/packages/e8/a8/00ba0f605837a8f69523e6c3a4fb14675a6430c163f836540129c50b3aef/systemd-python-234.tar.gz#sha256=fd0e44bf70eadae45aadc292cb0a7eb5b0b6372cd1b391228047d33895db83e7 (from https://pypi.org/simple/systemd-python/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\r\n Downloading systemd-python-233.tar.gz (49 kB)\r\n |████████████████████████████████| 49 kB 1.6 MB/s\r\n ERROR: Command errored out with exit status 1:\r\n command: /opt/measurement_system-venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_bb46b5166fe1470496a4586b7b1b3884/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_bb46b5166fe1470496a4586b7b1b3884/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-pip-egg-info-95vgxi6u\r\n cwd: /tmp/pip-install-3lp1v0wl/systemd-python_bb46b5166fe1470496a4586b7b1b3884/\r\n Complete output (12 lines):\r\n Cannot find libsystemd or libsystemd-journal:\r\n\r\n Package libsystemd was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd' found\r\n\r\n Package libsystemd-journal was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd-journal.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd-journal' found\r\n\r\n ----------------------------------------\r\nWARNING: Discarding https://files.pythonhosted.org/packages/10/89/d66ae73bdbc2614e4f2e90ddf9ef80d22c28f3cd70071345c3640465c14c/systemd-python-233.tar.gz#sha256=06a3768b744884565d7961b44f4a51d164765bc59692f0f85ea6f11330a17da4 (from https://pypi.org/simple/systemd-python/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\r\n Downloading systemd-python-232.tar.gz (49 kB)\r\n |████████████████████████████████| 49 kB 1.4 MB/s\r\n ERROR: Command errored out with exit status 1:\r\n command: /opt/measurement_system-venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_f10a8673949f4842a0bb53f7ea5fe779/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-3lp1v0wl/systemd-python_f10a8673949f4842a0bb53f7ea5fe779/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-pip-egg-info-oql0295y\r\n cwd: /tmp/pip-install-3lp1v0wl/systemd-python_f10a8673949f4842a0bb53f7ea5fe779/\r\n Complete output (12 lines):\r\n Cannot find libsystemd or libsystemd-journal:\r\n\r\n Package libsystemd was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd' found\r\n\r\n Package libsystemd-journal was not found in the pkg-config search path.\r\n Perhaps you should add the directory containing `libsystemd-journal.pc'\r\n to the PKG_CONFIG_PATH environment variable\r\n No package 'libsystemd-journal' found\r\n\r\n ----------------------------------------\r\nWARNING: Discarding https://files.pythonhosted.org/packages/87/a3/e73a8373d40b05a75bb34fdccae606ab4dc0c0743535289904f15eb624f5/systemd-python-232.tar.gz#sha256=e5d0fdbdf50e7d67c77e08bc7986ef41d98aef222896bc033c27477893c3d4ba (from https://pypi.org/simple/systemd-python/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\r\nERROR: Could not find a version that satisfies the requirement systemd-python\r\nERROR: No matching distribution found for systemd-python\r\n```\r\n\r\nInstalling libsystemd-dev with `apt install libsystemd-dev` allowed me to install the package.\r\n\r\nI would mention this also in the \"Installation\" section of the Readme (that is the section I read when I tried to install via pip...) and not only in the \"To build from source\" one.\r\n\r\n\r\n","author":{"url":"https://github.com/ilario","@type":"Person","name":"ilario"},"datePublished":"2024-12-17T11:10:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/138/python-systemd/issues/138"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:279c6c9d-1d82-d893-a828-8eb9d9123ee9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A374:7E3D2:1C3C6BE:26C32A8:6A4F3B28 |
| html-safe-nonce | 2bcc6ff07fc85befc6a945613dcf9ee0251feb3888dd70aeb29ed894375ce0a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzc0OjdFM0QyOjFDM0M2QkU6MjZDMzJBODo2QTRGM0IyOCIsInZpc2l0b3JfaWQiOiI0MDIyODYxMDQ0OTA0ODM1ODgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a35721a12f4a50c64c757095528295c3c494b56776b982ffe0f3706ea7736ae4 |
| hovercard-subject-tag | issue:2744639519 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/systemd/python-systemd/138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/543c7101f48eef0faabaa2fb0c5e78006231ae8802d8888120686355b3061824/systemd/python-systemd/issues/138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/543c7101f48eef0faabaa2fb0c5e78006231ae8802d8888120686355b3061824/systemd/python-systemd/issues/138 |
| og:image:alt | Installing this package with: pip install systemd-python On a Debian oldstable (Bullseye), I got an error message very similar to the ones reported in #47 and #97: pip install systemd-python Collec... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilario |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/systemd/python-systemd git https://github.com/systemd/python-systemd.git |
| octolytics-dimension-user_id | 1918868 |
| octolytics-dimension-user_login | systemd |
| octolytics-dimension-repository_id | 38590109 |
| octolytics-dimension-repository_nwo | systemd/python-systemd |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38590109 |
| octolytics-dimension-repository_network_root_nwo | systemd/python-systemd |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width