[ python-Bugs-1738559 ] Python-2.5.1.tar.bz2 build failed at Centos-4.5 server

2007-06-17 Thread SourceForge.net
Bugs item #1738559, was opened at 2007-06-17 07:29
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=1738559&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: shuvo (shuvo1470)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python-2.5.1.tar.bz2 build failed at Centos-4.5 server

Initial Comment:
I tried to build Python-2.5.1.tar.bz2 at my Centos-4.5 server but unable to 
build it. there is the error i am getting  

  File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/ChipViewer.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/TypeinViewer.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/pyColorChooser.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/Main.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/TextViewer.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/ColorDB.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/StripViewer.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/DetailsViewer.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/ListViewer.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/PyncheWidget.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/Switchboard.pyo
File not found: 
/var/tmp/python2.5-2.5.1-root/usr/lib/python2.5/Tools/pynche/__init__.pyo


--

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



[ python-Bugs-1738670 ] sqlite3 doc fix

2007-06-17 Thread SourceForge.net
Bugs item #1738670, was opened at 2007-06-17 15:08
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=1738670&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: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mark Carter (comcol)
Assigned to: Nobody/Anonymous (nobody)
Summary: sqlite3 doc fix

Initial Comment:
I ran the example given at
http://docs.python.org/lib/module-sqlite3.html
but it didn't affect the database because no commit() was made. This is a 
"gotcha" that will affect others, too. I recommend appending the example:

---begin
conn = sqlite3.connect('/tmp/example')
# ...
c = conn.cursor()

# Create table
c.execute('''create table stocks
(date text, trans text, symbol text,
 qty real, price real)''')

# Insert a row of data
c.execute("""insert into stocks
  values ('2006-01-05','BUY','RHAT',100,35.14)""")
---end

with the lines:

# commit the changes, and close out
c.close()
conn.commit() # make the changes "stick"
conn.close()


--

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



[ python-Bugs-1738193 ] parser error : out of memory error

2007-06-17 Thread SourceForge.net
Bugs item #1738193, was opened at 2007-06-15 18:24
Message generated for change (Comment added) made by paulbeard
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738193&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: Python 2.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: paul beard (paulbeard)
Assigned to: Nobody/Anonymous (nobody)
Summary: parser error : out of memory error

Initial Comment:
Having some trouble parsing some xml files for GNOME on OS X 10.4.9 in Python 
2.4.4. 

make[3]: Nothing to be done for `all'.
if ! test -d es/; then mkdir es/; fi
if [ -f "C/gdm.xml" ]; then d="../"; else 
d="/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gdm/work/gdm-2.18.2/docs/";
 fi; \
(cd es/ && \
  `which xml2po` -e -p \
"${d}es/es.po" \
"${d}C/gdm.xml" > gdm.xml.tmp && \
cp gdm.xml.tmp gdm.xml && rm -f gdm.xml.tmp)
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
(null)(null)Python(451) malloc: *** vm_allocate(size=1069056) failed (error 
code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Entity: line 1: parser error : out of memory error
 %para.char.mix; 
^
Entity: line 2: 
|footnoteref|xref   
|abbrev|acronym|citation|citerefentry|citetitle|emphasis
^


--

>Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:28

Message:
Logged In: YES 
user_id=201298
Originator: YES

Still trying to find a way to verify what this problem is. Since it's a
python script file[1] that generates the error, and python itself that
keeps requesting more memory as a result[2], what other information can I
provide? It seems like that in itself is a python code test, since nothing
else is involved by python code (excluding the xml files it's choking on).
This is OS-specific, as it works fine in FreeBSD 6.2. Repro-ing it would
require someone to run OS X and install the MacPorts infrastructure. 





1. /opt/local/bin/xml2po: a /opt/local/bin/python script text executable
2. Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
Python(24212) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
(null)Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region

File Added: build.log

--

Comment By: paul beard (paulbeard)
Date: 2007-06-15 19:00

Message:
Logged In: YES 
user_id=201298
Originator: YES

I don't know how to devise a test case but let me see if I can get some
help on this. 

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-15 18:55

Message:
Logged In: YES 
user_id=33168
Originator: NO

This isn't clearly a python problem.  Can you provide a self-contained
test case that includes just python code that demonstrates this problem? 
(ie, something that we can reproduce)  It looks like a ulimit might be set
too low.

--

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



[ python-Bugs-1738193 ] parser error : out of memory error

2007-06-17 Thread SourceForge.net
Bugs item #1738193, was opened at 2007-06-15 18:24
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738193&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: Python 2.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: paul beard (paulbeard)
Assigned to: Nobody/Anonymous (nobody)
Summary: parser error : out of memory error

Initial Comment:
Having some trouble parsing some xml files for GNOME on OS X 10.4.9 in Python 
2.4.4. 

make[3]: Nothing to be done for `all'.
if ! test -d es/; then mkdir es/; fi
if [ -f "C/gdm.xml" ]; then d="../"; else 
d="/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gdm/work/gdm-2.18.2/docs/";
 fi; \
