[ python-Bugs-1592627 ] gettext has problems with .mo files that use non-ASCII chars

2006-11-09 Thread SourceForge.net
Bugs item #1592627, was opened at 2006-11-08 13:23
Message generated for change (Comment added) made by avantman42
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1592627&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: None
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Russell Phillips (avantman42)
Assigned to: Nobody/Anonymous (nobody)
Summary: gettext has problems with .mo files that use non-ASCII chars

Initial Comment:
Hi,

I'm trying to use gettext to internationalise my
project [1], but I'm getting the following error
message with some translations:

"Traceback (most recent call last):
file PanicButton.py line 36 in ?
file Gettext.pyc line 177 in _init_
file Gettext.pyc line 274 in _parse
struct.error : unpack str size does not match format"

The snippet of code that loads the .mo file is below
(full file is at [2]):


# Code to find & install l10n file
import gettext, os, locale, glob
loc = locale.getdefaultlocale ()
sLocale = loc [0]

#Use translation file with same name as locale if it exists
if (os.path.exists (os.path.join ('locale', sLocale +
'.mo'))):
sLang = os.path.join ('locale', sLocale + '.mo')
else:
#find a .mo file that matches the first part (first
three
characters) of the locale
sMoFiles = glob.glob (os.path.join ('locale',
sLocale [:3] +
'*.mo'))
if (len (sMoFiles) > 0):
sLang = sMoFiles [0]
else:
#Could not find exact or partial match for
locale - use default
translation file (British English)
sLang = os.path.join ('locale', 'en_GB.mo')

lan = gettext.GNUTranslations (open (sLang))
lan.install ()
# End of code to find & install l10n file


The problem only seems to appear when the translated
file uses non-ASCII characters.

Full sourcecode is available via the SF.net project
page [1], if required. The .po and .mo files are in the
locale directory [3]. The only .mo file that does not
have problems is en_GB.mo

Russ

[1] http://sourceforge.net/projects/panicbutton
[2]
http://panicbutton.cvs.sourceforge.net/panicbutton/panicbutton/PanicButton.py?view=log
[3]
http://panicbutton.cvs.sourceforge.net/panicbutton/panicbutton/locale/


--

>Comment By: Russell Phillips (avantman42)
Date: 2006-11-09 10:59

Message:
Logged In: YES 
user_id=316750

Got it working. Thank you so much!

I am using Windows, and I'd tried open (sLang, 'rb') and it
didn't make a difference, but that was when I was using
Python 2.4. I'm not sure why it works now and didn't then,
but I'm just happy to have it working.

The Gettext.pyc file came with the Windows Python distribution.

Russ


--

Comment By: Martin v. Löwis (loewis)
Date: 2006-11-08 21:45

Message:
Logged In: YES 
user_id=21627

I can't reproduce the problem. If I understand your
description correctly, then this line
should fail

py> gettext.GNUTranslations(open("de_DE.mo"))


However, it doesn't fail for me, neither with Python 2.4.4
or 2.5.

Are you, by any chance, using Microsoft Windows? If so, you
should open
the file in binary mode (you should actually do so on all
systems; .mo
files are binary):

gettext.GNUTranslations (open (sLang, 'rb'))

Also, I'm puzzled by your traceback. It says

file Gettext.pyc line 177 in _init_
file Gettext.pyc line 274 in _parse

However, Python does not include a file named Gettext.py[c],
only gettext.py 
(lower case 'g'). Where did you get Gettext.pyc from?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1592627&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593384 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593384, was opened at 2006-11-09 15:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593384&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593384&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593407 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593407, was opened at 2006-11-09 16:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593407&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593407&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1569790 ] mailbox.Maildir.get_folder() loses factory information

2006-11-09 Thread SourceForge.net
Bugs item #1569790, was opened at 2006-10-03 04:16
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1569790&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Matthias Klose (doko)
>Assigned to: A.M. Kuchling (akuchling)
Summary: mailbox.Maildir.get_folder() loses factory information

