Modify ↓
Ticket #108 (closed defect: invalid)
Setup.py install missing section header error
| Reported by: | anonymous | Owned by: | xi |
|---|---|---|---|
| Priority: | high | Component: | pysyck |
| Severity: | major | Keywords: | |
| Cc: |
Description (last modified by xi) (diff)
When I try to install pysyck on mac osx 10.5.5 by typing python setup. py install I get the following error:
Traceback (most recent call last):
File "setup.py", line 121, in <module>
'build_ext': PySyckBuildExt,
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 125, in setup
dist.parse_config_files()
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 373, in parse_config_files
parser.read(filename)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ConfigParser.py", line 267, in read
self._read(fp, filename)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ConfigParser.py", line 462, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /Users/s031540/.pydistutils.cfg, line: 1
'{\\rtf1\\ansi\\ansicpg1252\\cocoartf949\\cocoasubrtf350\n'
I used to get another error, syck.h not found, then I made a file in my home folder thanks to xi:
I'd suggest you to create a file named .pydistutils.cfg in your home directory and add the following lines to it:
[build_ext] include_dirs=/usr/local/include library_dirs=/usr/local/lib
The Syck.h error disappeared, but I can't get the new one to go away, nor can I find solutions online.
I anybody has any idea, that would be great!
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

It appears you have saved the file .pydistutils.cfg in the RTF format rather than as a text file. You need to use a text editor (e.g. TextMate?) rather than a word processor (e.g. MS Word) to create the file.
In any case, you need libsyck installed before you can install PySyck.