[MacPorts] #65177: python27-bootstrap fails to build for x86_64 with gcc11 on 10.6.8: ImportError: No module named pyexpat

MacPorts noreply at macports.org
Sat May 14 10:51:55 UTC 2022


#65177: python27-bootstrap fails to build for x86_64 with gcc11 on 10.6.8:
ImportError: No module named pyexpat
---------------------------------+--------------------------------
 Reporter:  barracuda156         |      Owner:  jmroot
     Type:  defect               |     Status:  assigned
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.7.2
 Keywords:  x86_64, snowleopard  |       Port:  python27-bootstrap
---------------------------------+--------------------------------
 {{{
 /opt/x86_64/bin/gcc-mp-11 -L/opt/x86_64/libexec/python27-bootstrap/lib
 -Wl,-headerpad_max_install_names -arch x86_64 -o "Python Launcher"
 FileSettings.o MyAppDelegate.o MyDocument.o PreferencesWindowController.o
 doscript.o main.o -framework AppKit -framework Carbon
 ld: warning: directory not found for option
 '-L/opt/x86_64/libexec/python27-bootstrap/lib'
 rm -fr "Python Launcher.app"
 DYLD_FRAMEWORK_PATH=/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18
 ../../python.exe ./../../Lib/plat-mac/bundlebuilder.py \
                 --builddir=. \
                 --name="Python Launcher" \
                 --executable="Python Launcher" \
                 --iconfile=./../Icons/PythonLauncher.icns \
                 --bundle-id=org.python.PythonLauncher \
                 --resource=./../Icons/PythonSource.icns \
                 --resource=./../Icons/PythonCompiled.icns \
                 --resource=./English.lproj \
                 --resource=./factorySettings.plist \
                 --plist Info.plist \
                 build
 Traceback (most recent call last):
   File "./../../Lib/plat-mac/bundlebuilder.py", line 949, in <module>
     main()
   File "./../../Lib/plat-mac/bundlebuilder.py", line 897, in main
     builder.plist = Plist.fromFile(arg)
   File
 "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18/Lib/plistlib.py",
 line 345, in fromFile
     rootObject = readPlist(pathOrFile)
   File
 "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18/Lib/plistlib.py",
 line 78, in readPlist
     rootObject = p.parse(pathOrFile)
   File
 "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18/Lib/plistlib.py",
 line 401, in parse
     from xml.parsers.expat import ParserCreate
   File
 "/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18/Lib/xml/parsers/expat.py",
 line 4, in <module>
     from pyexpat import *
 ImportError: No module named pyexpat
 make[2]: *** [Python Launcher.app] Error 1
 make[2]: Leaving directory
 `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18/Mac/PythonLauncher'
 make[1]: *** [install_PythonLauncher] Error 2
 make[1]: Leaving directory
 `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18/Mac'
 make: *** [frameworkinstallapps] Error 2
 make: Leaving directory
 `/opt/x86_64/var/macports/build/_opt_x86_64_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python27/python27-bootstrap/work/Python-2.7.18'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65177>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list