Hi!
Sorry for not writing to you earlier. Lets try it this way. The root problem is
following. I am using Pytables version 2.0.3. I found out that when I use
readWhere function I get the error:
File "C:\Python24\Lib\site-packages\tables\table.py", line 1276, in readWhere
splitted = self._splitCondition(condition, condvars)
File "C:\Python24\Lib\site-packages\tables\table.py", line 1091, in _splitCond
ition
splitted = split_condition(condition, typemap, indexedcols, copycols)
File "C:\Python24\Lib\site-packages\tables\conditions.py", line 116, in split_
condition
expr = stringToExpression(condition, typemap, {})
File "C:\Python24\Lib\site-packages\tables\numexpr\compiler.py", line 194, in
stringToExpression
old_ctx = expressions._context.ctx
AttributeError: 'thread._local' object has no attribute 'ctx'
Now, I know you fixed this problem by posting a new SVN version. The question
is how can I include these patches when I come to an error without installing
the whole PytTables package. I want o bypass the compiling stuff. Is this
possible?
Manny thanks!
Cheers, Dragan.
--- On Wed, 6/25/08, Francesc Alted <[EMAIL PROTECTED]> wrote:
> From: Francesc Alted <[EMAIL PROTECTED]>
> Subject: Re: [Pytables-users] Fwd: Re: instaling svn pytables version
> To: [email protected]
> Date: Wednesday, June 25, 2008, 9:37 AM
> A Wednesday 25 June 2008, dragan savic escrigué:
> > Hi!
> >
> > I am using the latest version of HDF5 - 1.8.1. I guess
> I should
> > compile it with Visual Studio 2003 then, right? I got
> the following
> > message:
> >
> > * Found numpy 1.1.0 package installed.
> > * Found HDF5 headers at
> ``C:\tables-SVN\trunk\HDF5\include``,
> library
> > at ``C:\t bles-SVN\trunk\HDF5\dll``.
> > dll_file hdf5dll.dll C: ables-SVN
> runk\HDF5\lib
> > * Could not find LZO 2 headers and library; disabling
> support for it.
> > * Could not find LZO 1 headers and library; disabling
> support for it.
> > * Could not find bzip2 headers and library; disabling
> support for it.
> > running build_ext
> > No module named msvccompiler in numpy.distutils;
> trying from
> > distutils error: Python was built with Visual Studio
> 2003;
> > extensions must be built with a compiler than can
> generate compatible
> > binaries. Visual Studio 2003 was not found on this
> system. If you
> > have Cygwin installed, you can try compiling with
> MingW32, by passing
> > "-c mingw32" to setup.py.
>
> Well, I'm definitely not an expert on the Windows
> platform, but my
> understanding is that, if you are using a Python
> interpreter compiled
> with VS2003 (the one that is provided in python.org is made
> with this
> compiler), then you will need VS2003 to compile extensions
> (I, for one,
> always use VS2003 for generating PyTables binaries for
> Win). However,
> have in mind that the HDF Group is not distributing
> binaries for VS2003
> anymore, as they have switched to VS2005, so, if you have
> VS2003 you
> will need to compile HDF5 1.8.1 by yourself in order to be
> able to link
> it against your Python interpreter (I'm not sure if
> they support VS2003
> in HDF5 1.8.x, though). Another option is to use HDF5
> 1.6.7, for which
> they are still providing binaries for VS2003 -- PyTables
> doesn't use
> anything specific to HDF5 1.8.x series, so you are safe to
> use 1.6.x
> versions.
>
> Having said, I've heard that, if you can come with a
> Python interpreter
> compiled with MinGW, you can link with MinGW-compiled
> extensions. But,
> as I said before, my understanding is that you won't be
> able to compile
> HDF5 using MinGW yet.
>
> Finally, the HDF Group is providing Cygwin binaries for
> both HDF5 1.6.7
> and 1.8.1, so perhaps Cygwin would be a better bet for what
> you are
> trying to do -- although you may need to google a bit to
> figure out how
> to link these binaries with the Python interpreter.
>
> Hope this helps,
>
> --
> Francesc Alted
> Freelance developer
> Tel +34-964-282-249
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Pytables-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pytables-users
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users