Modify

Ticket #108 (closed defect: invalid)

Opened 5 years ago

Last modified 2 days ago

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

comment:1 Changed 5 years ago by xi

  • Status changed from new to closed
  • Resolution set to invalid
  • Description modified (diff)

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.

comment:2 Changed 2 days ago by maskodok <galihadiputro87@…>

The only thing more I could hope for is documentation of all these features (other than reading through the code).  Cipto Junaedy Is this in process? Can I help? About  Unit Link Terbaik di Indonesia Commonwealth Life Investra Link

View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.