[reportlab-users] Setup.py-problem

reinhard gantar reportlab-users@reportlab.com
Wed, 13 Aug 2003 20:25:22 +0200


Dear Dinu,

thanks for your script. It works very well, but the most important
thing here is the correct version of python. I had 2.2, what was
too old a package. After installing 2.3 I get this warning (works, though):

    __main__:1: RuntimeWarning: Python C API
    version mismatch for module pyRXP: This Python
    has API version 1012, module pyRXP has version 1011.

Kind regards
Gantar
PS: I leave the rest of our traffic in there as a google-bait
for people with similiar problems.



> reinhard gantar:
>
>> I read some mails from a guy named Dinu; in one of them he
>> recommends fixing up autoconf.m4f. I did that to no avail.
>
>
> I can't reproduce this. See below the output of this command sequence:
>
>   curl --url http://www.reportlab.com/ftp/pyRXP-0-9.tgz > pyRXP-0-9.tgz
>   mkdir pyRXP
>   mv pyRXP-0-9.tgz pyRXP
>   cd pyRXP
>   tar xfz pyRXP-0-9.tgz
>   python setup.py build
>
> running build
> running build_ext
> building 'pyRXP' extension
> creating build
> creating build/temp.darwin-6.6-Power Macintosh-2.2
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c pyRXP.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/pyRXP.o
> pyRXP.c:7: warning: `__version__' defined but not used
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/xmlparser.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/xmlparser.o
> rxp/xmlparser.c:7: warning: `vcid' defined but not used
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/url.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/url.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/charset.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/charset.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/string16.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/string16.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/ctype16.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/ctype16.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/dtd.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/dtd.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/input.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/input.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/stdio16.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/stdio16.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/system.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/system.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/hash.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/hash.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/version.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/version.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/namespaces.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/namespaces.o
> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp 
> -DCHAR_SIZE=8 -Irxp -I/usr/include/python2.2 -c rxp/http.c -o 
> build/temp.darwin-6.6-Power Macintosh-2.2/http.o
> creating build/lib.darwin-6.6-Power Macintosh-2.2
> gcc -bundle -bundle_loader /usr/bin/python build/temp.darwin-6.6-Power 
> Macintosh-2.2/pyRXP.o build/temp.darwin-6.6-Power 
> Macintosh-2.2/xmlparser.o build/temp.darwin-6.6-Power 
> Macintosh-2.2/url.o build/temp.darwin-6.6-Power 
> Macintosh-2.2/charset.o build/temp.darwin-6.6-Power 
> Macintosh-2.2/string16.o build/temp.darwin-6.6-Power 
> Macintosh-2.2/ctype16.o build/temp.darwin-6.6-Power 
> Macintosh-2.2/dtd.o build/temp.darwin-6.6-Power Macintosh-2.2/input.o 
> build/temp.darwin-6.6-Power Macintosh-2.2/stdio16.o 
> build/temp.darwin-6.6-Power Macintosh-2.2/system.o 
> build/temp.darwin-6.6-Power Macintosh-2.2/hash.o 
> build/temp.darwin-6.6-Power Macintosh-2.2/version.o 
> build/temp.darwin-6.6-Power Macintosh-2.2/namespaces.o 
> build/temp.darwin-6.6-Power Macintosh-2.2/http.o -o 
> build/lib.darwin-6.6-Power Macintosh-2.2/pyRXP.so
>
> dinu% python
> Python 2.2.2 (#1, Mar 13 2003, 12:11:28)
> [GCC 3.1 20020420 (prerelease)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> Welcome to rlcompleter2 0.95 for nice experiences hit <tab> multiple 
> times
> >>> import distutils
> >>> distutils.__version__
> '1.0.3'
> >>>
>
> Dinu
>
> -- 
> Dinu C. Gherman
> ......................................................................
> "If you tell the truth, you don't have to remember anything."
> (Mark Twain)
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users