PyAudio-Installationsfehler nach Aktualisierung auf Xcode 12

Sep 24 2020

Ich wurde auf Xcode 12 aktualisiert, aber beim Versuch, PyAudio zu installieren, wurde immer die folgende Fehlermeldung angezeigt: (Ich habe auch versucht, mit sudo mit und ohne venv zu installieren, was den gleichen Fehler wie diese verursachte ...)

  • Betriebssystem: macOS 10.15.6 (19G2021)
  • Python: 3.8
  • Xcode-Version: 12

Sammeln von Pyaudio Verwenden von zwischengespeichertem PyAudio-0.2.11.tar.gz (37 kB) Verwenden von Legacy 'setup.py install' für Pyaudio, da das Paket 'Wheel' nicht installiert ist. Gesammelte Pakete installieren: pyaudio Setup.py wird für pyaudio installiert ... Fehler FEHLER: Befehl mit Exit-Status 1 fehlgeschlagen: Befehl: / Users / userid / Desktop / Workspace / Projects / hello-world / env / bin / python3 -u -c 'import sys, setuptools, tokenize; sys.argv [0] = '"'" '/private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c0000gn/T/pip-install-qfayqnx7/pyaudio/setup.py' "'"'; file = '"'" '/ private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / T / pip-install-qfayqnx7 / pyaudio / setup.py' '' '; f = getattr (tokenize,' '' '' open ' "'"', open) ( Datei ); code = f.read (). replace ('' '' \ r \ n '' '', '' '' '\ n' '' ''); f.close (); exec (kompilieren (Code, Datei), '"'" 'exec' "'"')) 'install --record /private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c0000gn/T/pip-record-8ls2_tdo/install-record.txt --single-version-extern -managed --compile --install-headers /Users/userid/Desktop/Workspace/Projects/hello-world/env/include/site/python3.8/pyaudio cwd: / private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / / pip-install-qfayqnx7 / pyaudio / Vollständige Ausgabe (104 Zeilen): Ausführen von Installieren Ausführen von Build Ausführen von Build_py Erstellen von Build Erstellen von Build / lib.macosx-10.14.6-x86_64-3.8 Kopieren von src / pyaudio.py -> build / lib. macosx-10.14.6-x86_64-3.8 Ausführen der Erweiterung build_ext '_portaudio' zum Erstellen von build / temp.macosx-10.14.6-x86_64-3.8 Erstellen von build / temp.macosx-10.14.6-x86_64-3.8 / src xcrun -sdk macosx clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot / System / Library / Frameworks / System.framework / PrivateHeaders -iwithsysroot / Applications / Xcode.app/Contents/Developer/Library/Frameworks/Pyth on3.framework / Versions / 3.8 / Header -arch arm64 -arch x86_64 -DMACOSX = 1 -I / Benutzer / Benutzer-ID / Desktop / Arbeitsbereich / Projekte / Hallo-Welt / env / include -I / Anwendungen / Xcode.app / Inhalt / Entwickler / Bibliothek / Frameworks / Python3.framework / Versionen / 3.8 / include / python3.8 -c src / _portaudiomodule.c -o build / temp.macosx-10.14.6-x86_64-3.8 / src / _portaudiomodule.o In der enthaltenen Datei from src / _portaudiomodule.c: 27: In der Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64: In der Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:68: /Applications/Xcode.app/Contents/ Entwickler / Plattformen / MacOSX.Plattform / Entwickler / SDKs / MacOSX10.15.sdk / usr / include / sys / cdefs.h: 807: 2: Fehler: Nicht unterstützte Architektur #Fehler Nicht unterstützte Architektur ^ In Datei aus src / _portaudiomodule.c : 27: In der Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platfor ms / MacOSX.platform / Developer / SDKs / MacOSX10.15.sdk / usr / include / stdio.h: 64: In der Datei aus /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs /MacOSX10.15.sdk/usr/include/_stdio.h:71: In der Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/ include / _types.h: 27: In der Datei aus /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33 : /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: Fehler: Architektur nicht unterstützt # Fehlerarchitektur nicht unterstützt ^ In Datei enthalten von src / _portaudiomodule.c: 27: In Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ stdio.h: 64: In der Datei aus /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX .platform / Developer / SDKs / MacOSX10.15.sdk / usr / include / _stdio.h: 71: In der Datei enthalten aus /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10. 15.sdk / usr / include / _types.h: 27: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h : 55: 9: Fehler: unbekannter Typname '__int64_t' typedef __int64_t __darwin_blkcnt_t; / * Gesamtblöcke / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: Fehler: unbekannt Typname '__int32_t'; Meinten Sie '__int128_t'? typedef __int32_t __darwin_blksize_t; / bevorzugte Blockgröße / ^ Hinweis: '__int128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h: 57: 9: Fehler: unbekannter Typname '__int32_t'; Meinten Sie '__int128_t'? typedef __int32_t __darwin_dev_t; / dev_t / ^ Hinweis: '__int128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60: 9: Fehler: unbekannter Typname '__uint32_t'; Meinten Sie '__uint128_t'? typedef __uint32_t __darwin_gid_t; / [???] Prozess- und Gruppen-IDs / ^ Hinweis: '__uint128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ sys / _types.h: 61: 9: Fehler: unbekannter Typname '__uint32_t'; Meinten Sie '__uint128_t'? typedef __uint32_t __darwin_id_t; / [XSI] pid_t, uid_t oder gid_t * / ^ Hinweis: '__uint128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/inude /sys/_types.h:62:9: Fehler: unbekannter Typname '__uint64_t' typedef __uint64_t __darwin_ino64_t; / * [???] Wird für 64-Bit-Inodes verwendet/ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: Fehler: unbekannter Typname '__darwin_natural_t 'typedef __darwin_natural_t __darwin_mach_port_name_t; / Verwendet von mach / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: Fehler: unbekannt Typname '__uint16_t'; Meinten Sie '__uint128_t'? typedef __uint16_t __darwin_mode_t; / [???] Einige Dateiattribute / ^ Hinweis: '__uint128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys /_types.h:71:9: Fehler: unbekannter Typname '__int64_t' typedef __int64_t __darwin_off_t; / [???] Wird für Dateigrößen verwendet / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72 : 9: Fehler: unbekannter Typname '__int32_t'; Meinten Sie '__int128_t'? typedef __int32_t __darwin_pid_t; / [???] Prozess- und Gruppen-IDs / ^ Hinweis: '__int128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ sys / _types.h: 73: 9: Fehler: unbekannter Typname '__uint32_t'; Meinten Sie '__uint128_t'? typedef __uint32_t __darwin_sigset_t; / [???] Signal gesetzt / ^ Hinweis: '__uint128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ _types.h: 74: 9: Fehler: unbekannter Typname '__int32_t'; Meinten Sie '__int128_t'? typedef __int32_t __darwin_suseconds_t; / [???] Mikrosekunden / ^ Hinweis: '__int128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types .h: 75: 9: Fehler: unbekannter Typname '__uint32_t'; Meinten Sie '__uint128_t'? typedef __uint32_t __darwin_uid_t; / [???] Benutzer-IDs / ^ Hinweis: '__uint128_t' hier deklariert /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ _types.h: 76: 9: Fehler: unbekannter Typname '__uint32_t'; Meinten Sie '__uint128_t'? typedef __uint32_t __darwin_useconds_t; / [???] Mikrosekunden * / ^ Hinweis: '__uint128_t' hier deklariert In Datei aus src / _portaudiomodule.c: 27: In Datei aus /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/ Developer / SDKs / MacOSX10.15.sdk / usr / include / stdio.h: 64: In der Datei enthalten aus /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk /usr/include/_stdio.h:71: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: Fehler: unbekannter Typname '__uint32_t'; Meinten Sie '__uint128_t'? typedef __uint32_t __darwin_wctype_t; ^ Hinweis: '__uint128_t' hier deklariert In Datei aus src / _portaudiomodule.c: 27: In Datei aus /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk /usr/include/stdio.h:64: In der Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h: 75: In der Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31: / Applications / Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: Fehler: Architektur nicht unterstützt # Fehlerarchitektur nicht unterstützt ^ In Datei enthalten von src / _portaudiomodule.c: 27: In Datei enthalten von /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h: 64: In der Datei von /Applications/Xcode.app/Contents/Develope r / Platforms / MacOSX.platform / Developer / SDKs / MacOSX10.15.sdk / usr / include / _stdio.h: 75: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10 .15.sdk / usr / include / sys / _types / _va_list.h: 32: 9: Fehler: unbekannter Typname '__darwin_va_list' typedef __darwin_va_list va_list; ^ Schwerwiegender Fehler: Es wurden zu viele Fehler ausgegeben, und jetzt werden [-ferror-limit =] 20 Fehler generiert. Fehler: Befehl 'xcrun' mit Exit-Status 1 fehlgeschlagen --------------------------------------- - FEHLER: Befehl mit Exit-Status 1 fehlerhaft: / Benutzer / Benutzer-ID / Desktop / Arbeitsbereich / Projekte / Hallo-Welt / env / bin / python3 -u -c 'import sys, setuptools, tokenize; sys.argv [0] = '"'" '/private/var/folders/dg/ppgz73fs3ml5zs4mxqtw_z_c0000gn/T/pip-install-qfayqnx7/pyaudio/setup.py' "'"'; file = '"'" '/ private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / T / pip-install-qfayqnx7 / pyaudio / setup.py' '' '; f = getattr (tokenize,' '' '' open ' "'"', open) ( Datei ); code = f.read (). replace ('' '' \ r \ n '' '', '' '' '\ n' '' ''); f.close (); exec (kompilieren (Code, Datei , '' '' 'exec' '' '')) 'install --record / private / var / folders / dg / ppgz73fs3ml5zs4mxqtw_z_c0000gn / T / pip-record-8ls2_tdo /install-record.txt --Einzelversion-extern verwaltet --compile --install-headers /Users/userid/Desktop/Workspace/Projects/hello-world/env/include/site/python3.8/pyaudio Check die Protokolle für die vollständige Befehlsausgabe.

Kann jemand helfen? Vielen Dank!

Antworten

7 japaniel Oct 07 2020 at 06:00

Ich konnte dies umgehen, indem ich eine Umgebungsvariable exportierte

export ARCHFLAGS="-arch x86_64"