(cd es/ && \
  `which xml2po` -e -p \
"${d}es/es.po" \
"${d}C/gdm.xml" > gdm.xml.tmp && \
cp gdm.xml.tmp gdm.xml && rm -f gdm.xml.tmp)
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
(null)(null)Python(451) malloc: *** vm_allocate(size=1069056) failed (error 
code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Entity: line 1: parser error : out of memory error
 %para.char.mix; 
^
Entity: line 2: 
|footnoteref|xref   
|abbrev|acronym|citation|citerefentry|citetitle|emphasis
^


--

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-17 11:34

Message:
Logged In: YES 
user_id=33168
Originator: NO

Run ulimit -a on both the OS X machine and FreeBSD machine.  My guess is
that the heap size (possibly called virtual memory) is lower on the OS X
box and not enough to allow Python to do the work.

--

Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:28

Message:
Logged In: YES 
user_id=201298
Originator: YES

Still trying to find a way to verify what this problem is. Since it's a
python script file[1] that generates the error, and python itself that
keeps requesting more memory as a result[2], what other information can I
provide? It seems like that in itself is a python code test, since nothing
else is involved by python code (excluding the xml files it's choking on).
This is OS-specific, as it works fine in FreeBSD 6.2. Repro-ing it would
require someone to run OS X and install the MacPorts infrastructure. 





1. /opt/local/bin/xml2po: a /opt/local/bin/python script text executable
2. Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
Python(24212) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
(null)Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region

File Added: build.log

--

Comment By: paul beard (paulbeard)
Date: 2007-06-15 19:00

Message:
Logged In: YES 
user_id=201298
Originator: YES

I don't know how to devise a test case but let me see if I can get some
help on this. 

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-15 18:55

Message:
Logged In: YES 
user_id=33168
Originator: NO

This isn't clearly a python problem.  Can you provide a self-contained
test case that includes just python code that demonstrates this problem? 
(ie, something that we can reproduce)  It looks like a ulimit might be set
too low.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738193&group_id=5470
___

[ python-Bugs-1738193 ] parser error : out of memory error

2007-06-17 Thread SourceForge.net
Bugs item #1738193, was opened at 2007-06-15 18:24
Message generated for change (Comment added) made by paulbeard
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738193&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: Python 2.4
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: paul beard (paulbeard)
Assigned to: Nobody/Anonymous (nobody)
Summary: parser error : out of memory error

Initial Comment:
Having some trouble parsing some xml files for GNOME on OS X 10.4.9 in Python 
2.4.4. 

make[3]: Nothing to be done for `all'.
if ! test -d es/; then mkdir es/; fi
if [ -f "C/gdm.xml" ]; then d="../"; else 
d="/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gdm/work/gdm-2.18.2/docs/";
 fi; \
(cd es/ && \
  `which xml2po` -e -p \
"${d}es/es.po" \
"${d}C/gdm.xml" > gdm.xml.tmp && \
cp gdm.xml.tmp gdm.xml && rm -f gdm.xml.tmp)
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
(null)(null)Python(451) malloc: *** vm_allocate(size=1069056) failed (error 
code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Entity: line 1: parser error : out of memory error
 %para.char.mix; 
^
Entity: line 2: 
|footnoteref|xref   
|abbrev|acronym|citation|citerefentry|citetitle|emphasis
^


--

>Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:38

Message:
Logged In: YES 
user_id=201298
Originator: YES

I am also attaching a screen grab of what this looks like, memory and
CPU-wide: Python is using 70+ % of CPU (and churns away for several
minutes) and memory is 100% used with more than 1 Gb swap in use. 
File Added: pythonmem.png

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-17 11:34

Message:
Logged In: YES 
user_id=33168
Originator: NO

Run ulimit -a on both the OS X machine and FreeBSD machine.  My guess is
that the heap size (possibly called virtual memory) is lower on the OS X
box and not enough to allow Python to do the work.

--

Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:28

Message:
Logged In: YES 
user_id=201298
Originator: YES

Still trying to find a way to verify what this problem is. Since it's a
python script file[1] that generates the error, and python itself that
keeps requesting more memory as a result[2], what other information can I
provide? It seems like that in itself is a python code test, since nothing
else is involved by python code (excluding the xml files it's choking on).
This is OS-specific, as it works fine in FreeBSD 6.2. Repro-ing it would
require someone to run OS X and install the MacPorts infrastructure. 





1. /opt/local/bin/xml2po: a /opt/local/bin/python script text executable
2. Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
Python(24212) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
(null)Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region

File Added: build.log

--

Comment By: paul beard (paulbeard)
Date: 2007-06-15 19:00

Message:
Logged In: YES 
user_id=201298
Originator: YES

I don't know how to devise a test case but let me see if I can get some
help on this. 

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-15 18:55

Message:
Logged In: YES 
user_id=33168
Originator: NO

This isn't clearly a python problem.  Can

[ python-Bugs-1738670 ] sqlite3 doc fix

2007-06-17 Thread SourceForge.net
Bugs item #1738670, was opened at 2007-06-17 08:08
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738670&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: Python 2.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Mark Carter (comcol)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: sqlite3 doc fix

Initial Comment:
I ran the example given at
http://docs.python.org/lib/module-sqlite3.html
but it didn't affect the database because no commit() was made. This is a 
"gotcha" that will affect others, too. I recommend appending the example:

---begin
conn = sqlite3.connect('/tmp/example')
# ...
c = conn.cursor()

# Create table
c.execute('''create table stocks
(date text, trans text, symbol text,
 qty real, price real)''')

# Insert a row of data
c.execute("""insert into stocks
  values ('2006-01-05','BUY','RHAT',100,35.14)""")
---end

with the lines:

# commit the changes, and close out
c.close()
conn.commit() # make the changes "stick"
conn.close()


--

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-17 11:50

Message:
Logged In: YES 
user_id=33168
Originator: NO

Thanks for the report.  I updated the example and tested it.  I did a
slightly different change by doing the commit first and optionally closing
the cursor.

Committed revision 56009.
Committed revision 56010. (2.5)

--

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



[ python-Bugs-1738754 ] Tutorial error in 3.1.2 Strings

2007-06-17 Thread SourceForge.net
Bugs item #1738754, was opened at 2007-06-17 22:11
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=1738754&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: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: otan (otan)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tutorial error in 3.1.2 Strings

Initial Comment:
The backslash is removed by the interpreter in this context:
>>> '"Isn\'t," she said.'
'"Isn\'t," she said.'

correct is:
>>> '"Isn\'t," she said.'
'"Isn't," she said.'

This might be confusing especially for beginners!

--

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



[ python-Bugs-1738193 ] parser error : out of memory error

2007-06-17 Thread SourceForge.net
Bugs item #1738193, was opened at 2007-06-15 18:24
Message generated for change (Comment added) made by paulbeard
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738193&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: Python 2.4
Status: Open
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: paul beard (paulbeard)
Assigned to: Nobody/Anonymous (nobody)
Summary: parser error : out of memory error

Initial Comment:
Having some trouble parsing some xml files for GNOME on OS X 10.4.9 in Python 
2.4.4. 

make[3]: Nothing to be done for `all'.
if ! test -d es/; then mkdir es/; fi
if [ -f "C/gdm.xml" ]; then d="../"; else 
d="/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gdm/work/gdm-2.18.2/docs/";
 fi; \
(cd es/ && \
  `which xml2po` -e -p \
"${d}es/es.po" \
"${d}C/gdm.xml" > gdm.xml.tmp && \
cp gdm.xml.tmp gdm.xml && rm -f gdm.xml.tmp)
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
(null)(null)Python(451) malloc: *** vm_allocate(size=1069056) failed (error 
code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Entity: line 1: parser error : out of memory error
 %para.char.mix; 
^
Entity: line 2: 
|footnoteref|xref   
|abbrev|acronym|citation|citerefentry|citetitle|emphasis
^


--

>Comment By: paul beard (paulbeard)
Date: 2007-06-17 16:59

Message:
Logged In: YES 
user_id=201298
Originator: YES

This seems to be resolved by ripping out and rebuilding/re-installing all
the dependencies that make up gnome-doc-utils (which is where the xml2po
script lives). 

So it looks like I bothered you all for nothing. 

--

Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:38

Message:
Logged In: YES 
user_id=201298
Originator: YES

I am also attaching a screen grab of what this looks like, memory and
CPU-wide: Python is using 70+ % of CPU (and churns away for several
minutes) and memory is 100% used with more than 1 Gb swap in use. 
File Added: pythonmem.png

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-17 11:34

Message:
Logged In: YES 
user_id=33168
Originator: NO

Run ulimit -a on both the OS X machine and FreeBSD machine.  My guess is
that the heap size (possibly called virtual memory) is lower on the OS X
box and not enough to allow Python to do the work.

--

Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:28

Message:
Logged In: YES 
user_id=201298
Originator: YES

Still trying to find a way to verify what this problem is. Since it's a
python script file[1] that generates the error, and python itself that
keeps requesting more memory as a result[2], what other information can I
provide? It seems like that in itself is a python code test, since nothing
else is involved by python code (excluding the xml files it's choking on).
This is OS-specific, as it works fine in FreeBSD 6.2. Repro-ing it would
require someone to run OS X and install the MacPorts infrastructure. 





1. /opt/local/bin/xml2po: a /opt/local/bin/python script text executable
2. Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
Python(24212) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
(null)Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region

File Added: build.log

--

Comment By: paul beard (pau

[ python-Bugs-1738193 ] parser error : out of memory error

2007-06-17 Thread SourceForge.net
Bugs item #1738193, was opened at 2007-06-15 18:24
Message generated for change (Settings changed) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738193&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: Python 2.4
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: paul beard (paulbeard)
Assigned to: Nobody/Anonymous (nobody)
Summary: parser error : out of memory error

Initial Comment:
Having some trouble parsing some xml files for GNOME on OS X 10.4.9 in Python 
2.4.4. 

make[3]: Nothing to be done for `all'.
if ! test -d es/; then mkdir es/; fi
if [ -f "C/gdm.xml" ]; then d="../"; else 
d="/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_gnome_gdm/work/gdm-2.18.2/docs/";
 fi; \
(cd es/ && \
  `which xml2po` -e -p \
"${d}es/es.po" \
"${d}C/gdm.xml" > gdm.xml.tmp && \
cp gdm.xml.tmp gdm.xml && rm -f gdm.xml.tmp)
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Python(451) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
(null)(null)Python(451) malloc: *** vm_allocate(size=1069056) failed (error 
code=3)
Python(451) malloc: *** error: can't allocate region
Python(451) malloc: *** set a breakpoint in szone_error to debug
Entity: line 1: parser error : out of memory error
 %para.char.mix; 
^
Entity: line 2: 
|footnoteref|xref   
|abbrev|acronym|citation|citerefentry|citetitle|emphasis
^


--

Comment By: paul beard (paulbeard)
Date: 2007-06-17 16:59

Message:
Logged In: YES 
user_id=201298
Originator: YES

This seems to be resolved by ripping out and rebuilding/re-installing all
the dependencies that make up gnome-doc-utils (which is where the xml2po
script lives). 

So it looks like I bothered you all for nothing. 

--

Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:38

Message:
Logged In: YES 
user_id=201298
Originator: YES

I am also attaching a screen grab of what this looks like, memory and
CPU-wide: Python is using 70+ % of CPU (and churns away for several
minutes) and memory is 100% used with more than 1 Gb swap in use. 
File Added: pythonmem.png

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-17 11:34

Message:
Logged In: YES 
user_id=33168
Originator: NO

Run ulimit -a on both the OS X machine and FreeBSD machine.  My guess is
that the heap size (possibly called virtual memory) is lower on the OS X
box and not enough to allow Python to do the work.

--

Comment By: paul beard (paulbeard)
Date: 2007-06-17 11:28

Message:
Logged In: YES 
user_id=201298
Originator: YES

Still trying to find a way to verify what this problem is. Since it's a
python script file[1] that generates the error, and python itself that
keeps requesting more memory as a result[2], what other information can I
provide? It seems like that in itself is a python code test, since nothing
else is involved by python code (excluding the xml files it's choking on).
This is OS-specific, as it works fine in FreeBSD 6.2. Repro-ing it would
require someone to run OS X and install the MacPorts infrastructure. 





1. /opt/local/bin/xml2po: a /opt/local/bin/python script text executable
2. Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
Python(24212) malloc: *** vm_allocate(size=1069056) failed (error code=3)
Python(24212) malloc: *** error: can't allocate region
Python(24212) malloc: *** set a breakpoint in szone_error to debug
(null)Python(24212) malloc: *** vm_allocate(size=1069056) failed (error
code=3)
Python(24212) malloc: *** error: can't allocate region

File Added: build.log

--

Comment By: paul beard (

[ python-Bugs-1738754 ] Tutorial error in 3.1.2 Strings

2007-06-17 Thread SourceForge.net
Bugs item #1738754, was opened at 2007-06-17 13:11
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1738754&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: Python 2.5
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: otan (otan)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: Tutorial error in 3.1.2 Strings

Initial Comment:
The backslash is removed by the interpreter in this context:
>>> '"Isn\'t," she said.'
'"Isn\'t," she said.'

correct is:
>>> '"Isn\'t," she said.'
'"Isn't," she said.'

This might be confusing especially for beginners!

--

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-17 19:53

Message:
Logged In: YES 
user_id=33168
Originator: NO

This is correct in context.  If it was printed (ie, the str()), it would
be correct to remove the backslash.  In this case it's taking the repr(),
so the backslash must be in there.

>>> '"Isn\'t," she said.'
'"Isn\'t," she said.'
>>> print '"Isn\'t," she said.'
"Isn't," she said.

Or more specifically:

>>> print repr('"Isn\'t," she said.')
'"Isn\'t," she said.'
>>> print str('"Isn\'t," she said.')
"Isn't," she said.

I only wish I had noticed there wasn't a print before checking in a "fix".
:-)

--

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