On Sat, Nov 24, 2012 at 1:42 PM, Ondřej Čertík <ondrej.cer...@gmail.com> wrote:
> Hi,
>
> I am using Ubuntu 12.04, numexpr-1.4.2, hdf5-1.8.6 and tables-2.4.0. I
> am using the latest numpy 1.7.x from the release branch, in
> particular, I am using
> the commit 3a52aa0.
>
> After installing everything I get:
>
> $ python
> Python 2.6.4 (r264:75706, Dec 17 2011, 17:17:12)
> [GCC 4.6.1] on linux3
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import tables
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File 
> "/home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/tables/__init__.py",
> line 64, in <module>
>     from tables.file import File, openFile, copyFile
>   File 
> "/home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/tables/file.py",
> line 47, in <module>
>     from tables.table import Table
>   File 
> "/home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/tables/table.py",
> line 27, in <module>
>     from tables import tableExtension
>   File "tableExtension.pyx", line 31, in init tables.tableExtension
> (tables/tableExtension.c:16214)
>   File 
> "/home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/tables/conditions.py",
> line 31, in <module>
>     from numexpr.necompiler import typecode_to_kind
> ImportError: No module named necompiler
>>>>
>
> But numexpr itself seems to be working just fine:
>
>>>> from numexpr.necompiler import typecode_to_kind
>>>>
>
>
> So there must be some trick here, and I didn't figure it out so far.
> Does anyone know what is going on? It looks like some paths are not
> propagated properly in tableExtension.pyx?

Ok, I forgot to manually erase old tables installation, i.e. this
fixed my problem:

rm -rf /home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/tables/

reinstall tables.

Sorry about that. This feature of Python is highly annoying, that it
picks up the old installation and things stop working.

Ondrej

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to