[Eric] Rope plagin error
Detlev Offenbach
detlev at die-offenbachs.de
Sun Feb 3 15:24:30 GMT 2008
Hi,
your script contains a problem (unknown encoding). The latest snapshot of the
rope plugin won't raise this traceback anymore. It will display a dialog and
let you jump to the problem position. Please get this snapshot via the plugin
repository dialog.
Detlev
On Sonntag, 3. Februar 2008, 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
> ---------------------------------------------------------------------------
>----- File
> "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\Refactori
>ng.py", line 647, in __queryReferences
> unsure = True, task_handle = handle)
> File
> "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\cont
>rib\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\refa
>ctor\occurrences.py", line 25, in find_occurrences
> if self._is_a_match(occurrence):
> File
> "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\refa
>ctor\occurrences.py", line 33, in _is_a_match
> new_pyname = occurrence.get_pyname()
> File
> "C:\Lang\Python\25\Lib\site-packages\eric4plugins\RefactoringRope\rope\refa
>ctor\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\refa
>ctor\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)]
--
Detlev Offenbach
detlev at die-offenbachs.de
More information about the Eric
mailing list