[Python Glasgow] Using PyTables from PyDev Eclipse

Hedieh Ebrahimi hedieh.ebrahimi at amphos21.com
Thu Oct 24 14:30:40 CEST 2013


hi ,

thanks Dougal, it works now!


On 24 October 2013 13:26, Dougal Matthews <dougal85 at gmail.com> wrote:

> Hi,
>
> I think I spotted a few errors in your pyDev code. Try these lines...
>
> import tables
> fileh=tables.open_file('myfile.h5')
>
>
>
> On 24 October 2013 12:08, Hedieh Ebrahimi <hedieh.ebrahimi at amphos21.com>wrote:
>
>> Hi all,
>> I eclipse and pyDev installed. and previously i was working with python32.
>>
>> Now i installed pyTables and so I also installed python33. So i created a
>> new project and i set up the interpreter as python33.
>>
>> When i type in
>>
>> >>> import tables
>> >>> tables.test()
>>
>> in Python33 IDLE termina, the test finishes correctly.
>>
>> but When i try to use a simple statement like the one below in pyDev; i
>> get the following error.
>>
>> from tables import *
>>
>> fileh=tables.openfile('myfile.h5')
>>
>>
>>
>> error:
>> NameError: name 'tables' is not defined
>>
>> Could somebody please tell me what am i doing possibly wrong and how to
>> fix it ?
>>
>>
>> Thanks in advance
>>
>>
>>
>>
>> _______________________________________________
>> Glasgow mailing list
>> Glasgow at python.org
>> https://mail.python.org/mailman/listinfo/glasgow
>>
>>
>
> _______________________________________________
> Glasgow mailing list
> Glasgow at python.org
> https://mail.python.org/mailman/listinfo/glasgow
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/glasgow/attachments/20131024/886d606c/attachment.html>


More information about the Glasgow mailing list