Hola German, A Wednesday 09 June 2010 12:40:38 German Ocampo escrigué: > Hello > > Im newbie in pytables and I have a question regarding to an error > message. I writing a program which basically read a text file to a > pytable and then I want to modify one field in the table according to > a condition related to another field. the program is very simple and > I'm getting the following error: > > File "D:\python\prod_tests\src\test_receivers.py", line 54, in <module> > check_receivers(path_r,1) > File "D:\python\prod_tests\src\test_receivers.py", line 45, in > check_receivers for row in ro_detector.where('completo <= 20000'): > File "C:\Python26\lib\site-packages\tables\table.py", line 1210, in where > return self._where(condition, condvars, start, stop, step) > File "C:\Python26\lib\site-packages\tables\table.py", line 1226, in > _where condvars = self._requiredExprVars(condition, condvars, depth=3) > File "C:\Python26\lib\site-packages\tables\table.py", line 977, in > _requiredExprVars > user_locals = user_frame.f_locals > File "C:\Python26\lib\site-packages\psyco\support.py", line 124, in > __getattr__ > raise AttributeError, ("local variables of functions run by Psyco " > AttributeError: local variables of functions run by Psyco cannot be > accessed in any way, sorry > Closing remaining open files: temp.h5... done > > I got the same error in Windows xp as well as Ubuntu 10.4.
Well, by looking into the error, it seems that psyco is the responsible of it. Just disable psyco. Do you really need psyco for doing this? We all should always remember the mantra: "premature optimization is the root of all evil". -- Francesc Alted ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users