Initial Comment:
[forwarded from http://bugs.debian.org/384512]

the factory defines what class the mails have that are
returned.

So for two nested folders a and a.b, the following code
will return
messages with two different classes:

# factory = None to get mailbox.MaildirMessage objects
md = mailbox.Maildir("a", factory=None)
print md["somemessage"].__class__
# will print mailbox.MaildirMessage
md2 = md.get_folder("b")
print md2["someothermessage"].__class__
# will print rfc822.Message

i.e. the factory= parameter passed to the outer Maildir
class upon
creation is not passed on to the subfolder creation in
get_folder()

--

>Comment By: A.M. Kuchling (akuchling)
Date: 2006-11-09 08:34

Message:
Logged In: YES 
user_id=11375

Committed to trunk in rev. 52690 and to 25-maint in rev.
52691.  Thanks for the bug report!  The MH class has the
same bug, so I fixed that too.

I've also attached the patch.  If you wish you can
incorporate the fix in Debian's patchset, or
wait for Python 2.5.1.



--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1569790&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593407 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593407, was opened at 2006-11-09 08:22
Message generated for change (Settings changed) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593407&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
>Status: Deleted
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593407&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593442 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593442, was opened at 2006-11-09 17:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593442&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593442&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1566719 ] site-packages isn't created before install_egg_info

2006-11-09 Thread SourceForge.net
Bugs item #1566719, was opened at 2006-09-27 21:34
Message generated for change (Comment added) made by jfunk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.5
Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: James Oakley (jfunk)
Assigned to: Nobody/Anonymous (nobody)
Summary: site-packages isn't created before install_egg_info

Initial Comment:
install_egg_info is called without creating the site-packages 
directory when only a script is specified. This can break 
RPM builds since the site-packages directory isn't present 
beforehand.

Here's an setup.py that causes this problem::

from distutils.core import setup
setup(name='dot2tex',
  version='1.0.1',
  description = 'A Graphviz to LaTeX converter',
  author = 'Kjell Magne Fauske',
  author_email = '[EMAIL PROTECTED]',
  url = "http://www.fauskes.net/code/dot2tex/";,
  download_url 
= "http://www.fauskes.net/code/dot2tex/download/";,
  scripts=['dot2tex/dot2tex.py']
  )

Here's the build output::

+ python setup.py 
install --prefix=/usr --root=/var/tmp/dot2tex-buildroot --record=INSTALLED_FILES
running install
running build
running build_scripts
running install_scripts
creating /var/tmp/dot2tex-buildroot
creating /var/tmp/dot2tex-buildroot/usr
creating /var/tmp/dot2tex-buildroot/usr/bin
copying 
build/scripts-2.5/dot2tex.py -> /var/tmp/dot2tex-buildroot/usr/bin
changing mode 
of /var/tmp/dot2tex-buildroot/usr/bin/dot2tex.py to 755
running install_egg_info
Writing 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info
error: 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info:
 
No such file or directory


--

>Comment By: James Oakley (jfunk)
Date: 2006-11-09 10:55

Message:
Logged In: YES 
user_id=8314

Hmm. For some reason SF didn't send your response, so I didn't see it.

When building RPM packages, software is installed to a completely 
empty directory to avoid pollution to/from the host system. This means 
that the installation process should create any needed directories before 
trying to copy files to them. This is performed automatically when using 
GNU autotools, and in Python when installing scripts and modules.

However, this is not performed when installing egg-info files in 2.5. It's 
not a problem when the package includes modules, since the 
site-packages directory gets created when the modules are installed 
before the egg-info. If a package does not include modules, the directory 
is not there and the egg-info installation fails.

--

Comment By: SourceForge Robot (sf-robot)
Date: 2006-10-14 23:20

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

--

Comment By: Martin v. Löwis (loewis)
Date: 2006-09-28 00:26

Message:
Logged In: YES 
user_id=21627

How can there not be a site-packages directory? It is
created with the installation of Python itself, so it is
always there.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593525 ] Modules/unicodedata.c contains C++-style comment

2006-11-09 Thread SourceForge.net
Bugs item #1593525, was opened at 2006-11-09 10:47
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593525&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mike Kent (mrmakent)
Assigned to: Nobody/Anonymous (nobody)
Summary: Modules/unicodedata.c contains C++-style comment

Initial Comment:
Line 78 of Python2.5 Modules/unicodedata.c is a
C++-style comment, which causes the module to fail to
compile under AIX 4.2.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593525&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593525 ] Modules/unicodedata.c contains C++-style comment

2006-11-09 Thread SourceForge.net
Bugs item #1593525, was opened at 2006-11-09 16:47
Message generated for change (Comment added) made by doerwalter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593525&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mike Kent (mrmakent)
Assigned to: Nobody/Anonymous (nobody)
Summary: Modules/unicodedata.c contains C++-style comment

Initial Comment:
Line 78 of Python2.5 Modules/unicodedata.c is a
C++-style comment, which causes the module to fail to
compile under AIX 4.2.

