[egenix-users] [mxTidy/MacOSX] _CleanTree error

Darryl Cousins darryljcousins at gmail.com
Sat Sep 6 01:08:31 CEST 2008


Hi,

I have struck an error on MacOS Leopard similar to this post.

http://www.egenix.com/mailman-archives/egenix-users/2007-July/114231.html

My error is as follows:

Python 2.5.2 (r252:60911, Sep  5 2008, 23:29:08)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from mx import DateTime
>>> from mx import Tidy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/mx/Tidy/__init__.py",
line 7, in <module>
    from Tidy import *
  File "/Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/mx/Tidy/Tidy.py",
line 7, in <module>
    from mxTidy import *
  File "/Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/mx/Tidy/mxTidy/__init__.py",
line 7, in <module>
    from mxTidy import *
ImportError: dlopen(/Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/mx/Tidy/mxTidy/mxTidy.so,
2): Symbol not found: _CleanTree
  Referenced from:
/Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/mx/Tidy/mxTidy/mxTidy.so
  Expected in: dynamic lookup

In the aforementioned post Mr Lemburg points to a fix in a future
3.0.1 version of the experimental package. Would this be the solution
or is there another way I can solve the problem for myself.

For further reference I've included the build output below.

Kind regards,
Darryl Cousins

darrylcousins theshire:egenix-mx-experimental-3.0.0$
~/Python/Python-2.5.2/bin/python2.5 setup.py install
running install
running build
running build_clib
building 'tidy' library
creating build
creating build/temp.macosx-10.5-i386-2.5_ucs2
creating build/temp.macosx-10.5-i386-2.5_ucs2/tidy
creating build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx
creating build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy
creating build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy
creating build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/attrs.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/attrs.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/clean.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/clean.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/config.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/config.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/entities.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/entities.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/istack.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/istack.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/lexer.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/lexer.o
mx/Tidy/mxTidy/libtidy/lexer.c:282: warning: 'AddStringToLexer'
defined but not used
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/localize.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/localize.o
mx/Tidy/mxTidy/libtidy/localize.c: In function 'tidy_out':
mx/Tidy/mxTidy/libtidy/localize.c:45: warning: pointer targets in
assignment differ in signedness
mx/Tidy/mxTidy/libtidy/localize.c:50: warning: pointer targets in
passing argument 1 of 'vsnprintf' differ in signedness
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/parser.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/parser.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/pprint.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/pprint.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/tags.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/tags.o
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DCOMPILING_TIDY=1
-Imx/Tidy/mxTidy/libtidy -c mx/Tidy/mxTidy/libtidy/tidy.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/tidy.o
mx/Tidy/mxTidy/libtidy/tidy.c: In function 'InputStreamFromBuffer':
mx/Tidy/mxTidy/libtidy/tidy.c:236: warning: pointer targets in
assignment differ in signedness
mx/Tidy/mxTidy/libtidy/tidy.c: In function 'OutputStreamFromBuffer':
mx/Tidy/mxTidy/libtidy/tidy.c:702: warning: pointer targets in
assignment differ in signedness
mx/Tidy/mxTidy/libtidy/tidy.c:708: warning: pointer targets in
assignment differ in signedness
mx/Tidy/mxTidy/libtidy/tidy.c: In function 'WriteCharToStream':
mx/Tidy/mxTidy/libtidy/tidy.c:744: warning: pointer targets in
assignment differ in signedness
mx/Tidy/mxTidy/libtidy/tidy.c:750: warning: pointer targets in
assignment differ in signedness
mx/Tidy/mxTidy/libtidy/tidy.c: In function 'WriteStringToStream':
mx/Tidy/mxTidy/libtidy/tidy.c:766: warning: pointer targets in
assignment differ in signedness
mx/Tidy/mxTidy/libtidy/tidy.c:773: warning: pointer targets in
assignment differ in signedness
ar -cr build/temp.macosx-10.5-i386-2.5_ucs2/libtidy.a
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/attrs.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/clean.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/config.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/entities.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/istack.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/lexer.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/localize.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/parser.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/pprint.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/tags.o
build/temp.macosx-10.5-i386-2.5_ucs2/tidy/mx/Tidy/mxTidy/libtidy/tidy.o
ranlib build/temp.macosx-10.5-i386-2.5_ucs2/libtidy.a
running mx_autoconf
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -D_GNU_SOURCE=1 -I/opt/local/include
-I/Users/darrylcousins/Python/Python-2.5.2/include -c _configtest.c -o
_configtest.o
_configtest.c: In function 'main':
_configtest.c:4: warning: statement with no effect
gcc -I/opt/local/include -L/opt/local/lib _configtest.o
-L/opt/local/lib -L/Users/darrylcousins/Python/Python-2.5.2/lib -o
_configtest
success!
removing: _configtest.c _configtest.o _configtest
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -D_GNU_SOURCE=1
-I/Users/darrylcousins/Python/Python-2.5.2/include/python2.5
-I/opt/local/include
-I/Users/darrylcousins/Python/Python-2.5.2/include -c _configtest.c -o
_configtest.o
success!
removing: _configtest.c _configtest.o
macros to define: [('HAVE_STRPTIME', '1')]
macros to undefine: []
running build_ext

