Hello, i'm facing a problem with python, i'm actually using the 2.6 version one because the scripts have been made for it, the 3.4 kept talking about syntax error.....
Anyhow it seems that there is still a problem, i'm getting the following error :
Anyhow it seems that there is still a problem, i'm getting the following error :
Error:File "C:\script\cmio.py", in line 25, in <module>
File "C:\script\cmio.py", in line 24, in swig_import_helper
UnboundLocalError: Local variable '_mod' referenced before assignment
Here the begining of the script, included the lines :# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.39 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. # This file is compatible with both classic and new-style classes. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None _mod = None try: fp, pathname, description = imp.find_module('_cmio', [dirname(__file__)]) except ImportError: import _cmio return _cmio if fp is not None: try: _mod = imp.load_module('_cmio', fp, pathname, description) finally: fp.close() return _mod _cmio = swig_import_helper() del swig_import_helper else:Any idea on how to fix this please? thanks