Opened 14 years ago

Closed 12 years ago

#28832 closed defect (wontfix)

python26: platform.mac_ver() uses py26-xml, which fails to load - "Symbol not found: _PyUnicodeUCS2_Decode"

Reported by: ccarey@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: python26 py26-xml

Description

Hello there,

on a system with Xcode 3.2.5, Mac OS X 10.6.6, and python26 @2.6.6_1 +ucs4+universal, the py26-distribute @0.6.15 +universal port does not build. Here is an excerpt from its main.log:

:info:build Traceback (most recent call last):
[…]
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/expat.py", line 4, in <module>
:info:build     from pyexpat import *
:info:build ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so, 2): Symbol not found: _PyUnicodeUCS2_Decode
:info:build   Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so
:info:build   Expected in: flat namespace
:info:build  in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1

I suspect that this is due to the +ucs4 variant with which python26 was built. Perhaps py26-distribute needs to have a similar +ucs4 variant also?

Change History (6)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Cc: jmr@… removed
Owner: changed from macports-tickets@… to jmr@…
Status: newassigned

Attach the full log please. I don't have pyexpat.so on my system; which port provides it?

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Or rather, I don't have it under site-packages; there's one in lib-dynload.

comment:3 in reply to:  1 Changed 14 years ago by ccarey@…

Replying to jmr@…:

Attach the full log please. I don't have pyexpat.so on my system; which port provides it?

My guess is that py26-xml (on my system, py26-xml @0.8.4_0 +universal) provides pyexpat.so.

Here’s the full py26-distribute main.log:

