Ticket #94 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Can't install pyyaml with easy_install on Mac OS X

Reported by: Stephen.Pascoe@… Owned by: xi
Priority: normal Component: pyyaml
Severity: normal Keywords:


Just thought I'd try out YAML on my Mac and did

$ easy_install PyYaml
unable to execute gcc: No such file or directory
libyaml appears not to be installed
(if libyaml is installed, you may need to specify
 the option --include-dirs or uncomment and modify
 the parameter include_dirs in setup.cfg)

If I want to use YAML in my projects easy_install is pretty much essential.

I don't know whether it works if gcc or libyaml is installed.


Change History

comment:1 Changed 6 years ago by xi

Can you post the complete output of the script? Please note the lines you posted here are not an indication of an error, it's a warning meaning that libyaml bindings will not be installed. PyYAML could still be installed correctly.

comment:2 Changed 6 years ago by Stephen.Pascoe@…

  • Status changed from new to closed
  • Resolution set to fixed

Fixed with setuptools-0.6c9

I diagnosed this problem today. setuptools was naming the egg PyYAML-3.06-py2.5-macosx-10.5-i386.egg when pkg_resources.get_supported_platform() returns 'macosx-10.5.1-i386'. easy_install was then deleting the egg as it didn't match the platform.

Upgrading to the latest setuptools fixes it.

Note the way attempts to build the extension means the egg will be labeled with the platform even when it isn't necessary for a Python-only egg.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.