PyYAML on Mac OSX problems

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

PyYAML on Mac OSX problems

Postby ardent red » Tue Oct 07, 2008 4:12 am

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
ardent red
 
Posts: 150
Joined: Fri Apr 18, 2008 3:41 pm
Location: The big little New Zealand

Re: PyYAML on Mac OSX problems

Postby Tsar Hoikas » Tue Oct 07, 2008 2:05 pm

You need to provide arguments to setup.py. Probably "install" (without the quotes). Read the PyYAML Install manual for more information.
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: PyYAML on Mac OSX problems

Postby ardent red » Tue Oct 07, 2008 2:35 pm

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?
ardent red
 
Posts: 150
Joined: Fri Apr 18, 2008 3:41 pm
Location: The big little New Zealand


Return to Scripting

Who is online

Users browsing this forum: No registered users and 0 guests