[pydev - Users] Code completion for MySQLdb and minidom

View: New views
4 Messages — Rating Filter:   Alert me  

[pydev - Users] Code completion for MySQLdb and minidom

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=5397680
By: yfliu82

1) import MySQLdb
db=MySQLdb.???
:: code completion did not work, after input "MySQLdb."
:: python has install MySQLdb lib

2) from xml.dom import minidom
xmldoc=minidom.parse("\home\t.xml")
xmldoc.???
:: code completion did not work, after input xmldoc.
 
Can you help to explain the reason?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Code completion for MySQLdb and minidom

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=5399724
By: fabioz

Usually, that happens when the static analysis is not able to gather enough
information to display you this info.

A common approach to solve that is adding the packages you want to the 'forced
builtins': http://fabioz.com/pydev/manual_101_interpreter.html (which in this
case would mean adding 'xml' and 'MySQLdb' to that list), so that it tries to
gather that info from a shell instead of only trying the static analysis.

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Code completion for MySQLdb and minidom

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7611796
By: raulcleary

What does the line "python has install MySQLdb lib" mean specifically.  I'm
having a problem even getting python to import MySQLdb in eclipse (with PyDev)
even though "import MySQLdb" works fine at the command line.  I've tried adding
"MySQLdb" to the Forced Builtins with no luck.  Here's a dump of my
interpreterInfo.py if that helps.
thanks

Momiji:PySrc brian$ python interpreterInfo.py                              
Version2.6
EXECUTABLE:/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.ap
p/Contents/MacOS/Python|
|/Applications/eclipse/plugins/org.python.pydev_1.4.8.2881/PySrcOUT_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6INS_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynloadINS_
PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-oldINS_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tkINS_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwinINS_
PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-macINS_PAT
H
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-sc
riptpackagesINS_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packagesIN
S_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/M
ySQL_python-1.2.3c1-py2.6-macosx-10.3-fat.eggINS_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/s
etuptools-0.6c9-py2.6.eggINS_PATH
|/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zipINS_PATH
@
$
|__builtin__
|__main__
|_ast
|_codecs
|_sre
|_symtable
|_warnings
|errno
|exceptions
|gc
|imp
|marshal
|posix
|pwd
|signal
|sys
|thread
|xxsubtype
|zipimport
Traceback (most recent call last):
  File "interpreterInfo.py", line 138, in <module>
    raise RuntimeError('Ok, this is so that it shows the output (ugly hack for
some platforms, so that it releases the output).')
RuntimeError: Ok, this is so that it shows the output (ugly hack for some platforms,
so that it releases the output).

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users

[pydev - Users] RE: Code completion for MySQLdb and minidom

by SourceForge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=7614499
By: fabioz

Does MySQLdb work when you call from a python script inside eclipse? This usually
means your pythonpath is not correct. Where is MySQLdb installed?

If it works from the command line, you can probably do:
import MySQLdb
print MySQLdb.__file__

and add the dir that contains that file to your pythonpath.

Cheers,

Fabio

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Pydev-users mailing list
Pydev-users@...
https://lists.sourceforge.net/lists/listinfo/pydev-users