--

>Comment By: Walter Dörwald (doerwalter)
Date: 2006-11-09 17:31

Message:
Logged In: YES 
user_id=89016

Fixes in r52695 (trunk) and r52696 (release25-maint). Thanks
for the report.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593525&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593634 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593634, was opened at 2006-11-09 20:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593634&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593634&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593442 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593442, was opened at 2006-11-09 14:04
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593442&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
>Status: Deleted
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593442&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593634 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593634, was opened at 2006-11-09 17:48
Message generated for change (Settings changed) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593634&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
>Status: Deleted
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593634&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1566719 ] site-packages isn't created before install_egg_info

2006-11-09 Thread SourceForge.net
Bugs item #1566719, was opened at 2006-09-28 02:34
Message generated for change (Settings changed) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.5
>Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: James Oakley (jfunk)
Assigned to: Nobody/Anonymous (nobody)
Summary: site-packages isn't created before install_egg_info

Initial Comment:
install_egg_info is called without creating the site-packages 
directory when only a script is specified. This can break 
RPM builds since the site-packages directory isn't present 
beforehand.

Here's an setup.py that causes this problem::

from distutils.core import setup
setup(name='dot2tex',
  version='1.0.1',
  description = 'A Graphviz to LaTeX converter',
  author = 'Kjell Magne Fauske',
  author_email = '[EMAIL PROTECTED]',
  url = "http://www.fauskes.net/code/dot2tex/";,
  download_url 
= "http://www.fauskes.net/code/dot2tex/download/";,
  scripts=['dot2tex/dot2tex.py']
  )

Here's the build output::

+ python setup.py 
install --prefix=/usr --root=/var/tmp/dot2tex-buildroot --record=INSTALLED_FILES
running install
running build
running build_scripts
running install_scripts
creating /var/tmp/dot2tex-buildroot
creating /var/tmp/dot2tex-buildroot/usr
creating /var/tmp/dot2tex-buildroot/usr/bin
copying 
build/scripts-2.5/dot2tex.py -> /var/tmp/dot2tex-buildroot/usr/bin
changing mode 
of /var/tmp/dot2tex-buildroot/usr/bin/dot2tex.py to 755
running install_egg_info
Writing 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info
error: 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info:
 
No such file or directory


--

Comment By: James Oakley (jfunk)
Date: 2006-11-09 15:55

Message:
Logged In: YES 
user_id=8314

Hmm. For some reason SF didn't send your response, so I didn't see it.

When building RPM packages, software is installed to a completely 
empty directory to avoid pollution to/from the host system. This means 
that the installation process should create any needed directories before 
trying to copy files to them. This is performed automatically when using 
GNU autotools, and in Python when installing scripts and modules.

However, this is not performed when installing egg-info files in 2.5. It's 
not a problem when the package includes modules, since the 
site-packages directory gets created when the modules are installed 
before the egg-info. If a package does not include modules, the directory 
is not there and the egg-info installation fails.

--

Comment By: SourceForge Robot (sf-robot)
Date: 2006-10-15 04:20

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

--

Comment By: Martin v. Löwis (loewis)
Date: 2006-09-28 05:26

Message:
Logged In: YES 
user_id=21627

How can there not be a site-packages directory? It is
created with the installation of Python itself, so it is
always there.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1566719 ] site-packages isn't created before install_egg_info

2006-11-09 Thread SourceForge.net
Bugs item #1566719, was opened at 2006-09-28 02:34
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: James Oakley (jfunk)
>Assigned to: Phillip J. Eby (pje)
Summary: site-packages isn't created before install_egg_info

Initial Comment:
install_egg_info is called without creating the site-packages 
directory when only a script is specified. This can break 
RPM builds since the site-packages directory isn't present 
beforehand.

Here's an setup.py that causes this problem::

from distutils.core import setup
setup(name='dot2tex',
  version='1.0.1',
  description = 'A Graphviz to LaTeX converter',
  author = 'Kjell Magne Fauske',
  author_email = '[EMAIL PROTECTED]',
  url = "http://www.fauskes.net/code/dot2tex/";,
  download_url 
= "http://www.fauskes.net/code/dot2tex/download/";,
  scripts=['dot2tex/dot2tex.py']
  )

Here's the build output::

