[Distutils] problem running python setup.py

Bowen Steffan ap Geraint GT/IT SteffanapGeraintBowen@gwynedd.gov.uk
Fri Nov 15 04:01:02 2002


This is a multi-part message in MIME format.

------=_NextPartTM-000-05c37836-5471-496b-93c5-fa8a7263340e
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C28C85.57835900"

------_=_NextPart_001_01C28C85.57835900
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have been attempting to run python setup.py build in
/usr/local/dc/Distutils-1.0.2 and this is the output I get. I would be
pleased if you could give me any advice as to what to do to resolve this
problem. I am using python version 1.5 on Linux release 6.0 (Hedwig)
Kernel 2.2.5-22 on an i586

Error in %s at %d: %s ('setup.cfg', 21, "'[bdist_rpm]\\012'")
Error in %s at %d: %s ('setup.cfg', 24, "'doc_files =3D
CHANGES.txt\\012'")
Traceback (innermost last):
  File "setup.py", line 13, in ?
    setup (name =3D "Distutils",
  File "distutils/core.py", line 110, in setup
    dist.parse_config_files()
  File "distutils/dist.py", line 323, in parse_config_files
    parser.read(filename)
  File "/usr/lib/python1.5/ConfigParser.py", line 154, in read
    self.__read(fp)
  File "/usr/lib/python1.5/ConfigParser.py", line 232, in __read
    cursect =3D cursect[optname] + '\n ' + value
TypeError: expected integer index

This is the contents of setup.cfg
=20
#
# setup.cfg
#
# the Distutils config file.  Just as with the Distutils setup script,
this
# has the dual purpose of being used to distribute the Distutils and
# serving as an example of some of the things you can do with Distutils
# config files.  Currently, this is only useful for me (assuming I'm the
# only person who creates Distutils source and RPM distributions), but
you
# could add build and installation preferences here, too.  (Although
those
# sorts of things are probably best handled on a site-wide or per-user
# basis, rather than in the config file for each module distribution.)
#
# created 2000/05/31, Greg Ward
#
# $Id: setup.cfg,v 1.3 2000/06/30 03:45:44 gward Exp $
#
=20
[sdist]
formats=3Dgztar,zip
=20
[bdist_rpm]
release =3D 1
packager =3D Greg Ward <gward@python.net>
doc_files =3D CHANGES.txt
            README.txt
            USAGE.txt
            doc/
            examples/
=20
changelog =3D
  * Thu Jun 29 2000 Greg Ward <gward@python.net> 0.9
  - Made myself the packager, since I can now create the RPM on my own
=20
  * Sun Jun 04 2000 Harry Henry Gebel <hgebel@inet.net> 0.9pre-1
  - Made sure scripts are file names, filled in some help strings,
formatted
    changelog correctly
=20
  * Wed May 31 2000 Greg Ward <gward@python.net> 0.8.3pre-1
  - Hacked up bdist_rpm.py, moved meta-data into setup.cfg
=20
  * Thu May 10 2000 Harry Henry Gebel <hgebel@inet.net> 0.8.2-3
  - Added new options to package_data
=20
  * Tue May 09 2000 Harry Henry Gebel <hgebel@inet.net> 0.8.2-2
  - Include RPM_OPT_FLAGS in distutils
=20
  * Wed Apr 26 2000 Harry Henry Gebel <hgebel@inet.net> 0.8.2-1
  - First test of bdist_rpm

=20
Thank you
Steffan. G. Bowen
=20

------_=_NextPart_001_01C28C85.57835900
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN style=3D"FONT-SIZE: 10pt; COLOR: fuchsia; FONT-FAMILY: =
Arial">
<P><FONT color=3D#000000>I have been attempting to run <STRONG>python =
setup.py=20
build</STRONG> in&nbsp; <STRONG>/usr/local/dc/Distutils-1.0.2</STRONG> =
and this=20
is the output I get. I would be<SPAN class=3D822064908-15112002> =
</SPAN>pleased if=20
you could give me any advice as to what to do to resolve&nbsp;this =
problem.<SPAN=20
class=3D822064908-15112002> I am</SPAN>&nbsp;<SPAN =
class=3D822064908-15112002>using=20
<STRONG>python version 1.5 on Linux release 6.0 (Hedwig) Kernel 2.2.5-22 =
on an=20
i586</STRONG></SPAN></FONT></P>
<P></SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: fuchsia; FONT-FAMILY: Arial">Error in =
%s at %d:=20
%s ('setup.cfg', 21, "'[bdist_rpm]\\012'")<BR>Error in %s at %d: %s=20
('setup.cfg', 24, "'doc_files =3D CHANGES.txt\\012'")<BR>Traceback =
(innermost=20
last):<BR>&nbsp; File "setup.py", line 13, in ?<BR>&nbsp;&nbsp;&nbsp; =
setup=20
(name =3D "Distutils",<BR>&nbsp; File "distutils/core.py", line 110, in=20
setup<BR>&nbsp;&nbsp;&nbsp; dist.parse_config_files()<BR>&nbsp; File=20
"distutils/dist.py", line 323, in =
parse_config_files<BR>&nbsp;&nbsp;&nbsp;=20
parser.read(filename)<BR>&nbsp; File =
"/usr/lib/python1.5/ConfigParser.py", line=20
154, in read<BR>&nbsp;&nbsp;&nbsp; self.__read(fp)<BR>&nbsp; File=20
"/usr/lib/python1.5/ConfigParser.py", line 232, in =
__read<BR>&nbsp;&nbsp;&nbsp;=20
cursect =3D cursect[optname] + '\n ' + value<BR>TypeError: expected =
integer=20
index</SPAN><B><U><?xml:namespace prefix =3D o ns =3D=20
"urn:schemas-microsoft-com:office:office" =
/><o:p></o:p></U></B></P></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>This =
is the contents=20
of setup.cfg</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D822064908-15112002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>#<BR># =

setup.cfg<BR>#<BR># the Distutils config file.&nbsp; Just as with the =
Distutils=20
setup script, this<BR># has the dual purpose of being used to distribute =
the=20
Distutils and<BR># serving as an example of some of the things you can =
do with=20
Distutils<BR># config files.&nbsp; Currently, this is only useful for me =

(assuming I'm the<BR># only person who creates Distutils source and RPM=20
distributions), but you<BR># could add build and installation =
preferences here,=20
too.&nbsp; (Although those<BR># sorts of things are probably best =
handled on a=20
site-wide or per-user<BR># basis, rather than in the config file for =
each module=20
distribution.)<BR>#<BR># created 2000/05/31, Greg Ward<BR>#<BR># $Id:=20
setup.cfg,v 1.3 2000/06/30 03:45:44 gward Exp $<BR>#</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D822064908-15112002>[sdist]<BR>formats=3Dgztar,zip</SPAN></FONT></=
DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D822064908-15112002>[bdist_rpm]<BR>release =3D 1<BR>packager =3D =
Greg Ward=20
&lt;<A =
href=3D"mailto:gward@python.net">gward@python.net</A>&gt;<BR>doc_files =
=3D=20
CHANGES.txt<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
README.txt<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
USAGE.txt<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;=20
doc/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
examples/</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D822064908-15112002>changelog=20
=3D<BR>&nbsp; * Thu Jun 29 2000 Greg Ward &lt;<A=20
href=3D"mailto:gward@python.net">gward@python.net</A>&gt; 0.9<BR>&nbsp; =
- Made=20
myself the packager, since I can now create the RPM on my=20
own</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>&nbsp; =
* Sun Jun 04=20
2000 Harry Henry Gebel &lt;<A=20
href=3D"mailto:hgebel@inet.net">hgebel@inet.net</A>&gt; =
0.9pre-1<BR>&nbsp; - Made=20
sure scripts are file names, filled in some help strings,=20
formatted<BR>&nbsp;&nbsp;&nbsp; changelog correctly</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>&nbsp; =
* Wed May 31=20
2000 Greg Ward &lt;<A =
href=3D"mailto:gward@python.net">gward@python.net</A>&gt;=20
0.8.3pre-1<BR>&nbsp; - Hacked up bdist_rpm.py, moved meta-data into=20
setup.cfg</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>&nbsp; =
* Thu May 10=20
2000 Harry Henry Gebel &lt;<A=20
href=3D"mailto:hgebel@inet.net">hgebel@inet.net</A>&gt; =
0.8.2-3<BR>&nbsp; - Added=20
new options to package_data</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>&nbsp; =
* Tue May 09=20
2000 Harry Henry Gebel &lt;<A=20
href=3D"mailto:hgebel@inet.net">hgebel@inet.net</A>&gt; =
0.8.2-2<BR>&nbsp; -=20
Include RPM_OPT_FLAGS in distutils</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>&nbsp; =
* Wed Apr 26=20
2000 Harry Henry Gebel &lt;<A=20
href=3D"mailto:hgebel@inet.net">hgebel@inet.net</A>&gt; =
0.8.2-1<BR>&nbsp; - First=20
test of bdist_rpm<BR></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D822064908-15112002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D822064908-15112002>Thank=20
you</DIV></SPAN></FONT>
<DIV align=3Dleft><FONT face=3D"Script MT Bold" size=3D2>Steffan. G.=20
Bowen</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>
=00
------_=_NextPart_001_01C28C85.57835900--


------=_NextPartTM-000-05c37836-5471-496b-93c5-fa8a7263340e
Content-Type: text/plain;
	name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="InterScan_Disclaimer.txt"

-------------------------------------------------------------
Mae'r e-bost hwn ac unrhyw atodiad iddo yn gyfrinachol ac fe'i bwriedir ar gyfer y sawl a enwir arno yn unig. Gall gynnwys gwybodaeth freintiedig. Os yw wedi eich cyrraedd trwy gamgymeriad ni ellwch ei gopio, ei ddosbarthu na'i ddangos i unrhyw un arall a dylech gysylltu â'r Cyngor ar unwaith.
Mae unrhyw gynnwys nad yw'n ymwneud â busnes swyddogol Cyngor Gwynedd yn bersonol i'r awdur ac nid yw'n awdurdodedig gan y Cyngor.
-------------------------------------------------------------
This email and any attachments are confidential and intended for the named recipient only. The content may contain privileged information. If it has reached you by mistake, you should not copy, distribute or show the content to anyone but should contact Gwynedd Council at once.
Any content that is not pertinent to Gwynedd Council business is personal to the author, and is not necessarily the view of the Council.
-------------------------------------------------------------


------=_NextPartTM-000-05c37836-5471-496b-93c5-fa8a7263340e--