Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Compiling Python3.1

Reply
Thread Tools

Compiling Python3.1

 
 
Johannes Bauer
Guest
Posts: n/a
 
      06-10-2009
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(12
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$(E-Mail Removed)>
 
Reply With Quote
 
 
 
 
Martin v. Löwis
Guest
Posts: n/a
 
      06-10-2009
> What can I do about that?

Remove the non-ASCII characters from db.h.

Regards,
Martin
 
Reply With Quote
 
 
 
 
Johannes Bauer
Guest
Posts: n/a
 
      06-10-2009
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$(E-Mail Removed)>
 
Reply With Quote
 
Martin v. Löwis
Guest
Posts: n/a
 
      06-10-2009
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Cross-compiling error when compiling 2.6.1... Garrett Cooper Python 0 02-24-2009 09:47 PM
Cross-compiling error when compiling 2.6.1... Garrett Cooper Python 0 02-24-2009 08:55 PM
Compiling when libedit is in path Is there a trick to compiling Ruby when libedit must exist in the search path? Can you statically link to readline 5.0 in some manner? -- Lon Baker Lon Baker Ruby 1 03-21-2005 08:57 AM
Compiling from the command line David Rainsford ASP .Net 4 05-06-2004 02:03 PM
VS is adding code when compiling Jonas L ASP .Net 1 04-01-2004 02:27 PM



Advertisments