Page 1 of 1

PyYAML on Mac OSX problems

PostPosted: Tue Oct 07, 2008 4:12 am
by ardent red
I'm trying to get all the age-writing stuff set up on a mac computer, and it doesn't seem that I can get PyYAML to install properly through the install script provided. To be precise:

Code: Select all
Traceback (most recent call last):
  File "/Users/Tom/Downloads/PyYAML-3.06/setup.py", line 258, in <module>
    'build_ext': build_ext,
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 139, in setup
    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied


does anyone know how to fix this? Alternatively, does anyone know of a .dmg installer for PyYAML (I couldn't find any)?

Thanks,
AR

EDIT: oh, yeah, forgot to include computer details. iMac running Mac OS X 10.5.5

Re: PyYAML on Mac OSX problems

PostPosted: Tue Oct 07, 2008 2:05 pm
by Tsar Hoikas
You need to provide arguments to setup.py. Probably "install" (without the quotes). Read the PyYAML Install manual for more information.

Re: PyYAML on Mac OSX problems

PostPosted: Tue Oct 07, 2008 2:35 pm
by ardent red
Right, I looked at the documentation and have managed to get the installer running. However, halfway through installation,

Code: Select all
error: package directory 'lib/yaml' does not exist

occurs. I've tried moving and creating yaml folders in all the lib folders on the computer, yet it still won't work. Any ideas?