I tried to install the latest version 0.1.3, but got the following message: python setup.py install --prefix=/auto/terra-06/wrk6/yueqiang/Python --exec-prefix=/auto/terra-06/wrk6/yueqiang/Python running install running build running build_py Traceback (innermost last): File "setup.py", line 13, in ? setup (name = "Distutils", File "distutils/core.py", line 97, in setup dist.run_commands () File "distutils/core.py", line 526, in run_commands self.run_command (cmd) File "distutils/core.py", line 575, in run_command cmd_obj.run () File "distutils/command/install.py", line 282, in run self.run_peer ('build') File "distutils/core.py", line 886, in run_peer self.distribution.run_command (command) File "distutils/core.py", line 575, in run_command cmd_obj.run () File "distutils/command/build.py", line 49, in run self.run_peer ('build_py') File "distutils/core.py", line 886, in run_peer self.distribution.run_command (command) File "distutils/core.py", line 575, in run_command cmd_obj.run () File "distutils/command/build_py.py", line 93, in run self.build_packages () File "distutils/command/build_py.py", line 290, in build_packages package_dir = self.get_package_dir (package) File "distutils/command/build_py.py", line 112, in get_package_dir return apply (os.path.join, path) TypeError: apply() 2nd argument must be tuple How to fix this? Thanks in advance! yueqiang _______________________________________________________________________ Yueqiang Huang, Department of Earth Sciences, University of Southern CA Los Angeles, CA 90089-0740 USA
On 31 January 2000, Yueqiang Huang said:
I tried to install the latest version 0.1.3, but got the following message:
Thanks for the bug report, but you forgot two vital pieces of information: * what version of Python are you running? * what OS are you running? (just "UNIX" isn't enough -- what version of what Unix variant? if you don't know, try the "uname -a" command)
python setup.py install --prefix=/auto/terra-06/wrk6/yueqiang/Python --exec-prefix=/auto/terra-06/wrk6/yueqiang/Python running install running build running build_py Traceback (innermost last): File "setup.py", line 13, in ? setup (name = "Distutils", [...] File "distutils/command/build_py.py", line 112, in get_package_dir return apply (os.path.join, path) TypeError: apply() 2nd argument must be tuple
Hmmm... I can't reproduce this under Python 1.5.2. The 'path' variable is always a list -- it's either returned from 'string.split()' or coerced from a tuple to a list -- and 'apply()' doesn't seem to mind at all for me. Again, what version of Python are you running? I suspect the ability for 'apply()' to take lists must have been added recently, and you're using an old version. Greg -- Greg Ward - software developer gward@cnri.reston.va.us Corporation for National Research Initiatives 1895 Preston White Drive voice: +1-703-620-8990 Reston, Virginia, USA 20191-5434 fax: +1-703-620-0913
File "distutils/command/build_py.py", line 112, in get_package_dir return apply (os.path.join, path) TypeError: apply() 2nd argument must be tuple
This smells of Python version 1.5.1 or older; in 1.5.2, apply() does allow any sequence as second arg. --Guido van Rossum (home page: http://www.python.org/~guido/)
participants (3)
-
Greg Ward
-
Guido van Rossum
-
Yueqiang Huang