Re: [Pydev-code] Problem with PyDev 1.3.17 and the re module
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2008-06-05 10:55:32
|
Hi Pierre, > > I am completely new to PyDev, and I am using the one delivered on the > Fedora Core 8 with Eclipse. > Once I configured Jython either with the one shipped with Fedora or > the one I downloaded from the jython web site I get this error when > opening a python file within a PyDev project: > > Traceback (innermost last): > File "<string>", line 1, in ? > File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/pyedit_assist_assign_value_to_var_if_None.py", > line 91, in ? > File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/assist_regex_based_proposal.py", > line 32, in ? > File "/usr/share/eclipse/plugins/org.python.pydev.jython_1.3.17/jysrc/assist_regex_based_proposal.py", > line 62, in RegexBasedAssistProposal > AttributeError: module 're' has no attribute 'compile' > > > I really don't understand where that could come from, but this is > really annoying as this generates a lot of errors in the console (plus > I imagine that the regex-based extensions doesn't work). > That seems a packaging error in the pydev that comes with Fedora... Pydev uses a jython version that's distributed within it for that. The module re.py and sre.py that it uses should be at eclipse/plugins/org.python.pydev.jython_1.3.17/Lib. I suggest trying to uninstall your current pydev version and getting the latest from the pydev update site (see http://fabioz.com/pydev/manual_101_install.html ). Cheers, Fabio |