I have made an intensive investigation into this one. I am java developer not a python guy but still I think you would consider my findings interesting:
Looks like it is a problem with the state of python bullt-in time module at the moment of the failure. The problem stems from fact that the very first invocation of time.time() invocation yields NaN. I have tried to investigate the time method and time module but both dir() and help() would work just fine and produce believable results. Then I noted the traceback of the failure is not a full length so I added explicit traceback.print_stack() call nearby - AND THE DAMMED THING JUST STARTED TO WORK!!!!!!!!!!!!!!!!! The traceback.print_stack() must internally manipulate the python modules loaded and make some change to it. There are some interesting constructs on the stack - e.g. yield based iterator or some native code - might this have something with the problem? I have run into similar problem This is the modified /usr/share/pyshared/desktopcouch/application/local_files.py save_to_file method starting at line 157 def save_to_file(self, file_name): """Save to file.""" container = os.path.split(file_name)[0] import traceback, sys, time sys.stderr.write( """ ---------------------------------- Traceback ---------------------------------- """) traceback.print_stack() sys.stderr.write(""" Time %s --------------------------------------- """ % time.time) fd, temp_file_name = tempfile.mkstemp(dir=container) f = os.fdopen(fd, "w") try: self._c.write(f) finally: f.close() os.rename(temp_file_name, file_name) Is there some linux & python guy willing to help me to investigate it further and come to reasonable conclusion? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/886159 Title: desktopcouch Value error cannot covert float Nan to integer To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/desktopcouch/+bug/886159/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs