On Feb 03 2008 18:23 +0330, Tonal wrote: > -------------------------------------------------------------------------------- > 2008-02-03, 20:51:51 > -------------------------------------------------------------------------------- > <class 'rope.base.exceptions.ModuleSyntaxError'>: > Syntax error in file <src/ModelBusinessman.py> line <0>: unknown > encoding: cp1251 > --------------------------------------------------------------------------------
It seems there is a problem with file encoding. Would you attach a minimal ``src/ModelBusinessman.py`` file that produces this error? > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\Refactoring.py", > line 647, in __queryReferences > unsure = True, task_handle = handle) Setting unsure by default is not a good idea. > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\contrib\codeassist.py", > line 104, in find_occurrences > for occurrence in finder.find_occurrences(resource): > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\refactor\occurrences.py", > line 25, in find_occurrences > if self._is_a_match(occurrence): > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\refactor\occurrences.py", > line 33, in _is_a_match > new_pyname = occurrence.get_pyname() > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\refactor\occurrences.py", > line 67, in get_pyname > return self.tools.name_finder.get_pyname_at(self.offset) > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\refactor\occurrences.py", > line 201, in get_name_finder > self.pymodule = self.pycore.resource_to_pyobject(self.resource) > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\base\pycore.py", > line 195, in resource_to_pyobject > return self.module_cache.get_pymodule(resource) > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\base\pycore.py", > line 292, in get_pymodule > result = PyModule(self.pycore, resource.read(), resource=resource) > File > "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\base\pyobjectsdef.py", > line 165, in __init__ > raise exceptions.ModuleSyntaxError(filename, e.lineno, e.msg) > > -------------------------------------------------------------------------------- > Version Numbers: > Python 2.5.1 > Qt 4.3.3 > PyQt4 4.3-snapshot-20071225 > sip 4.7-snapshot-20071228 > QScintilla 2-snapshot-20080106 > eric4 4.1-snapshot-20080118 (r1832) > > Platform: win32 > 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] Regards, Ali _______________________________________________ Eric mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/eric