building extension "mx.Tidy.mxTidy.mxTidy" (required)
building 'mx.Tidy.mxTidy.mxTidy' extension
creating build/temp.macosx-10.5-i386-2.5_ucs2/mx-Tidy-mxTidy-mxTidy
creating build/temp.macosx-10.5-i386-2.5_ucs2/mx-Tidy-mxTidy-mxTidy/mx
creating build/temp.macosx-10.5-i386-2.5_ucs2/mx-Tidy-mxTidy-mxTidy/mx/Tidy
creating build/temp.macosx-10.5-i386-2.5_ucs2/mx-Tidy-mxTidy-mxTidy/mx/Tidy/mxTidy
gcc -I/opt/local/include -L/opt/local/lib -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes -DHAVE_STRPTIME=1 -Imx/Tidy/mxTidy
-Imx/Tidy/mxTidy/libtidy
-I/Users/darrylcousins/Python/Python-2.5.2/include/python2.5
-I/opt/local/include
-I/Users/darrylcousins/Python/Python-2.5.2/include -c
mx/Tidy/mxTidy/mxTidy.c -o
build/temp.macosx-10.5-i386-2.5_ucs2/mx-Tidy-mxTidy-mxTidy/mx/Tidy/mxTidy/mxTidy.o
creating build/lib.macosx-10.5-i386-2.5_ucs2
creating build/lib.macosx-10.5-i386-2.5_ucs2/mx
creating build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy
creating build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy
gcc -I/opt/local/include -L/opt/local/lib -bundle -undefined
dynamic_lookup build/temp.macosx-10.5-i386-2.5_ucs2/mx-Tidy-mxTidy-mxTidy/mx/Tidy/mxTidy/mxTidy.o
-Lmx/Tidy/mxTidy/libtidy -Lbuild/temp.macosx-10.5-i386-2.5_ucs2
-L/opt/local/lib -L/Users/darrylcousins/Python/Python-2.5.2/lib -ltidy
-ltidy -o build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy/mxTidy.so

building extension "mx.Number.mxNumber.mxNumber" (optional)
looking for header files needed by extension "mx.Number.mxNumber.mxNumber"
*** WARNING: Building of extension "mx.Number.mxNumber.mxNumber"
failed: needed include file "gmp.h" not found

running build_py
copying mx/__init__.py -> build/lib.macosx-10.5-i386-2.5_ucs2/mx
creating build/lib.macosx-10.5-i386-2.5_ucs2/mx/Number
copying mx/Number/__init__.py -> build/lib.macosx-10.5-i386-2.5_ucs2/mx/Number
copying mx/Number/LazyModule.py -> build/lib.macosx-10.5-i386-2.5_ucs2/mx/Number
copying mx/Number/Number.py -> build/lib.macosx-10.5-i386-2.5_ucs2/mx/Number
creating build/lib.macosx-10.5-i386-2.5_ucs2/mx/Number/mxNumber
copying mx/Number/mxNumber/__init__.py ->
build/lib.macosx-10.5-i386-2.5_ucs2/mx/Number/mxNumber
copying mx/Number/mxNumber/test.py ->
build/lib.macosx-10.5-i386-2.5_ucs2/mx/Number/mxNumber
copying mx/Tidy/__init__.py -> build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy
copying mx/Tidy/Tidy.py -> build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy
copying mx/Tidy/mxTidy/__init__.py ->
build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy
copying mx/Tidy/mxTidy/test.py ->
build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy
copying mx/Tidy/mxTidy/testMadjakarta.py ->
build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy
copying mx/Tidy/mxTidy/testMateusz.py ->
build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy
copying mx/Tidy/mxTidy/testWalter.py ->
build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy
running install_lib
copying build/lib.macosx-10.5-i386-2.5_ucs2/mx/Tidy/mxTidy/mxTidy.so
-> /Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/mx/Tidy/mxTidy
writing byte-compilation script
'/var/folders/rV/rVAGWhmsHWSmKVQIPwGHhk+++TI/-Tmp-/tmpSQ9KQN.py'
/Users/darrylcousins/Python/Python-2.5.2/bin/python2.5 -O
/var/folders/rV/rVAGWhmsHWSmKVQIPwGHhk+++TI/-Tmp-/tmpSQ9KQN.py
removing /var/folders/rV/rVAGWhmsHWSmKVQIPwGHhk+++TI/-Tmp-/tmpSQ9KQN.py
running install_data
running install_egg_info
Removing /Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/egenix_mx_experimental-3.0.0-py2.5.egg-info
Writing /Users/darrylcousins/Python/Python-2.5.2/lib/python2.5/site-packages/egenix_mx_experimental-3.0.0-py2.5.egg-info



More information about the egenix-users mailing list