+ python setup.py 
install --prefix=/usr --root=/var/tmp/dot2tex-buildroot --record=INSTALLED_FILES
running install
running build
running build_scripts
running install_scripts
creating /var/tmp/dot2tex-buildroot
creating /var/tmp/dot2tex-buildroot/usr
creating /var/tmp/dot2tex-buildroot/usr/bin
copying 
build/scripts-2.5/dot2tex.py -> /var/tmp/dot2tex-buildroot/usr/bin
changing mode 
of /var/tmp/dot2tex-buildroot/usr/bin/dot2tex.py to 755
running install_egg_info
Writing 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info
error: 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info:
 
No such file or directory


--

>Comment By: Martin v. Löwis (loewis)
Date: 2006-11-09 20:14

Message:
Logged In: YES 
user_id=21627

Phillip, can you take a look? If not, please unassign.

--

Comment By: James Oakley (jfunk)
Date: 2006-11-09 15:55

Message:
Logged In: YES 
user_id=8314

Hmm. For some reason SF didn't send your response, so I didn't see it.

When building RPM packages, software is installed to a completely 
empty directory to avoid pollution to/from the host system. This means 
that the installation process should create any needed directories before 
trying to copy files to them. This is performed automatically when using 
GNU autotools, and in Python when installing scripts and modules.

However, this is not performed when installing egg-info files in 2.5. It's 
not a problem when the package includes modules, since the 
site-packages directory gets created when the modules are installed 
before the egg-info. If a package does not include modules, the directory 
is not there and the egg-info installation fails.

--

Comment By: SourceForge Robot (sf-robot)
Date: 2006-10-15 04:20

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

--

Comment By: Martin v. Löwis (loewis)
Date: 2006-09-28 05:26

Message:
Logged In: YES 
user_id=21627

How can there not be a site-packages directory? It is
created with the installation of Python itself, so it is
always there.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593384 ] No IDLE in Windows

2006-11-09 Thread SourceForge.net
Bugs item #1593384, was opened at 2006-11-09 13:49
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593384&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Demos and Tools
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: A_V_I (a_v_i)
Assigned to: Nobody/Anonymous (nobody)
Summary: No IDLE in Windows

Initial Comment:
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?

--

>Comment By: Martin v. Löwis (loewis)
Date: 2006-11-09 20:35

Message:
Logged In: YES 
user_id=21627

Can you please report the properties of the IDLE shortcut?
(right-button on the start menu item, properties)

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593384&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593751 ] poor urllib error handling

2006-11-09 Thread SourceForge.net
Bugs item #1593751, was opened at 2006-11-09 16:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593751&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Nobody/Anonymous (nobody)
Summary: poor urllib error handling

Initial Comment:
I set up a simple server that returns an empty response.  

>>> from socket import *
>>> s = socket()
>>> s.bind(("", ))
>>> while 1: x, c = s.accept(); print c; x.recv(1000);
x.close()
...


Pointing urllib at this gives a traceback:

Python 2.6a0 (trunk:52099M, Oct  3 2006, 09:59:17) 
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> import urllib
>>> urllib.urlopen('http://localhost:/')
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/guido/p/Lib/urllib.py", line 82, in urlopen
return opener.open(url)
  File "/home/guido/p/Lib/urllib.py", line 190, in open
return getattr(self, name)(url)
  File "/home/guido/p/Lib/urllib.py", line 334, in
open_http
return self.http_error(url, fp, errcode, errmsg,
headers)
  File "/home/guido/p/Lib/urllib.py", line 351, in
http_error
return self.http_error_default(url, fp, errcode,
errmsg, headers)
  File "/home/guido/p/Lib/urllib.py", line 608, in
http_error_default
return addinfourl(fp, headers, "http:" + url)
  File "/home/guido/p/Lib/urllib.py", line 951, in __init__
addbase.__init__(self, fp)
  File "/home/guido/p/Lib/urllib.py", line 898, in __init__
self.read = self.fp.read
AttributeError: 'NoneType' object has no attribute 'read'
>>> 

I can repeat this with 2.2.3 and 2.4.3 as well (don't
have 2.3 around for testing).

The direct cause of the problem is that h.getfile() on
line 329 of urllib.py (in head of trunk) returns None.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593751&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593829 ] small problem with description

2006-11-09 Thread SourceForge.net
Bugs item #1593829, was opened at 2006-11-09 18:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593829&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Atlas (bauersj)
Assigned to: Nobody/Anonymous (nobody)
Summary: small problem with description

Initial Comment:
The ctypes documentation incorrectly indicates that
pointers have a "value" attribute.  I believe this should 
instead read a "contents" attribute.

