Taylor, Martin | 4 Dec 15:05
Picon
Favicon

Windows 7 64-bit

I'm looking for an lxml Windows binary installer for Windows 7 64-bit. On http://pypi.python.org/pypi/lxml/2.2.4 I see lxml-2.2.4.win-amd64-py2.6.exe.  Is this specifically, and only, for AMD 64-bit processors or will it install and
run on all 64-bit Windows platforms, including Windows 7 on Intel hardware?
 
Thanks,
Martin Taylor
_______________________________________________
lxml-dev mailing list
lxml-dev <at> codespeak.net
http://codespeak.net/mailman/listinfo/lxml-dev
Stefan Behnel | 4 Dec 15:21
Picon
Favicon
Gravatar

Re: Windows 7 64-bit

[and to the list...]

Taylor, Martin, 04.12.2009 15:05:
> I'm looking for an lxml Windows binary installer for Windows 7 64-bit.
> On http://pypi.python.org/pypi/lxml/2.2.4 I see
> lxml-2.2.4.win-amd64-py2.6.exe.  Is this specifically, and only, for AMD
> 64-bit processors or will it install and run on all 64-bit Windows
> platforms, including Windows 7 on Intel hardware?

Did you try it?

Stefan
Taylor, Martin | 4 Dec 15:29
Picon
Favicon

Re: Windows 7 64-bit

Not yet.  I should be getting my new Win 7 64-bit system later today.  I've just be searching online for the
various packages I'll need to install on this new system to prepare it for use as a test platform.  If I don't
get any replies to the contrary I will try it later today. 

Martin

> -----Original Message-----
> From: Stefan Behnel [mailto:stefan_ml <at> behnel.de] 
> Sent: Friday, December 04, 2009 8:20 AM
> To: Taylor, Martin
> Subject: Re: [lxml-dev] Windows 7 64-bit
> 
> 
> Taylor, Martin, 04.12.2009 15:05:
> > I'm looking for an lxml Windows binary installer for 
> Windows 7 64-bit.
> > On http://pypi.python.org/pypi/lxml/2.2.4 I see 
> > lxml-2.2.4.win-amd64-py2.6.exe.  Is this specifically, and 
> only, for 
> > AMD 64-bit processors or will it install and run on all 
> 64-bit Windows 
> > platforms, including Windows 7 on Intel hardware?
> 
> Did you try it?
> 
> Stefan
> 
> 
Stefan Behnel | 4 Dec 22:21
Picon
Favicon
Gravatar

Re: Critical crashes on Windows under high load

Hi,

Martin Aspeli, 02.11.2009 03:58:
> We have an incredibly frustrating, show-stopping problem using lxml (under
> Deliverance, in front of a repoze.zope2 pipeline serving up a Plone site) on
> Windows.
> 
> Under high load, the Python process crashes. There is no traceback in the log,
> so I can't identify where it actually happens, but we get a Windows error
> dialogue saying python.exe (or pythonservice.exe if running as a Windows
> service) has crashed in etree.pyd (at some binary address, no line numbers or
> function references).
>[...]

Any news from this front?

Stefan
Christian Heimes | 5 Dec 02:37
Picon
Favicon

Re: Windows 7 64-bit

Taylor, Martin schrieb:
> I'm looking for an lxml Windows binary installer for Windows 7 64-bit. On
http://pypi.python.org/pypi/lxml/2.2.4 I see lxml-2.2.4.win-amd64-py2.6.exe.  Is this
specifically, and only, for AMD 64-bit processors or will it install and
> run on all 64-bit Windows platforms, including Windows 7 on Intel hardware?

It will install on all AMD64 / X86_64 compatible 64bit Windows platforms
but not on IA64. All modern Intel CPUs are based on AMD64 architecture.

Christian
Martin Aspeli | 5 Dec 05:15
Picon

Re: Critical crashes on Windows under high load

