pydev-code Mailing List for PyDev for Eclipse (Page 29)
Brought to you by:
fabioz
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
(14) |
Apr
(18) |
May
(12) |
Jun
(34) |
Jul
(31) |
Aug
(37) |
Sep
(22) |
Oct
(2) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(1) |
Feb
(4) |
Mar
(9) |
Apr
(1) |
May
|
Jun
(2) |
Jul
(24) |
Aug
(3) |
Sep
(5) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
| 2006 |
Jan
(5) |
Feb
(23) |
Mar
(5) |
Apr
(80) |
May
(26) |
Jun
(13) |
Jul
(13) |
Aug
(4) |
Sep
(31) |
Oct
(24) |
Nov
(6) |
Dec
(2) |
| 2007 |
Jan
(7) |
Feb
|
Mar
(26) |
Apr
(3) |
May
(8) |
Jun
(6) |
Jul
(11) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
(3) |
| 2008 |
Jan
(7) |
Feb
(1) |
Mar
(6) |
Apr
(7) |
May
(9) |
Jun
(14) |
Jul
(9) |
Aug
(6) |
Sep
(10) |
Oct
(5) |
Nov
(8) |
Dec
(5) |
| 2009 |
Jan
(8) |
Feb
(10) |
Mar
(10) |
Apr
(1) |
May
(3) |
Jun
(5) |
Jul
(10) |
Aug
(3) |
Sep
(12) |
Oct
(6) |
Nov
(22) |
Dec
(12) |
| 2010 |
Jan
(10) |
Feb
(17) |
Mar
(5) |
Apr
(9) |
May
(8) |
Jun
(2) |
Jul
(4) |
Aug
(12) |
Sep
(1) |
Oct
(1) |
Nov
(8) |
Dec
|
| 2011 |
Jan
(14) |
Feb
(8) |
Mar
(3) |
Apr
(11) |
May
(6) |
Jun
(5) |
Jul
(10) |
Aug
(7) |
Sep
|
Oct
(4) |
Nov
(4) |
Dec
(8) |
| 2012 |
Jan
|
Feb
(8) |
Mar
(10) |
Apr
(5) |
May
(4) |
Jun
(10) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(11) |
Nov
(1) |
Dec
|
| 2013 |
Jan
(1) |
Feb
(2) |
Mar
(11) |
Apr
(10) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(20) |
Sep
(4) |
Oct
(18) |
Nov
(5) |
Dec
(7) |
| 2014 |
Jan
(3) |
Feb
(5) |
Mar
(7) |
Apr
(5) |
May
(10) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(7) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2015 |
Jan
(1) |
Feb
(1) |
Mar
(8) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
(2) |
Sep
(1) |
Oct
(3) |
Nov
(5) |
Dec
(1) |
| 2016 |
Jan
(26) |
Feb
(10) |
Mar
(4) |
Apr
|
May
(4) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
(3) |
| 2017 |
Jan
(3) |
Feb
|
Mar
(9) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
(9) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
|
| 2018 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
(3) |
| 2019 |
Jan
(4) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
(3) |
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
(11) |
| 2021 |
Jan
(3) |
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
|
From: Fabio Z. <fa...@gm...> - 2008-01-18 09:40:07
|
> I am trying to programmatically create a Python project and add some > source code to it, but I don't know how to configure the project. When > it comes to Java projects, here's more or less what one would do: > > ... > > My question is how would I do something like this for a Python project? > In other words, what variables should I set in the project's build path? > Is there something like JavaCore for PyDev? > Hi, Pydev only has one active interpreter (one for python and one for jython), so, you only need to set the project type... aside from that, you have to create/set the source folder(s). So, after creating the IProject / IFolder(s) you want, just add the PythonNature... e.g.: To add a jython 2.1 nature to a project with a 'src' folder and a 'junit.jar' file in the pythonpath (project name: 'pydev_unit_test_project'), you would do: import org.python.pydev.plugin.nature.PythonNature; ... PythonNature.addNature(project, monitor, PythonNature.JYTHON_VERSION_2_1, "/pydev_unit_test_project/src|/pydev_unit_test_project/junit.jar"); That's been taken from: org.python.pydev.editor.codecompletion.revisited.javaintegration.AbstractJavaIntegrationTestWorkbench (this test sets up the whole pydev-needed structure, configuring the interpreter and projects, so, it's probably a good example on how to configure things in pydev). Cheers, Fabio |
|
From: Florian S. <flo...@gm...> - 2008-01-18 05:05:19
|
Hi all, I am trying to programmatically create a Python project and add some source code to it, but I don't know how to configure the project. When it comes to Java projects, here's more or less what one would do: IProject project = .... IJavaProject jp = JavaCore.create(project); List<IClasspathEntry> cpe = new ArrayList<IClasspathEntry>(); cpe.addAll( jp.getRawClasspath() ); cpe.add( JavaRuntime.getDefaultJREContainerEntry() ); jp.setRawClasspath( cpe ); //add files to jp My question is how would I do something like this for a Python project? In other words, what variables should I set in the project's build path? Is there something like JavaCore for PyDev? Thanks in advance, Florian |
|
From: Fabio Z. <fa...@gm...> - 2008-01-17 15:40:16
|
Hi, This is a bit out of topic of the pydev-code list (please send that to the pydev forum or the pydev-users list...) But just to answer you, take a look at tha faq: http://pydev.sourceforge.net/faq.html#why_raw_input_input_does_not_work_cor= rectly Cheers, Fabio On Jan 17, 2008 12:32 PM, hadrien axel <had...@ya...> wrote: > Hi, > I'm a newbie in Python and I'm trying to use the Eclipse IDE for start > programming with this language, so I installed the Pydev plugin 1.3.11 on > Eclipse 3.3.0. > I prove with this downloaded script example: > > import os, sys > > seguir=3D"" > nota=3D0 > deci=3D0 > car=3D1 > chon=3D0 > rem=3D"" > inversion=3D"" > er=3Ddeci > hex=3D0 > no=3D"" > noe=3D"" > while car=3D=3D1: > try: > option=3Draw_input("Chose an option:\n a) Convert a Binary numbe= r to > Decimal.\n b) Convert a Decimal number to Binary.\n c) Convert a Decima= l > number to Hexadecimal.\nWrite an option: ") > if option=3D=3D"a": > bin=3Dstr(raw_input("Write a binary number: ")) > try: > print int(bin,2), "This is the Decimal" > except: > print "This is not binary" > seguir=3Draw_input("Continue (s/n): ") > if option=3D=3D"b": > try: > num=3Dint(raw_input("Write a Decimal number: ")) > while num>0: > chon=3Dnum%2 > rem+=3Dstr(chon) > num/=3D2 > for caracter in rem: > inversion=3Dcaracter+inversion > print inversion, "This is the Binary" > except: > print "This is not a Decimal" > inversion=3D"" > rem=3D"" > seguir=3Draw_input("Continue(s/n): ") > if option=3D=3D"c": > try: > deci=3Dint(raw_input("Write a Decimal number: ")) > while deci>0: > hex=3Ddeci%16 > if hex<10: > no=3Dstr(hex) > if hex=3D=3D10: > no=3D"A" > if hex=3D=3D11: > no=3D"B" > if hex=3D=3D12: > no=3D"C" > if hex=3D=3D13: > no=3D"D" > if hex=3D=3D14: > no=3D"E" > if hex=3D=3D15: > no=3D"F" > noe+=3Dno > deci/=3D16 > for caracter in noe: > inversion=3Dcaracter+inversion > print inversion,"This is the Hexadecimal." > inversion=3D"" > noe=3D"" > except: > print "This is not a decimal number" > segeuir=3Draw_input("Continue(s/n): ") > except: > print "Invalid option" > seguir=3Draw_input("Continue(s/n): ") > if seguir=3D=3D"s": > car=3D1 > elif seguir=3D=3D"n": > print "ENDED" > car=3D0 > else: > print "Invalid option" > > > When I try to run it with Pydev the console doesn't read the letters I wr= ite > (for the options: a, b, c) so the option is always wrong, but when I run = the > program with the IDLE, I have no problem and all it's ok. Where is the > problem? What can I do? > > Thanks! > > > ________________________________ > > Web Revelaci=F3n Yahoo! 2007: > Premio Favorita del P=FAblico - =A1Vota tu preferida! > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
|
From: hadrien a. <had...@ya...> - 2008-01-17 15:32:35
|
Hi,
I'm a newbie in Python and I'm trying to use the Eclipse IDE for start programming with this language, so I installed the Pydev plugin 1.3.11 on Eclipse 3.3.0.
I prove with this downloaded script example:
import os, sys
seguir=""
nota=0
deci=0
car=1
chon=0
rem=""
inversion=""
er=deci
hex=0
no=""
noe=""
while car==1:
try:
option=raw_input("Chose an option:\n a) Convert a Binary number to Decimal.\n b) Convert a Decimal number to Binary.\n c) Convert a Decimal number to Hexadecimal.\nWrite an option: ")
if option=="a":
bin=str(raw_input("Write a binary number: "))
try:
print int(bin,2), "This is the Decimal"
except:
print "This is not binary"
seguir=raw_input("Continue (s/n): ")
if option=="b":
try:
num=int(raw_input("Write a Decimal number: "))
while num>0:
chon=num%2
rem+=str(chon)
num/=2
for caracter in rem:
inversion=caracter+inversion
print inversion, "This is the Binary"
except:
print "This is not a Decimal"
inversion=""
rem=""
seguir=raw_input("Continue(s/n): ")
if option=="c":
try:
deci=int(raw_input("Write a Decimal number: "))
while deci>0:
hex=deci%16
if hex<10:
no=str(hex)
if hex==10:
no="A"
if hex==11:
no="B"
if hex==12:
no="C"
if hex==13:
no="D"
if hex==14:
no="E"
if hex==15:
no="F"
noe+=no
deci/=16
for caracter in noe:
inversion=caracter+inversion
print inversion,"This is the Hexadecimal."
inversion=""
noe=""
except:
print "This is not a decimal number"
segeuir=raw_input("Continue(s/n): ")
except:
print "Invalid option"
seguir=raw_input("Continue(s/n): ")
if seguir=="s":
car=1
elif seguir=="n":
print "ENDED"
car=0
else:
print "Invalid option"
When I try to run it with Pydev the console doesn't read the letters I write (for the options: a, b, c) so the option is always wrong, but when I run the program with the IDLE, I have no problem and all it's ok. Where is the problem? What can I do?
Thanks!
---------------------------------
Web Revelación Yahoo! 2007:
Premio Favorita del Público - ¡Vota tu preferida! |
|
From: Fabio Z. <fa...@gm...> - 2008-01-14 15:21:31
|
Hi All, Pydev and Pydev Extensions 1.3.11 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: ----------------------------------------------------------------- * Code-analysis: Doesn't report 'statement without effect' within yield. * Code-analysis: @DynamicAttrs now works in direct class access (not only on instance access from a class). * Code-analysis: Names to consider in global do not trigger undefined variables when they have some attribute access. * Code-analysis: Accessing locals() will mark local variables as read. * Code-analysis: No indentation warnings on multiline strings that use double quotes. Release Highlights in Pydev: ---------------------------------------------- * Jython Integration: Java modules may be referenced from pydev projects (working with code-completion, go to definition, etc). * Jython Debugger: Does not attempt to run untraced threads if version <= 2.2.1 (this was a Jython bug that's patched for the current trunk -- note: it prevented the debugger from working correctly with Jython). * Project build: Only referenced projects are rebuilt (and not all projects in the workspace -- e.g.: unreferenced c++ projects). * Spell checking (depends on JDT): Integrated for comments and strings within pydev (eclipse 3.4 should add the support for working without JDT. Reference: http://www.eclipse.org/eclipse/platform-text/3.4/plan.php). * Files without extension: A file without extension can have code-completion / go to definition (as long as the others around it do have extensions) * Debug: Variable substitution is no longer asked twice in debug mode. * Custom Filters: User-defined filters can be specified in the Pydev package explorer. * Debugger: performance improvements to get the existing frames for Python 2.4 and Jython 2.1. * Outline view: Better refresh (doesn't collapse the tree for simple structure changes). * Undo limit: The undo limit set in window > preferences > general > editors > text editors works for pydev. * Editor: Tabs as spaces: The newly added 'insert spaces for tabs' in the general preferences was conflicting with pydev (those settings are now ignored) * Patch by Laurent Dore: Added filter for *.py~ and comments * Delete *.pyc action: also deletes *.pyo files * Ctrl+Click: behaves exactly as F3. * Dedent: No auto-dedent after yield What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software http://www.esss.com.br Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com |
|
From: <gur...@gm...> - 2007-12-09 20:20:52
|
Hello again,
i attempted remove and add python interpreter there is no change.
and i am writing the outputs from idle and eclipse-pydev correspondingly :
<idle>
>>> import sys
>>> print sys.path
['C:\\Python25\\Lib\\idlelib', 'C:\\Windows\\system32\\python25.zip',
'C:\\Python25\\DLLs', 'C:\\Python25\\lib',
'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk',
'C:\\Python25', 'C:\\Python25\\lib\\site-packages',
'C:\\Python25\\lib\\site-packages\\win32',
'C:\\Python25\\lib\\site-packages\\win32\\lib',
'C:\\Python25\\lib\\site-packages\\Pythonwin']
>>> import win32com.client
>>> d=3Dwin32com.client.Dispatch ("ADODB.Command")
>>> print d
<COMObject <unknown>>
</idle>
<eclipse-pydev>
import sys
import win32com.client
print sys.path
d=3Dwin32com.client.Dispatch ("ADODB.Command")
print d
['D:\\dev\\workspace\\pyProject\\src\\myPackage',
'D:\\dev\\workspace\\pyProject\\src', 'C:\\Python25',
'C:\\Python25\\DLLs', 'C:\\Python25\\lib',
'C:\\Python25\\lib\\lib-tk', 'C:\\Python25\\lib\\plat-win',
'C:\\Python25\\lib\\site-packages',
'C:\\Python25\\lib\\site-packages\\Pythonwin',
'C:\\Python25\\lib\\site-packages\\win32',
'C:\\Python25\\lib\\site-packages\\win32\\lib',
'C:\\Windows\\System32\\python25.zip']
Traceback (most recent call last):
File "D:\dev\workspace\pyProject\src\myPackage\myModule.py", line 6,
in <module>
d=3Dwin32com.client.Dispatch ("ADODB.Command")
File "C:\Python25\lib\site-packages\win32com\client\__init__.py",
line 95, in Dispatch
dispatch, userName =3D
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py",
line 98, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py",
line 78, in _GetGoodDispatch
IDispatch =3D pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147024770, 'The specified module could not be
found.', None, None)
</eclipse-pydev>
Thanks,
Gurkan
On Dec 9, 2007 7:42 PM, Fabio Zadrozny <fa...@gm...> wrote:
> It's probably something in your pythonpath (or path) configuration: a
> simple attempt would be removing your python interpreter and adding it
> again to see if it gets any possible changes (otherwise, you'll have
> to identify what's different when you're running from eclipse).
>
> Cheers,
>
> Fabio
>
>
> On Dec 8, 2007 5:21 PM, g=FCrkan serin <gur...@gm...> wrote:
> > Hello everybody,
> >
> > i am using windows vista ultimate with an administrative account,python
> > 2.5 ,eclipse 3.2,pywin32-210.win32-py2.5 and pydev plugin(verson
> > :1.3.10),and here is my problem :
> >
> > <code>
> > import win32com.client
> > win32com.client.Dispatch ("ADODB.Command")
> > </code>
> >
> > and with this code i get the error :
> >
> > Traceback (most recent call last):
> > File "H:\dev\eclipse\workspace\pyProject\src\pyPackage
> > \adDeneme3.py", line 4, in <module>
> > win32com.client.Dispatch ("ADODB.Command")
> > File "E:\Python25\Lib\site-packages\win32com\client\__init__.py",
> > line 95, in Dispatch
> > dispatch, userName =3D
> > dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
> > File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py",
> > line 98, in _GetGoodDispatchAndUserName
> > return (_GetGoodDispatch(IDispatch, clsctx), userName)
> > File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py",
> > line 78, in _GetGoodDispatch
> > IDispatch =3D pythoncom.CoCreateInstance(IDispatch, None, clsctx,
> > pythoncom.IID_IDispatch)
> > pywintypes.com_error: (-2147024770, 'The specified module could not be
> > found.', None, None)
> >
> >
> > when i run this script from idle or command line everything goes
> > fine,i get this error with only pydev and eclipse.
> >
> > thanks
> >
> > ps : i also tried this with Windows XP,in that OS both the idle and
> > eclipse works fine,i had no problem
> >
> >
> > Gurkan
> >
> > -----------------------------------------------------------------------=
--
> > SF.Net email is sponsored by:
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > _______________________________________________
> > pydev-code mailing list
> > pyd...@li...
> > https://lists.sourceforge.net/lists/listinfo/pydev-code
> >
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> pydev-code mailing list
> pyd...@li...
> https://lists.sourceforge.net/lists/listinfo/pydev-code
>
|
|
From: Fabio Z. <fa...@gm...> - 2007-12-09 17:42:16
|
It's probably something in your pythonpath (or path) configuration: a
simple attempt would be removing your python interpreter and adding it
again to see if it gets any possible changes (otherwise, you'll have
to identify what's different when you're running from eclipse).
Cheers,
Fabio
On Dec 8, 2007 5:21 PM, g=FCrkan serin <gur...@gm...> wrote:
> Hello everybody,
>
> i am using windows vista ultimate with an administrative account,python
> 2.5 ,eclipse 3.2,pywin32-210.win32-py2.5 and pydev plugin(verson
> :1.3.10),and here is my problem :
>
> <code>
> import win32com.client
> win32com.client.Dispatch ("ADODB.Command")
> </code>
>
> and with this code i get the error :
>
> Traceback (most recent call last):
> File "H:\dev\eclipse\workspace\pyProject\src\pyPackage
> \adDeneme3.py", line 4, in <module>
> win32com.client.Dispatch ("ADODB.Command")
> File "E:\Python25\Lib\site-packages\win32com\client\__init__.py",
> line 95, in Dispatch
> dispatch, userName =3D
> dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
> File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py",
> line 98, in _GetGoodDispatchAndUserName
> return (_GetGoodDispatch(IDispatch, clsctx), userName)
> File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py",
> line 78, in _GetGoodDispatch
> IDispatch =3D pythoncom.CoCreateInstance(IDispatch, None, clsctx,
> pythoncom.IID_IDispatch)
> pywintypes.com_error: (-2147024770, 'The specified module could not be
> found.', None, None)
>
>
> when i run this script from idle or command line everything goes
> fine,i get this error with only pydev and eclipse.
>
> thanks
>
> ps : i also tried this with Windows XP,in that OS both the idle and
> eclipse works fine,i had no problem
>
>
> Gurkan
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> pydev-code mailing list
> pyd...@li...
> https://lists.sourceforge.net/lists/listinfo/pydev-code
>
|
|
From: <gur...@gm...> - 2007-12-08 20:21:27
|
Hello everybody,
i am using windows vista ultimate with an administrative account,python
2.5 ,eclipse 3.2,pywin32-210.win32-py2.5 and pydev plugin(verson
:1.3.10),and here is my problem :
<code>
import win32com.client
win32com.client.Dispatch ("ADODB.Command")
</code>
and with this code i get the error :
Traceback (most recent call last):
File "H:\dev\eclipse\workspace\pyProject\src\pyPackage
\adDeneme3.py", line 4, in <module>
win32com.client.Dispatch ("ADODB.Command")
File "E:\Python25\Lib\site-packages\win32com\client\__init__.py",
line 95, in Dispatch
dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py",
line 98, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py",
line 78, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147024770, 'The specified module could not be
found.', None, None)
when i run this script from idle or command line everything goes
fine,i get this error with only pydev and eclipse.
thanks
ps : i also tried this with Windows XP,in that OS both the idle and
eclipse works fine,i had no problem
Gurkan
|
|
From: Fabio Z. <fa...@gm...> - 2007-11-27 05:58:10
|
It should be possible... The error you seem to be having is that
you're using a version of pydev and another of pydev extension (so,
pydev extensions seems to be trying to access something that's not
available in pydev).
Cheers,
Fabio
On Nov 26, 2007 9:49 PM, Florian Shkurti <flo...@gm...> wrote:
> Hi everyone,
>
> I have a plug-in that extends org.eclipse.ui.popupMenus
> in order to add an action to the context menu of the PyDev
> editor. Here's the relevant portion of my plugin.xml file:
>
> <viewerContribution
> id="org.eclipse.olm.editor_extensions.python_add_comment"
> targetID="#PythonEditorContext">
> <action
> class="org.eclipse.olm.pinkhippo.editor_extensions.AddCommentDelegate"
> icon="icons/sample.gif"
> id="org.eclipse.olm.editor_extensions.editor_actions.add_comment"
> label="Add Comment"
> menubarPath="additions"/>
> </viewerContribution>
>
> Unfortunately, the code that handles this action and implements
> IEditorActionDelegate has to access the editor, in the following way:
>
> ...
> public void run(IAction action) {
>
> if( editor.getEditorInput() != null &&
> editor.getEditorInput() instanceof IFileEditorInput &&
> editor instanceof AbstractTextEditor){
> ...
>
> I say 'unfortunately', because PyDev seems to be complaining
> about illegal access of some internal module. Here's the error message:
>
> Error received...
> tried to access field
> org.python.pydev.ui.pythonpathconf.InterpreterInfo.modulesManager from
> class com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver
> tried to access field
> org.python.pydev.ui.pythonpathconf.InterpreterInfo.modulesManager from
> class com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver
> java.lang.IllegalAccessError: tried to access field
> org.python.pydev.ui.pythonpathconf.InterpreterInfo.modulesManager from
> class com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver
> at com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver.notifyDefaultPythonpathRestored(InterpreterObserver.java:58)
> at com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver$1.run(InterpreterObserver.java:96)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>
>
> Moreover, since this error occurs the action that I tried to insert in the
> context menu of the PyDev editor never appears there. The same code
> runs perfectly for the context menu of the Java editor (i.e.
> #CompilationUnitEditorContext
> as the targetID).
>
>
> Can anyone tell me what I am doing wrong here?
> Is it possible to extend the context menu of the PyDev editor?
>
>
>
> Thanks,
> Florian
>
> PS: I am running Eclipse 3.2 on Linux, Ubuntu 7.04
> and PyDev 1.3.8.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> pydev-code mailing list
> pyd...@li...
> https://lists.sourceforge.net/lists/listinfo/pydev-code
>
|
|
From: Florian S. <flo...@gm...> - 2007-11-27 05:49:40
|
Hi everyone,
I have a plug-in that extends org.eclipse.ui.popupMenus
in order to add an action to the context menu of the PyDev
editor. Here's the relevant portion of my plugin.xml file:
<viewerContribution
id="org.eclipse.olm.editor_extensions.python_add_comment"
targetID="#PythonEditorContext">
<action
class="org.eclipse.olm.pinkhippo.editor_extensions.AddCommentDelegate"
icon="icons/sample.gif"
id="org.eclipse.olm.editor_extensions.editor_actions.add_comment"
label="Add Comment"
menubarPath="additions"/>
</viewerContribution>
Unfortunately, the code that handles this action and implements
IEditorActionDelegate has to access the editor, in the following way:
...
public void run(IAction action) {
if( editor.getEditorInput() != null &&
editor.getEditorInput() instanceof IFileEditorInput &&
editor instanceof AbstractTextEditor){
...
I say 'unfortunately', because PyDev seems to be complaining
about illegal access of some internal module. Here's the error message:
Error received...
tried to access field
org.python.pydev.ui.pythonpathconf.InterpreterInfo.modulesManager from
class com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver
tried to access field
org.python.pydev.ui.pythonpathconf.InterpreterInfo.modulesManager from
class com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver
java.lang.IllegalAccessError: tried to access field
org.python.pydev.ui.pythonpathconf.InterpreterInfo.modulesManager from
class com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver
at com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver.notifyDefaultPythonpathRestored(InterpreterObserver.java:58)
at com.python.pydev.analysis.additionalinfo.builders.InterpreterObserver$1.run(InterpreterObserver.java:96)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Moreover, since this error occurs the action that I tried to insert in the
context menu of the PyDev editor never appears there. The same code
runs perfectly for the context menu of the Java editor (i.e.
#CompilationUnitEditorContext
as the targetID).
Can anyone tell me what I am doing wrong here?
Is it possible to extend the context menu of the PyDev editor?
Thanks,
Florian
PS: I am running Eclipse 3.2 on Linux, Ubuntu 7.04
and PyDev 1.3.8.
|
|
From: <han...@gm...> - 2007-11-06 07:15:44
|
when installing, klick the small plus next to pydev. there should appear the optional and required parts in the tree control. just check that you do not have the wrong optional part selected. hope that helps, Hannes On 11/5/07, joe shoemaker <joe...@gm...> wrote: > How do you disable the mylar dependency? > > thanks, > joe > > On 11/5/07, Hannes M=FCller <han...@gm...> wrote: > > please disable the optional dependency for mylar, then it will work > > > > hannes > > > > On 11/5/07, joe shoemaker <joe...@gm...> wrote: > > > Right now I am trying to install pydev 1.3.10. I am getting an Mylar > > > error 0.2 or something needed. Mylyn is mylar, now. Has this been > > > solved, if not where can I get mylar package to get it working. > > > > > > joe > > > > > > ---------------------------------------------------------------------= ---- > > > This SF.net email is sponsored by: Splunk Inc. > > > Still grepping through log files to find problems? Stop. > > > Now Search log events and configuration files using AJAX and a browse= r. > > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > > _______________________________________________ > > > pydev-code mailing list > > > pyd...@li... > > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > pydev-code mailing list > > pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
|
From: joe s. <joe...@gm...> - 2007-11-05 20:56:53
|
How do you disable the mylar dependency? thanks, joe On 11/5/07, Hannes M=FCller <han...@gm...> wrote: > please disable the optional dependency for mylar, then it will work > > hannes > > On 11/5/07, joe shoemaker <joe...@gm...> wrote: > > Right now I am trying to install pydev 1.3.10. I am getting an Mylar > > error 0.2 or something needed. Mylyn is mylar, now. Has this been > > solved, if not where can I get mylar package to get it working. > > > > joe > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > pydev-code mailing list > > pyd...@li... > > https://lists.sourceforge.net/lists/listinfo/pydev-code > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
|
From: <han...@gm...> - 2007-11-05 20:53:35
|
please disable the optional dependency for mylar, then it will work hannes On 11/5/07, joe shoemaker <joe...@gm...> wrote: > Right now I am trying to install pydev 1.3.10. I am getting an Mylar > error 0.2 or something needed. Mylyn is mylar, now. Has this been > solved, if not where can I get mylar package to get it working. > > joe > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |
|
From: joe s. <joe...@gm...> - 2007-11-05 20:50:10
|
Right now I am trying to install pydev 1.3.10. I am getting an Mylar error 0.2 or something needed. Mylyn is mylar, now. Has this been solved, if not where can I get mylar package to get it working. joe |
|
From: Fabio Z. <fa...@gm...> - 2007-11-05 19:53:39
|
Hi All, Pydev and Pydev Extensions 1.3.10 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: ----------------------------------------------------------------- * Code-analysis: Doesn't report 'statement without effect' within list comprehension. * Context insensitive code completion: Shows contents of zips/eggs/jars * Go to definition: Working with zips/eggs/jars. Release Highlights in Pydev: ---------------------------------------------- * Symlinks supported in the system pythonpath configuration. * Egg/zip files are now supported. * The creation of a project in a non-default location is now allowed within the workspace * JDT used to get completions from jars (but referencing other java projects is still not supported). * Configuration of pythonpath allows multiple selection for removal. * Configuration of pythonpath allows multiple jars/zips to be added at once. * When configuring the pythonpath, the paths are sorted for selection. * The file extensions that pydev recognizes for python can now be customized. * Patch by Carl Robinson: Code-folding for elements such as for, try, while, etc. * Removed the go to next/previous problem annotation (Eclipse 3.3 already provides a default implementation for it). What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software http://www.esss.com.br Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com |
|
From: patrimith <pad...@gm...> - 2007-11-05 15:12:07
|
You are talking about 'Go To Definition': http://www.fabioz.com/pydev/manual_adv_gotodef.html It is activated by highlighting the text and typing 'F3' or by mousing over the text and using 'CTRL-LEFT_CLICK'. Both PyDev (http://pydev.sf.net/) and PyDev Extensions (http://www.fabioz.com/pydev) have this feature and I consider it to be essential. So long as you have configured both PyDev and your project correctly, you should not have a problem. You probably have your interpreter configured correctly (http://www.fabioz.com/pydev/manual_101_interpreter.html). You can make sure by typing in 'from time import ' and then hit 'CTRL-SPACE'. Is a list of the members in the time module presented? Most likely you have not configured your Python project correctly (http://www.fabioz.com/pydev/manual_101_project_conf2.html). Have you specified a source folder? crybaby-2 wrote: > > I am using Eclipse with PyDev. I would like to know how you click > navigate functions and classes in your project, as in Java. > -- View this message in context: http://www.nabble.com/Eclipse%3A-ctrl-%2B-click-to-go-the-functions-and-classes-tf4752036.html#a13588545 Sent from the pydev-code mailing list archive at Nabble.com. |
|
From: joe s. <joe...@gm...> - 2007-11-05 14:40:07
|
I am using Eclipse with PyDev. I would like to know how you click navigate functions and classes in your project, as in Java. For example in the code below: class Form(BaseForm): If I press Ctrl + move the arrow to "BaseForm" and click on it, eclipse should take me to where "BaseForm" super class is declared. At the moment this is not working for me. Is this functionality included in Eclipse + PyDev? |
|
From: Fabio C. <in...@co...> - 2007-09-19 06:12:28
|
On 18/set/07, at 22:35, Patrick Smith wrote: > Not sure if that was necessary. I use mulitple locations for my > product code and specify them all in zope.conf: > > # Plone Products. > products $DEV_HOME\plone\2.5.3\Products > > # External Products. > products $DEV_HOME\external\Products > > # My Products. > products $DEV_HOME\myproducts\Products > > I just make sure that: > > [1] every Products directory above has an __init__.py and the products > I am interested in. For example, the external products structure would > contain: > Yes, this is doable with manually managed instances, but not practical with environments like buildout where product locations are organized automatically (e.g. parts/Plone-2.5.3-final, parts/dependencies etc.). Best, Fabio Corneti in...@co... |
|
From: Patrick S. <pad...@gm...> - 2007-09-18 20:35:25
|
Not sure if that was necessary. I use mulitple locations for my product code and specify them all in zope.conf: # Plone Products. products $DEV_HOME\plone\2.5.3\Products # External Products. products $DEV_HOME\external\Products # My Products. products $DEV_HOME\myproducts\Products I just make sure that: [1] every Products directory above has an __init__.py and the products I am interested in. For example, the external products structure would contain: $DEV_HOME\external\Products AddRemoveWidget Clouseau FCKeditor __init__.py Each of the AddRemoveWidget, Clouseau, FCKeditor directories would include __init__.py files as well as the files checked out from the Collective svn. [2] Each of the following would be included on the Python PATH: $DEV_HOME\plone\2.5.3 $DEV_HOME\external $DEV_HOME\myproducts NB: $DEV_HOME would be replaced by some path in all cases. |
|
From: Fabio C. <in...@co...> - 2007-09-18 16:17:57
|
As you probably know, Zope 2 can have multiple directories containing product modules, which are put inside the Products. namespace at runtime. A way to make autocompletion work inside Zope 2 products is to put an __init__.py file inside the instance Products directory; however, this approach doesn't work in instances with multiple products directories defined in zope.conf. I gave a quick look at Pydev source code and found the getModulesFoundStructure method, then I arbitrarily changed each top module name by prefixing the string "Products." to it; now for every top module in my test project, I get autocompletion working as I'd like. Is there any evident side effect which could be caused by this kind of module name mangling? If not, I would like to implement a new list of source folders in the project properties called "Zope2 products source folders" which always get "Products." appended by the ModuleManager, in order to ease developing on instances with multiple products directories. Best, Fabio Corneti in...@co... |
|
From: Fabio Z. <fa...@gm...> - 2007-09-10 11:32:46
|
Hi All, Pydev and Pydev Extensions 1.3.9 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions: ----------------------------------------------------------------- * Code-analysis: detects bad indentation (wrong number of indent chars). * Code-analysis: Class may be marked with '@DynamicAttrs' so that the code-analysis doesn't give undefined variable errors. See http://www.fabioz.com/pydev/manual_adv_code_analysis.html#Passing_info_to_code_analysisfor more details. * Mark-Occurrences: Fix: a class that had a call would not be recognized sometimes. * Rename Refactoring: Fix: when different heuristics yielded the same result the text could become garbled. Release Highlights in Pydev: ---------------------------------------------- * Fixed problem when configuring jython * Patch from paulj: debbugger working with jython 2.2rc2 * Patch from Oskar Heck: debbugger can change globals * Added action to delete all .pyc / $py.class files * Added actions to add/remove the pydev configuration from a project (previously, the only way to add a nature was to open a python file within a project). * Ctrl+Shift+O: When used with a selection will consider lines ending with \ (without selection organizes imports) * Auto-add "import" string will not be added when adding a space in the case: from xxximport (just after from xxx) * Templates created with tabs (or spaces indent) are now converted to the indent being used in the editor * Hide non-pydev projects filter working * Don't show assignments/imports after if __name__ == '__main__': in outline * Code-completion: after a completion is requested, pressing '.' will apply that completion (and if it has parameters, they'll not be added). * Code-completion: when a code-completion is applied with Ctrl pressed (toggle mode), parameters are not added. * Assign to local variable/attribute handles constants correctly. * psyco changed for Null object for debug (so, no changes are required to the code if psyco is used while debugging). * Code-folding annotations won't change places. * Pydev package explorer will correctly show outline for files if the project root is set as a source folder. * Pydev package explorer: folders under the pythonpath have a package icon. * Unittest runner: handles multiple selection. What is PyDev? --------------------------- PyDev is a plugin that enables users to use Eclipse for Python and Jython development -- making Eclipse a first class Python IDE -- It comes with many goodies such as code completion, syntax highlighting, syntax analysis, refactor, debug and many others. Cheers, -- Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software http://www.esss.com.br Pydev Extensions http://www.fabioz.com/pydev Pydev - Python Development Enviroment for Eclipse http://pydev.sf.net http://pydev.blogspot.com |
|
From: Fabio Z. <fa...@gm...> - 2007-08-21 20:37:27
|
Currently that's not possible... the only hovers available are over the markers -- so, it has to be done... you can add it as a feature request, or if you do something, please send a patch ;-) Cheers, Fabio On 8/21/07, Florian Shkurti <flo...@gm...> wrote: > > Hi all, > > Is there any way to provide custom text hovers for the PyDev editor > in Eclipse? I was thinking something similar to Java editor's > org.eclipse.jdt.ui.javaEditorTextHovers extension point. > > Is there anything similar for the PyDev editor? > > Thanks in advance, > Florian > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > |
|
From: Florian S. <flo...@gm...> - 2007-08-21 19:00:02
|
Hi all, Is there any way to provide custom text hovers for the PyDev editor in Eclipse? I was thinking something similar to Java editor's org.eclipse.jdt.ui.javaEditorTextHovers extension point. Is there anything similar for the PyDev editor? Thanks in advance, Florian |
|
From: Fabio Z. <fa...@gm...> - 2007-07-19 00:52:42
|
> > > Does the PyDev debugger work with Jython (say 2.2rc2)? > > I was not able to use the PyDev debugger (1.3.6 anyways) on current > versions of Jython (2.2rc2) (it hangs). > > Please report that as a bug... I'll take a look at it. Cheers, Fabio |
|
From: Paul J. <pa...@ed...> - 2007-07-18 22:45:36
|
Hi, =20 I tried searching the mailing-list archives but I got an error from the search-server, and there's nothing on the wiki that I can see, so I'll ask: =20 Does the PyDev debugger work with Jython (say 2.2rc2)? =20 I was not able to use the PyDev debugger (1.3.6 anyways) on current versions of Jython (2.2rc2) (it hangs). =20 I will post a similar request on the Jython mailing-list. =20 Thanks, =20 ..PJ=20 =20 =20 |