Donate Share

Pydev for Eclipse

Tracker: Bugs

5 Problem analysing matplotlib.cm - ID: 2895968
Last Update: Settings changed ( fabioz )

in Eclipse I have in my code for example:

from matplotlib import cm

palette = cm.gray <-- then the editor says theres a error: Undefined
variable from import: gray

which is a false report.

Alan


Alan Wilter S. da Silva ( alanwilter ) - 2009-11-11 14:40

5

Open

None

Fabio Zadrozny

Editor

None

Public


Comments ( 4 )

Date: 2010-01-03 02:20
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2009-12-20 01:06
Sender: fabiozProject AdminAccepting Donations

If you open a python shell and do:

from matplotlib import cm
print('gray' in dir(cm))

Does it print true?


Date: 2009-11-12 12:11
Sender: alanwilter

I tried what suggested and I think things got worse. Now I have in Error
Log:

eclipse.buildId=M20090917-0800
java.version=1.6.0_15
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_GB
Framework arguments: -product org.eclipse.epp.package.java.product
-keyring /Users/alan/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product
org.eclipse.epp.package.java.product -keyring /Users/alan/.eclipse_keyring
-showlocation


Error
Thu Nov 12 12:11:22 GMT 2009
ERROR WITH STRING:

java.lang.RuntimeException: Couldn't find END@@ on received string.
at
org.python.pydev.editor.codecompletion.shell.AbstractShell.read(AbstractShell.java:641)
at
org.python.pydev.editor.codecompletion.shell.AbstractShell.read(AbstractShell.java:661)
at
org.python.pydev.editor.codecompletion.shell.AbstractShell.getCompletions(AbstractShell.java:891)
at
org.python.pydev.editor.codecompletion.shell.AbstractShell.getTheCompletions(AbstractShell.java:833)
at
org.python.pydev.editor.codecompletion.shell.AbstractShell.internalChangePythonPath(AbstractShell.java:823)
at
org.python.pydev.editor.codecompletion.shell.AbstractShell.getLineCol(AbstractShell.java:937)
at
org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.findDefinition(CompiledModule.java:353)
at
org.python.pydev.editor.codecompletion.revisited.modules.CompiledModule.findDefinition(CompiledModule.java:1)
at
org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDefinition(SourceModule.java:748)
at
org.python.pydev.editor.codecompletion.revisited.modules.SourceModule.findDefinition(SourceModule.java:1)
at
org.python.pydev.editor.refactoring.PyRefactoringFindDefinition.findActualDefinition(PyRefactoringFindDefinition.java:164)
at
org.python.pydev.editor.refactoring.PyRefactoringFindDefinition.findActualDefinition(PyRefactoringFindDefinition.java:72)
at
com.python.pydev.refactoring.refactorer.RefactorerFindDefinition.findDefinition(RefactorerFindDefinition.java:50)
at
com.python.pydev.refactoring.refactorer.Refactorer.findDefinition(Refactorer.java:91)
at
com.python.pydev.refactoring.wizards.rename.PyRenameEntryPoint.checkInitialConditions(PyRenameEntryPoint.java:175)
at
com.python.pydev.refactoring.markoccurrences.MarkOccurrencesJob.checkAnnotations(MarkOccurrencesJob.java:219)
at
com.python.pydev.refactoring.markoccurrences.MarkOccurrencesJob.run(MarkOccurrencesJob.java:126)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)




Date: 2009-11-11 22:13
Sender: fabiozProject AdminAccepting Donations

Have you tried adding 'matplotlib' to the forced builtins? See:
http://pydev.org/manual_101_interpreter.html


Attached File

No Files Currently Attached

Changes ( 13 )

Field Old Value Date By
close_date 2010-01-03 02:20 2010-01-04 11:40 fabioz
allow_comments 0 2010-01-04 11:40 fabioz
status_id Closed 2010-01-04 11:40 fabioz
close_date 2009-12-20 01:07 2010-01-03 02:20 sf-robot
allow_comments 1 2010-01-03 02:20 sf-robot
status_id Pending 2010-01-03 02:20 sf-robot
close_date - 2009-12-20 01:07 fabioz
status_id Open 2009-12-20 01:07 fabioz
summary reporting wrong error 2009-12-20 01:05 fabioz
status_id Pending 2009-11-12 12:11 alanwilter
close_date 2009-11-11 22:13 2009-11-12 12:11 alanwilter
status_id Open 2009-11-11 22:13 fabioz
close_date - 2009-11-11 22:13 fabioz