The following forum message was posted by hjwp at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3711968:

am having a similar issue - code completion in the console is ok, but only once 
the module imports... code-completion in the editor doesn\'t work at all.

sample:
in Editor:

from Library.<--- no suggestions
from Library.Button import Button  <--unresolved import, underlined in red

in eclipse console:
from Library.<--- no suggestions
from Library.Button import Button <--OK
Button.<-- code completion ok.


that\'s the Resolver One API btw.

logs from code-completion logging:

[quote]
AbstractShell: connecting... 
AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:IronPython id:1 interpreter: 
C:\\Program Files (x86)\\IronPython 2.6\\ipy.exe
AbstractShell: attempts: 0
AbstractShell: maxAttempts: 20
AbstractShell: finishedForGood: false
AbstractShell: connecting attept...1
AbstractShell: serverSocket.accept()! 
AbstractShell: socketToRead.setSoTimeout(5000) 
AbstractShell: connected! 
    AbstractShell: Code completion shell error:
    AbstractShell: ERROR:
    AbstractShell: Traceback (most recent call last):
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\pycompletionserver.py\",
 line 310, in run
    defFile, comps = importsTipper.GenerateTip(data, log)
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\importsTipper.py\",
 line 78, in Find
    mod = _imp(name, log)
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\importsTipper.py\",
 line 57, in _imp
    return _old_imp(initial_name, log)
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\importsTipper.py\",
 line 34, in _imp
    raise ImportError(s)
ImportError: Unable to import module: Library - sys.path: 
[\'C:\\\\Users\\\\Harry\\\\Desktop\\\\eclipse\\\\plugins\\\\org.python.pydev_1.5.7.2010050621\\\\PySrc\',
 \'.\', 
\'C:\\\\Users\\\\Harry\\\\Desktop\\\\eclipse\\\\plugins\\\\org.python.pydev_1.5.7.2010050621\\\\PySrc\',
 
\'C:\\\\Users\\\\Harry\\\\Desktop\\\\eclipse\\\\plugins\\\\org.python.pydev_1.5.7.2010050621\\\\PySrc\',
 \'C:\\\\Program Files (x86)\\\\IronPython 2.6\\\\Lib\', \'C:\\\\Program Files 
(x86)\\\\IronPython 2.6\\\\DLLs\', \'C:\\\\Program Files (x86)\\\\IronPython 
2.6\', \'C:\\\\Program Files (x86)\\\\IronPython 2.6\\\\lib\\\\site-packages\']

Log:Unable to import module: Library - sys.path: 
[\'C:\\\\Users\\\\Harry\\\\Desktop\\\\eclipse\\\\plugins\\\\org.python.pydev_1.5.7.2010050621\\\\PySrc\',
 \'.\', 
\'C:\\\\Users\\\\Harry\\\\Desktop\\\\eclipse\\\\plugins\\\\org.python.pydev_1.5.7.2010050621\\\\PySrc\',
 
\'C:\\\\Users\\\\Harry\\\\Desktop\\\\eclipse\\\\plugins\\\\org.python.pydev_1.5.7.2010050621\\\\PySrc\',
 \'C:\\\\Program Files (x86)\\\\IronPython 2.6\\\\Lib\', \'C:\\\\Program Files 
(x86)\\\\IronPython 2.6\\\\DLLs\', \'C:\\\\Program Files (x86)\\\\IronPython 
2.6\', \'C:\\\\Program Files (x86)\\\\IronPython 2.6\\\\lib\\\\site-packages\']
Traceback (most recent call last):
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\importsTipper.py\",
 line 18, in _imp
    return __import__(name)
ImportError: No module named Library

    AbstractShell:  
    AbstractShell: -1
AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:IronPython id:1 interpreter: 
C:\\Program Files (x86)\\IronPython 2.6\\ipy.exe
    AbstractShell: Code completion shell error:
    AbstractShell: ERROR:
    AbstractShell: Traceback (most recent call last):
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\pycompletionserver.py\",
 line 322, in run
    (f, line, col), foundAs = importsTipper.Search(data)
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\importsTipper.py\",
 line 93, in Find
    mod = getattr(mod, comp)
AttributeError: \'module\' object has no attribute \'Button\'

Log:
    AbstractShell:  
    AbstractShell: -1
AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:IronPython id:1 interpreter: 
C:\\Program Files (x86)\\IronPython 2.6\\ipy.exe
AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:IronPython id:1 interpreter: 
C:\\Program Files (x86)\\IronPython 2.6\\ipy.exe
AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:IronPython id:1 interpreter: 
C:\\Program Files (x86)\\IronPython 2.6\\ipy.exe
AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:IronPython id:1 interpreter: 
C:\\Program Files (x86)\\IronPython 2.6\\ipy.exe
AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:IronPython id:1 interpreter: 
C:\\Program Files (x86)\\IronPython 2.6\\ipy.exe
    AbstractShell: Code completion shell error:
    AbstractShell: ERROR:
    AbstractShell: Traceback (most recent call last):
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\pycompletionserver.py\",
 line 322, in run
    (f, line, col), foundAs = importsTipper.Search(data)
  File 
\"C:\\Users\\Harry\\Desktop\\eclipse\\plugins\\org.python.pydev_1.5.7.2010050621\\PySrc\\importsTipper.py\",
 line 93, in Find
    mod = getattr(mod, comp)
AttributeError: \'module\' object has no attribute \'Button\'
[/quote]
etc etc...

thanks in advance for any help!

------------------------------------------------------------------------------

_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to