Hi Amaury,
On 06/01/12 00:32, Amaury Forgeot d'Arc wrote:
2012/1/5 Paul Smedley <p...@smedley.id.au <mailto:p...@smedley.id.au>>
Hi All,
I'm working on updating my port of Python 2.6.5 to v2.7.2 for the
OS/2 platform.
I have python.exe and python27.dll compiling find, but when starting
to build sharedmods I'm getting the following error:
running build
running build_ext
Traceback (most recent call last):
File "./setup.py", line 2092, in <module>
main()
File "./setup.py", line 2087, in main
'Lib/smtpd.py']
File "U:/DEV/python-2.7.2/Lib/__distutils/core.py", line 152, in setup
dist.run_commands()
File "U:/DEV/python-2.7.2/Lib/__distutils/dist.py", line 953, in
run_commands
self.run_command(cmd)
File "U:/DEV/python-2.7.2/Lib/__distutils/dist.py", line 972, in
run_command
cmd_obj.run()
File "U:/DEV/python-2.7.2/Lib/__distutils/command/build.py", line
127, in run
self.run_command(cmd_name)
File "U:/DEV/python-2.7.2/Lib/__distutils/cmd.py", line 326, in
run_command
self.distribution.run_command(__command)
File "U:/DEV/python-2.7.2/Lib/__distutils/dist.py", line 972, in
run_command
cmd_obj.run()
File "U:/DEV/python-2.7.2/Lib/__distutils/command/build_ext.__py",
line 340, in run
self.build_extensions()
File "./setup.py", line 152, in build_extensions
missing = self.detect_modules()
File "./setup.py", line 1154, in detect_modules
for arg in sysconfig.get_config_var("__CONFIG_ARGS").split()]
AttributeError: 'NoneType' object has no attribute 'split'
make: *** [sharedmods] Error 1
Any suggestions? A google showed a similar error on AIX with no
clear resolution.
Is it in the part that configures the "dbm" module?
This paragraph is already protected by a "if platform not in ['cygwin']:",
I suggest to exclude 'os2emx' as well.
It is - however adding os2 the the list of platforms to the ones to
exclude gets me only a little further:
It then bombs with:
running build
running build_ext
Traceback (most recent call last):
File "./setup.py", line 2092, in <module>
main()
File "./setup.py", line 2087, in main
'Lib/smtpd.py']
File "U:/DEV/python-2.7.2/Lib/distutils/core.py", line 152, in setup
dist.run_commands()
File "U:/DEV/python-2.7.2/Lib/distutils/dist.py", line 953, in
run_commands
self.run_command(cmd)
File "U:/DEV/python-2.7.2/Lib/distutils/dist.py", line 972, in
run_command
cmd_obj.run()
File "U:/DEV/python-2.7.2/Lib/distutils/command/build.py", line 127,
in run
self.run_command(cmd_name)
File "U:/DEV/python-2.7.2/Lib/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "U:/DEV/python-2.7.2/Lib/distutils/dist.py", line 972, in
run_command
cmd_obj.run()
File "U:/DEV/python-2.7.2/Lib/distutils/command/build_ext.py", line
340, in run
self.build_extensions()
File "./setup.py", line 152, in build_extensions
missing = self.detect_modules()
File "./setup.py", line 1368, in detect_modules
if '--with-system-expat' in sysconfig.get_config_var("CONFIG_ARGS"):
TypeError: argument of type 'NoneType' is not iterable
make: *** [sharedmods] Error 1
Which again points to problems with sysconfig.get_config_var("CONFIG_ARGS"):
Thanks,
Paul
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com