Compiling Python3.1

Discussion in 'Python' started by Johannes Bauer, Jun 10, 2009.

  1. Hello group,

    I just wanted to switch from Py3.0 to Py3.1. No luck here:

    [...]
    ar rc libpython3.1.a Python/_warnings.o Python/Python-ast.o
    Python/asdl.o Python/ast.o Python/bltinmodule.o Python/ceval.o
    Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o
    Python/frozenmain.o Python/future.o Python/getargs.o
    Python/getcompiler.o Python/getcopyright.o Python/getplatform.o
    Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o
    Python/marshal.o Python/modsupport.o Python/mystrtoul.o
    Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o
    Python/pyfpe.o Python/pymath.o Python/pystate.o Python/pythonrun.o
    Python/structmember.o Python/symtable.o Python/sysmodule.o
    Python/traceback.o Python/getopt.o Python/pystrcmp.o Python/pystrtod.o
    Python/dtoa.o Python/formatter_unicode.o Python/dynload_shlib.o
    Python/thread.o
    ar rc libpython3.1.a Modules/config.o Modules/getpath.o Modules/main.o
    Modules/gcmodule.o
    ar rc libpython3.1.a Modules/_threadmodule.o Modules/signalmodule.o
    Modules/posixmodule.o Modules/errnomodule.o Modules/pwdmodule.o
    Modules/_sre.o Modules/_codecsmodule.o Modules/_weakref.o
    Modules/_functoolsmodule.o Modules/_localemodule.o Modules/_iomodule.o
    Modules/iobase.o Modules/fileio.o Modules/bytesio.o Modules/bufferedio.o
    Modules/textio.o Modules/stringio.o Modules/zipimport.o
    Modules/symtablemodule.o Modules/xxsubtype.o
    ranlib libpython3.1.a
    gcc -pthread -Xlinker -export-dynamic -o python \
    Modules/python.o \
    libpython3.1.a -lpthread -ldl -lutil -lm
    Traceback (most recent call last):
    File "./setup.py", line 1675, in <module>
    main()
    File "./setup.py", line 1670, in main
    "Tools/scripts/2to3"]
    File "/home/joe/Python-3.1rc1/Lib/distutils/core.py", line 149, in setup
    dist.run_commands()
    File "/home/joe/Python-3.1rc1/Lib/distutils/dist.py", line 921, in
    run_commands
    self.run_command(cmd)
    File "/home/joe/Python-3.1rc1/Lib/distutils/dist.py", line 940, in
    run_command
    cmd_obj.run()
    File "/home/joe/Python-3.1rc1/Lib/distutils/command/build.py", line
    128, in run
    self.run_command(cmd_name)
    File "/home/joe/Python-3.1rc1/Lib/distutils/cmd.py", line 315, in
    run_command
    self.distribution.run_command(command)
    File "/home/joe/Python-3.1rc1/Lib/distutils/dist.py", line 940, in
    run_command
    cmd_obj.run()
    File "/home/joe/Python-3.1rc1/Lib/distutils/command/build_ext.py",
    line 347, in run
    self.build_extensions()
    File "./setup.py", line 102, in build_extensions
    missing = self.detect_modules()
    File "./setup.py", line 728, in detect_modules
    f = open(f).read()
    File "/home/joe/Python-3.1rc1/Lib/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
    917: ordinal not in range(128)
    make: *** [sharedmods] Fehler 1

    What can I do about that?

    Kind regards,
    Johannes

    --
    "Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
    verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
    -- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
    <48d8bf1d$0$7510$>
    Johannes Bauer, Jun 10, 2009
    #1
    1. Advertising

  2. > What can I do about that?

    Remove the non-ASCII characters from db.h.

    Regards,
    Martin
    Martin v. Löwis, Jun 10, 2009
    #2
    1. Advertising

  3. Martin v. Löwis schrieb:
    >> What can I do about that?

    >
    > Remove the non-ASCII characters from db.h.


    Ehh...

    $ find -type f | grep -i db.h
    ../Modules/unicodename_db.h
    ../Modules/unicodedata_db.h
    ../Objects/unicodetype_db.h

    There's no db.h file in the Python-3.1rc1 distribution. The ones above
    contain thousands of lines (~15k, 5k and 2k) all of which consist of
    endless arrays of unsigned characters - I really would not know what to
    remove from those.

    Kind regards,
    Johannes

    --
    "Meine Gegenklage gegen dich lautet dann auf bewusste Verlogenheit,
    verlästerung von Gott, Bibel und mir und bewusster Blasphemie."
    -- Prophet und Visionär Hans Joss aka HJP in de.sci.physik
    <48d8bf1d$0$7510$>
    Johannes Bauer, Jun 10, 2009
    #3
  4. Johannes Bauer wrote:
    > Martin v. Löwis schrieb:
    >>> What can I do about that?

    >> Remove the non-ASCII characters from db.h.

    >
    > Ehh...
    >
    > $ find -type f | grep -i db.h
    > ./Modules/unicodename_db.h
    > ./Modules/unicodedata_db.h
    > ./Objects/unicodetype_db.h
    >
    > There's no db.h file in the Python-3.1rc1 distribution.


    Correct. I was referring to the db.h from your operating system.
    See line 728 of setup.py.

    Regards,
    Martin
    Martin v. Löwis, Jun 10, 2009
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Berg
    Replies:
    0
    Views:
    322
    Andrew Berg
    Jun 16, 2012
  2. Tobias Marquardt
    Replies:
    1
    Views:
    199
    Hans Mulder
    Oct 27, 2012
  3. Tobias Marquardt
    Replies:
    0
    Views:
    290
    Tobias Marquardt
    Oct 28, 2012
  4. Giacomo Alzetta

    Missing modules compiling python3.3

    Giacomo Alzetta, Nov 4, 2012, in forum: Python
    Replies:
    2
    Views:
    242
    Giacomo Alzetta
    Nov 4, 2012
  5. Travis Griggs
    Replies:
    0
    Views:
    131
    Travis Griggs
    Nov 4, 2013
Loading...

Share This Page