"""
14.14.2.7 Fundamental data types

Subclasses of fundamental data types do not inherit
this   behaviour. So, if a foreign functions restype is
a subclass of c_void_p, you will receive an instance of
this subclass from the function call. Of course, you
can get the value of the pointer by accessing the value
attribute.
"""

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593829&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1593829 ] small problem with description

2006-11-09 Thread SourceForge.net
Bugs item #1593829, was opened at 2006-11-09 18:49
Message generated for change (Settings changed) made by bauersj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593829&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
>Status: Deleted
Resolution: None
Priority: 5
Private: No
Submitted By: Atlas (bauersj)
Assigned to: Nobody/Anonymous (nobody)
Summary: small problem with description

Initial Comment:
The ctypes documentation incorrectly indicates that
pointers have a "value" attribute.  I believe this should 
instead read a "contents" attribute.

"""
14.14.2.7 Fundamental data types

Subclasses of fundamental data types do not inherit
this   behaviour. So, if a foreign functions restype is
a subclass of c_void_p, you will receive an instance of
this subclass from the function call. Of course, you
can get the value of the pointer by accessing the value
attribute.
"""

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1593829&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1566719 ] site-packages isn't created before install_egg_info

2006-11-09 Thread SourceForge.net
Bugs item #1566719, was opened at 2006-09-28 00:34
Message generated for change (Comment added) made by pje
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: James Oakley (jfunk)
Assigned to: Phillip J. Eby (pje)
Summary: site-packages isn't created before install_egg_info

Initial Comment:
install_egg_info is called without creating the site-packages 
directory when only a script is specified. This can break 
RPM builds since the site-packages directory isn't present 
beforehand.

Here's an setup.py that causes this problem::

from distutils.core import setup
setup(name='dot2tex',
  version='1.0.1',
  description = 'A Graphviz to LaTeX converter',
  author = 'Kjell Magne Fauske',
  author_email = '[EMAIL PROTECTED]',
  url = "http://www.fauskes.net/code/dot2tex/";,
  download_url 
= "http://www.fauskes.net/code/dot2tex/download/";,
  scripts=['dot2tex/dot2tex.py']
  )

Here's the build output::

+ python setup.py 
install --prefix=/usr --root=/var/tmp/dot2tex-buildroot --record=INSTALLED_FILES
running install
running build
running build_scripts
running install_scripts
creating /var/tmp/dot2tex-buildroot
creating /var/tmp/dot2tex-buildroot/usr
creating /var/tmp/dot2tex-buildroot/usr/bin
copying 
build/scripts-2.5/dot2tex.py -> /var/tmp/dot2tex-buildroot/usr/bin
changing mode 
of /var/tmp/dot2tex-buildroot/usr/bin/dot2tex.py to 755
running install_egg_info
Writing 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info
error: 
/var/tmp/dot2tex-buildroot/usr/lib64/python2.5/site-packages/dot2tex-1.0.1-py2.5.egg-info:
 
No such file or directory


--

>Comment By: Phillip J. Eby (pje)
Date: 2006-11-10 00:36

Message:
Logged In: YES 
user_id=56214

I've checked in a fix as of revision 52716; presumably it
should be backported to the 2.5 maintenance branch as well.

--

Comment By: Martin v. Löwis (loewis)
Date: 2006-11-09 19:14

Message:
Logged In: YES 
user_id=21627

Phillip, can you take a look? If not, please unassign.

--

Comment By: James Oakley (jfunk)
Date: 2006-11-09 14:55

Message:
Logged In: YES 
user_id=8314

Hmm. For some reason SF didn't send your response, so I didn't see it.

When building RPM packages, software is installed to a completely 
empty directory to avoid pollution to/from the host system. This means 
that the installation process should create any needed directories before 
trying to copy files to them. This is performed automatically when using 
GNU autotools, and in Python when installing scripts and modules.

However, this is not performed when installing egg-info files in 2.5. It's 
not a problem when the package includes modules, since the 
site-packages directory gets created when the modules are installed 
before the egg-info. If a package does not include modules, the directory 
is not there and the egg-info installation fails.

--

Comment By: SourceForge Robot (sf-robot)
Date: 2006-10-15 02:20

Message:
Logged In: YES 
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

--

Comment By: Martin v. Löwis (loewis)
Date: 2006-09-28 03:26

Message:
Logged In: YES 
user_id=21627

How can there not be a site-packages directory? It is
created with the installation of Python itself, so it is
always there.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1566719&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com