version:1
:debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$
:debug:main epoch: in tree: 0 installed: 0
:debug:main python26 2.6.6_1 exists in the ports tree
:debug:main python26 2.6.6_1 +ucs4+universal is the latest installed
:debug:main python26 2.6.6_1 +ucs4+universal is active
:debug:main Merging existing variants '+ucs4+universal' into variants
:debug:main new fully merged portvariants: universal + ucs4 +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python26
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main Executing variant ucs4 provides ucs4
:debug:main No need to upgrade! python26 2.6.6_1 >= python26 2.6.6_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main gettext 0.18.1.1_2 exists in the ports tree
:debug:main gettext 0.18.1.1_2 +universal is the latest installed
:debug:main gettext 0.18.1.1_2 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! gettext 0.18.1.1_2 >= gettext 0.18.1.1_2
:debug:main epoch: in tree: 0 installed: 0
:debug:main libiconv 1.13.1_0 exists in the ports tree
:debug:main libiconv 1.13.1_0 +universal is the latest installed
:debug:main libiconv 1.13.1_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! libiconv 1.13.1_0 >= libiconv 1.13.1_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main ncurses 5.8_1 exists in the ports tree
:debug:main ncurses 5.8_1 +universal is the latest installed
:debug:main ncurses 5.8_1 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! ncurses 5.8_1 >= ncurses 5.8_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main expat 2.0.1_1 exists in the ports tree
:debug:main expat 2.0.1_1 +universal is the latest installed
:debug:main expat 2.0.1_1 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/expat
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! expat 2.0.1_1 >= expat 2.0.1_1
:debug:main epoch: in tree: 0 installed: 0
:debug:main zlib 1.2.5_0 exists in the ports tree
:debug:main zlib 1.2.5_0 +universal is the latest installed
:debug:main zlib 1.2.5_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! zlib 1.2.5_0 >= zlib 1.2.5_0
:debug:main epoch: in tree: 1 installed: 1
:debug:main openssl 1.0.0d_0 exists in the ports tree
:debug:main openssl 1.0.0d_0 +universal is the latest installed
:debug:main openssl 1.0.0d_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/openssl
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! openssl 1.0.0d_0 >= openssl 1.0.0d_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main sqlite3 3.7.5_0 exists in the ports tree
:debug:main sqlite3 3.7.5_0 +universal is the latest installed
:debug:main sqlite3 3.7.5_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/sqlite3
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! sqlite3 3.7.5_0 >= sqlite3 3.7.5_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main readline 6.2.000_0 exists in the ports tree
:debug:main readline 6.2.000_0 +universal is the latest installed
:debug:main readline 6.2.000_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/readline
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! readline 6.2.000_0 >= readline 6.2.000_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main db46 4.6.21_6 exists in the ports tree
:debug:main db46 4.6.21_6 +universal is the latest installed
:debug:main db46 4.6.21_6 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/db46
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! db46 4.6.21_6 >= db46 4.6.21_6
:debug:main epoch: in tree: 0 installed: 0
:debug:main gdbm 1.8.3_3 exists in the ports tree
:debug:main gdbm 1.8.3_3 +universal is the latest installed
:debug:main gdbm 1.8.3_3 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/gdbm
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! gdbm 1.8.3_3 >= gdbm 1.8.3_3
:debug:main epoch: in tree: 0 installed: 0
:debug:main bzip2 1.0.6_0 exists in the ports tree
:debug:main bzip2 1.0.6_0 +universal is the latest installed
:debug:main bzip2 1.0.6_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/bzip2
:debug:main OS darwin/10.6.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! bzip2 1.0.6_0 >= bzip2 1.0.6_0
:msg:main --->  Computing dependencies for py26-distribute:info:main .:debug:main Searching for dependency: unzip
:debug:main Didn't find receipt, going to depspec regex for: unzip
:debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$
:debug:main Found Dependency: path: /usr/bin filename: unzip regex: ^unzip$
:debug:main Searching for dependency: python26
:debug:main Found Dependency: receipt exists for python26
:msg:main 
:debug:main Executing org.macports.main (py26-distribute)
:msg:main --->  Fetching py26-distribute
:debug:fetch fetch phase started at Fri Mar 18 15:42:31 EDT 2011
:debug:fetch Executing org.macports.fetch (py26-distribute)
:info:fetch --->  distribute-0.6.15.zip doesn't seem to exist in /opt/local/var/macports/distfiles/python
:debug:fetch Pinging pypi.python.org...
:debug:fetch Pinging distfiles.macports.org...
:debug:fetch Pinging aarnet.au.distfiles.macports.org...
:debug:fetch Pinging cjj.kr.distfiles.macports.org...
:debug:fetch Pinging lil.fr.distfiles.macports.org...
:debug:fetch Pinging sea.us.distfiles.macports.org...
:debug:fetch Pinging ykf.ca.distfiles.macports.org...
:debug:fetch pypi.python.org ping time is 10000
:debug:fetch distfiles.macports.org ping time is 10000
:debug:fetch aarnet.au.distfiles.macports.org ping time is 10000
:debug:fetch cjj.kr.distfiles.macports.org ping time is 10000
:debug:fetch lil.fr.distfiles.macports.org ping time is 10000
:debug:fetch sea.us.distfiles.macports.org ping time is 10000
:debug:fetch ykf.ca.distfiles.macports.org ping time is 10000
:msg:fetch --->  Attempting to fetch distribute-0.6.15.zip from http://pypi.python.org/packages/source/d/distribute/
:debug:fetch Fetching failed:: The requested URL returned error: 404
:msg:fetch --->  Attempting to fetch distribute-0.6.15.zip from http://distfiles.macports.org/python
:msg:fetch --->  Verifying checksum(s) for py26-distribute
:debug:checksum checksum phase started at Fri Mar 18 15:42:47 EDT 2011
:debug:checksum Executing org.macports.checksum (py26-distribute)
:info:checksum --->  Checksumming distribute-0.6.15.zip
:debug:checksum Correct (md5) checksum for distribute-0.6.15.zip
:debug:checksum Correct (sha1) checksum for distribute-0.6.15.zip
:debug:checksum Correct (rmd160) checksum for distribute-0.6.15.zip
:debug:checksum setting option extract.cmd to /usr/bin/unzip
:debug:checksum setting option extract.pre_args to -q
:debug:checksum setting option extract.post_args to {-d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work}
:msg:checksum --->  Extracting py26-distribute
:debug:extract extract phase started at Fri Mar 18 15:42:47 EDT 2011
:debug:extract Executing org.macports.extract (py26-distribute)
:info:extract --->  Extracting distribute-0.6.15.zip
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/python/distribute-0.6.15.zip'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work" && /usr/bin/unzip -q '/opt/local/var/macports/distfiles/python/distribute-0.6.15.zip' -d /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work'
:debug:patch patch phase started at Fri Mar 18 15:42:47 EDT 2011
:debug:patch Executing org.macports.patch (py26-distribute)
:msg:patch --->  Configuring py26-distribute
:debug:patch Using compiler 'Mac OS X gcc 4.2'
:debug:configure configure phase started at Fri Mar 18 15:42:47 EDT 2011
:debug:configure Executing org.macports.configure (py26-distribute)
:msg:configure --->  Building py26-distribute
:debug:build build phase started at Fri Mar 18 15:42:47 EDT 2011
:debug:build Executing proc-pre-org.macports.build-build-0
:debug:build Executing org.macports.build (py26-distribute)
:debug:build Environment: CFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' CPATH='/opt/local/include' MACOSX_DEPLOYMENT_TARGET='10.6' LIBRARY_PATH='/opt/local/lib' F90FLAGS='-m64' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/.CC_PRINT_OPTIONS' LDFLAGS='-arch x86_64' FCFLAGS='-m64' OBJCFLAGS='-arch x86_64' FFLAGS='-m64' CC_PRINT_OPTIONS='YES'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build'
:info:build Traceback (most recent call last):
:info:build   File "setup.py", line 37, in <module>
:info:build     exec(open(init_path).read(), d)
:info:build   File "<string>", line 8, in <module>
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/setuptools/__init__.py", line 2, in <module>
:info:build     from setuptools.extension import Extension, Library
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/setuptools/extension.py", line 2, in <module>
:info:build     from setuptools.dist import _get_unpatched
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/setuptools/dist.py", line 6, in <module>
:info:build     from setuptools.command.install import install
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/setuptools/command/__init__.py", line 8, in <module>
:info:build     from setuptools.command import install_scripts
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/setuptools/command/install_scripts.py", line 3, in <module>
:info:build     from pkg_resources import Distribution, PathMetadata, ensure_directory
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/pkg_resources.py", line 685, in <module>
:info:build     class Environment(object):
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/pkg_resources.py", line 688, in Environment
:info:build     def __init__(self, search_path=None, platform=get_supported_platform(), python=PY_MAJOR):
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/pkg_resources.py", line 77, in get_supported_platform
:info:build     plat = 'macosx-%s-%s' % ('.'.join(_macosx_vers()[:2]), m.group(3))
:info:build   File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15/pkg_resources.py", line 189, in _macosx_vers
:info:build     version = platform.mac_ver()[0]
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/platform.py", line 793, in mac_ver
:info:build     info = _mac_ver_xml()
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/platform.py", line 770, in _mac_ver_xml
:info:build     pl = plistlib.readPlist(fn)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plistlib.py", line 78, in readPlist
:info:build     rootObject = p.parse(pathOrFile)
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plistlib.py", line 401, in parse
:info:build     from xml.parsers.expat import ParserCreate
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/expat.py", line 4, in <module>
:info:build     from pyexpat import *
:info:build ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so, 2): Symbol not found: _PyUnicodeUCS2_Decode
:info:build   Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so
:info:build   Expected in: flat namespace
:info:build  in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/_xmlplus/parsers/pyexpat.so
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/work/distribute-0.6.15" && /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 setup.py --no-user-cfg build " returned error 1
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for py26-distribute): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for py26-distribute is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-distribute/main.log

comment:4 Changed 14 years ago by jmroot (Joshua Root)

You don't have to guess, use port provides <path>. For future reference, it clutters up the comments less if you use the "Attach file" button.

comment:5 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from jmr@… to mcalhoun@…
Port: python26 py26-xml added; py26-distribute removed
Status: assignednew
Summary: py26-distribute @0.6.15 +universal Symbol not found: _PyUnicodeUCS2_Decodepython26: platform.mac_ver() uses py26-xml, which fails to load - "Symbol not found: _PyUnicodeUCS2_Decode"

So anyway, distribute is innocently asking for the Mac OS version, which inside python core library code leads to the py26-xml version of the pyexpat module being loaded rather than the built-in, which then fails to load.

comment:6 Changed 12 years ago by jmroot (Joshua Root)

Resolution: wontfix
Status: newclosed

py26-xml no longer exists in the ports tree, so uninstall it if you have it installed.

Note: See TracTickets for help on using tickets.