PIP installing with /tmp mounted noexec
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- infrastructure
Rechercherichtung
Start by locating the module's pip installation entry point and how install options are exposed. Reproduce the failure with /tmp mounted noexec, then investigate passing pip's --build option so builds use an executable location. Done means the affected package installs successfully under this mount configuration and existing pip behavior remains intact.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I have found that certain PIP packages won't mount if the /tmp directory is mounted with the noexec mount option.
Example:
1485888563,,ui,message, default: Error: /Stage[main]/Role::Packer::Orchestration/Python::Pip[ansible]/Exec[pip_install_ansible]/returns: change from notrun to 0 failed: pip wheel --help > /dev/null 2>&1 && { pip wheel --version > /dev/null 2>&1 || wheel_support_flag='--no-use-wheel'; } ; { pip --log /tmp/pip.log install $wheel_support_flag ansible==1.9.4 || pip --log /tmp/pip.log install ansible==1.9.4 ;} returned 1 instead of one of [0]
...
/Stage[main]/Role::Packer::Orchestration/Python::Pip[ansible]/Exec[pip_install_ansible]/returns: Command "/usr/bin/python -u -c "import setuptools%!(PACKER_COMMA) tokenize;__file__='/tmp/pip-build-KGpbhZ/pycrypto/setup.py';f=getattr(tokenize%!(PACKER_COMMA) 'open'%!(PACKER_COMMA) open)(__file__);code=f.read().replace('\r\n'%!(PACKER_COMMA) '\n');f.close();exec(compile(code%!(PACKER_COMMA) __file__%!(PACKER_COMMA) 'exec'))" install --record /tmp/pip-ENqJTX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-KGpbhZ/pycrypto/
It looks like we could make this work by adding a feature to access pip install --build see doco.
- Vorherrschende Sprache
- Ruby
- Sterne
- 196
- Forks
- 371
- Ø Merge
- 5 Std. 54 Min.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus voxpupuli/puppet-python
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 67/100
voxpupuli/puppet-python#759 ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
voxpupuli/puppet-python#743 · 1 Kommentar ·
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
voxpupuli/puppet-python#721 · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
voxpupuli/puppet-python#711 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 52/100
voxpupuli/puppet-python#673 · 1 Kommentar ·
Alle Issues in voxpupuli/puppet-python
Ähnliche Issues
-
Missing zh-CN translation: components/common/CommunitySolution.tsx:communitySolution.authorsSolutionOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
openstreetmap/openstreetmap-website#7554 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
bensheldon/good_job#1904 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
riscv/riscv-unified-db#2785 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Limit which neighbourhoods a site admin can changeEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offensecurity
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
geeksforsocialchange/PlaceCal#3838 ·
Maintainer antworten meist innerhalb von 1 Tag