Stefan Behnel wrote:
> Hi,
> 
> Martin Aspeli, 02.11.2009 03:58:
>> We have an incredibly frustrating, show-stopping problem using lxml (under
>> Deliverance, in front of a repoze.zope2 pipeline serving up a Plone site) on
>> Windows.
>>
>> Under high load, the Python process crashes. There is no traceback in the log,
>> so I can't identify where it actually happens, but we get a Windows error
>> dialogue saying python.exe (or pythonservice.exe if running as a Windows
>> service) has crashed in etree.pyd (at some binary address, no line numbers or
>> function references).
>> [...]
> 
> Any news from this front?

Unfortunately not. We tried to simplify the xpath expressions, but it 
still crashed (perhaps a bit less often). Our "solution" was to ditch 
Deliverance in favour of collective.xdv, which still uses lxml, but uses 
the XDV XSLT-based transformation process. So now, we're only using lxml 
to execute two XSLT files (the first one generates the second).

Martin

--

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book
jholg | 5 Dec 23:47
Picon
Picon

trunk build problem

Hi,

I just wanted to start work on the iso schematron support and
created a branch off the current trunk for this.
However:

holger <at> lisa:/data/work/lxml$ python setup.py build
Building lxml version 2.3.dev-69913.
Building with Cython 0.11.2.
Using build configuration of libxslt 1.1.22
Building against libxml2/libxslt in the following directory: /usr/lib
running build
running build_py
running build_ext
cythoning src/lxml/lxml.etree.pyx to src/lxml/lxml.etree.c
warning: /data/work/lxml/src/lxml/python.pxd:15:4: slice already a builtin Cython type
warning: /data/work/lxml/src/lxml/python.pxd:20:4: unicode already a builtin Cython type

Error converting Pyrex file to C:
------------------------------------------------------------
...
        c_child = _findChildForwards(c_node, 0)
        while c_child is not NULL:
            if c_child.type == tree.XML_ELEMENT_NODE:
                for i in xrange(c_tag_count):
                    if _tagMatchesExactly(c_child, c_ns_tags[2*i], c_ns_tags[2*i+1]):
                        c_next = _findChildForwards(c_child, 0) or _nextElement(c_child)
                                                               ^
------------------------------------------------------------

/data/work/lxml/src/lxml/cleanup.pxi:246:64: Cannot assign type 'int' to 'xmlNode *'
building 'lxml.etree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC
-I/usr/include/libxml2 -I/usr/include/python2.5 -c src/lxml/lxml.etree.c -o
build/temp.linux-i686-2.5/src/lxml/lxml.etree.o -w
src/lxml/lxml.etree.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
holger <at> lisa:/data/work/lxml$              

Holger     
--

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
Stefan Behnel | 5 Dec 23:53
Picon
Favicon
Gravatar

Re: trunk build problem


jholg <at> gmx.de, 05.12.2009 23:47:
>                         c_next = _findChildForwards(c_child, 0) or _nextElement(c_child)
>                                                                ^
> ------------------------------------------------------------
> 
> /data/work/lxml/src/lxml/cleanup.pxi:246:64: Cannot assign type 'int' to 'xmlNode *'

Yep, I remember that being new in Cython 0.12, "and/or" now have Python
semantics everywhere, also for C types. You'll need 0.12 to build lxml 2.3.

I'll update the docs accordingly.

Stefan
dsoulayrol | 6 Dec 11:28
Picon
Favicon

XML Catalogs

Hello.

I'd like to use catalogs to locate XSL stylesheets the way it is done
in this document:

http://www.sagehill.net/docbookxsl/WriteCatalog.html

I'm not sure it is possible to do this with lxml, and how I could
achieve this. The only information I found on using catalogs is the use
of external_id etree.DTD: 

http://codespeak.net/lxml/validation.html

Does anyone has the answer?
--

-- 
David
Stefan Behnel | 6 Dec 12:02
Picon
Favicon
Gravatar

Re: XML Catalogs


dsoulayrol <at> free.fr, 06.12.2009 11:28:
> I'd like to use catalogs to locate XSL stylesheets the way it is done
> in this document:
> 
> http://www.sagehill.net/docbookxsl/WriteCatalog.html

lxml's catalog support is based on libxml2:

http://xmlsoft.org/catalog.html

Is anything not working for you regarding catalogs?

Stefan

Gmane