librelist archives

« back to archive

Python IDE Issues

Python IDE Issues

From:
Jonathan Chen
Date:
2010-10-26 @ 07:51
Hello all,

I'm just getting into flask development coming from a django background. I
come from an eclise pydev background, but lately i've been getting this
weird errors here and there with pathing. I'm also having issues with
autoimport and autocomplete with eclipse pydev. I slightly realize what is
going on, but my big question is what kind of python IDE's do you guys use
to avoid those blasted squiggly red lines? I am playing around with
netbeans, and its working but autoimport is having some issues.

I'm still enjoying flask so far, but just curious what people out there have
done to avoid these type of errors.

Thanks,



~Jonathan C.

Re: [flask] Python IDE Issues

From:
Anton Khodakivskiy
Date:
2010-10-26 @ 13:08
I use vim for all of my development. I figured that all the features most 
of the IDEs provide actually dumb me down. 

Consider for example the autocompletion, which I personally dont use too 
much. When the IDE tells the programmer which function the object has, he 
does not pay any attention to the interfaces, that are used. The names 
dont stuck into the head, they pop in and then pop out in a few seconds. 
When the programmer has to type the function name every time, he actually 
has to memorize it, or refer to the documentation. Eventually seeing the 
function name and the docs simultaneously helps to avoid misusing the 
interface. Then he knows more about the system he is using. Besides all 
this most of people who touch type would type in the function name faster 
(if the name is known, of course), than perform the lookup in the 
autocompletion list.

Of course all this comes from my personal experience.

Thanks
Anton 

On Oct 26, 2010, at 10:51 AM, Jonathan Chen wrote:

> Hello all,
> 
> I'm just getting into flask development coming from a django background.
I come from an eclise pydev background, but lately i've been getting this 
weird errors here and there with pathing. I'm also having issues with 
autoimport and autocomplete with eclipse pydev. I slightly realize what is
going on, but my big question is what kind of python IDE's do you guys use
to avoid those blasted squiggly red lines? I am playing around with 
netbeans, and its working but autoimport is having some issues.
> 
> I'm still enjoying flask so far, but just curious what people out there 
have done to avoid these type of errors.
> 
> Thanks,
> 
> 
> 
> ~Jonathan C.

Re: [flask] Python IDE Issues

From:
Armin Ronacher
Date:
2010-10-26 @ 08:33
Hi,

On 2010-10-26 9:51 AM, Jonathan Chen wrote:
> I'm still enjoying flask so far, but just curious what people out there
> have done to avoid these type of errors.
Do yo have any ideas what causes these import problems?


Regards,
Armin

Re: [flask] Python IDE Issues

From:
Гриша
Date:
2010-10-26 @ 08:56
pydev not understand import start with '.' , sample:

from .helpers import _PackageBoundObject, url_for, get_flashed_messages, \
    _tojson_filter, _endpoint_from_view_func
from .wrappers import Request, Response
from .config import ConfigAttribute, Config
from .ctx import _RequestContext

pydev scanning libs and create index for autocomplete and autoimport, but
scaner not understand all import format - in this problem...

I am used PyDev many times, but now use Vim with ropevim and other. I am
more happy :)

2010/10/26 Armin Ronacher <armin.ronacher@active-4.com>

> Hi,
>
> On 2010-10-26 9:51 AM, Jonathan Chen wrote:
> > I'm still enjoying flask so far, but just curious what people out there
> > have done to avoid these type of errors.
> Do yo have any ideas what causes these import problems?
>
>
> Regards,
> Armin
>



-- 
Гриша, всего хорошего :)

Re: [flask] Python IDE Issues

From:
Armin Ronacher
Date:
2010-10-26 @ 09:17
Hi,

On 2010-10-26 10:56 AM, Гриша wrote:
> pydev not understand import start with '.' , sample:
Someone should file a bug report for them then :)


Regards,
Armin

Re: [flask] Python IDE Issues

From:
JimG
Date:
2010-10-26 @ 07:59
Get back to basics and use Vim. You won't regret it.

Cheers, Jim.

On 26 October 2010 08:51, Jonathan Chen <tamasiaina@gmail.com> wrote:

> Hello all,
>
> I'm just getting into flask development coming from a django background. I
> come from an eclise pydev background, but lately i've been getting this
> weird errors here and there with pathing. I'm also having issues with
> autoimport and autocomplete with eclipse pydev. I slightly realize what is
> going on, but my big question is what kind of python IDE's do you guys use
> to avoid those blasted squiggly red lines? I am playing around with
> netbeans, and its working but autoimport is having some issues.
>
> I'm still enjoying flask so far, but just curious what people out there
> have done to avoid these type of errors.
>
> Thanks,
>
>
>
> ~Jonathan C.
>

Re: [flask] Python IDE Issues

From:
mat --
Date:
2010-10-27 @ 06:42
Hello,

Could one of the vim longtime users post their .vimrc file, showing how to
best setup vim for python / flask coding?

Thanks.

Mat

On Tue, Oct 26, 2010 at 9:59 AM, JimG <j.gumbley@gmail.com> wrote:

> Get back to basics and use Vim. You won't regret it.
>
> Cheers, Jim.
>
>
> On 26 October 2010 08:51, Jonathan Chen <tamasiaina@gmail.com> wrote:
>
>> Hello all,
>>
>> I'm just getting into flask development coming from a django background. I
>> come from an eclise pydev background, but lately i've been getting this
>> weird errors here and there with pathing. I'm also having issues with
>> autoimport and autocomplete with eclipse pydev. I slightly realize what is
>> going on, but my big question is what kind of python IDE's do you guys use
>> to avoid those blasted squiggly red lines? I am playing around with
>> netbeans, and its working but autoimport is having some issues.
>>
>> I'm still enjoying flask so far, but just curious what people out there
>> have done to avoid these type of errors.
>>
>> Thanks,
>>
>>
>>
>> ~Jonathan C.
>>
>
>

Re: [flask] Python IDE Issues

From:
Dejan Noveski
Date:
2010-10-27 @ 08:47
http://bitbucket.org/dekomote/vim

<http://bitbucket.org/dekomote/vim>.vimrc and .vim dir. Optimized for python
development, but you can work anything with it. Clone it inside some dir and
just make symlinks to the file and the folder inside your home dir.


On Wed, Oct 27, 2010 at 8:42 AM, mat -- <mat88h@gmail.com> wrote:

> Hello,
>
> Could one of the vim longtime users post their .vimrc file, showing how to
> best setup vim for python / flask coding?
>
> Thanks.
>
> Mat
>
>
> On Tue, Oct 26, 2010 at 9:59 AM, JimG <j.gumbley@gmail.com> wrote:
>
>> Get back to basics and use Vim. You won't regret it.
>>
>> Cheers, Jim.
>>
>>
>> On 26 October 2010 08:51, Jonathan Chen <tamasiaina@gmail.com> wrote:
>>
>>> Hello all,
>>>
>>> I'm just getting into flask development coming from a django background.
>>> I come from an eclise pydev background, but lately i've been getting this
>>> weird errors here and there with pathing. I'm also having issues with
>>> autoimport and autocomplete with eclipse pydev. I slightly realize what is
>>> going on, but my big question is what kind of python IDE's do you guys use
>>> to avoid those blasted squiggly red lines? I am playing around with
>>> netbeans, and its working but autoimport is having some issues.
>>>
>>> I'm still enjoying flask so far, but just curious what people out there
>>> have done to avoid these type of errors.
>>>
>>> Thanks,
>>>
>>>
>>>
>>> ~Jonathan C.
>>>
>>
>>
>


-- 
--
Dejan Noveski
Web Developer
dr.mote@gmail.com
Twitter: http://twitter.com/dekomote | LinkedIn:
http://mk.linkedin.com/in/dejannoveski

Atomidata http://www.atomidata.com

Re: [flask] Python IDE Issues

From:
kevin beckford
Date:
2010-10-26 @ 23:41
> Get back to basics and use Vim. You won't regret it.

Tag files , omni-complete should do it.  Django's requirement for a
settings file silently breaks omni-complete.   Ctags and maybe idutils
should do the rest.   It's worth taking a bit of time to set your vim
rig up when using a new framework.

Tag fies should work in any editor, for completion purposes.  idutils
or gnu global works with python if you type it as text.

Re: [flask] Python IDE Issues

From:
Jonathan Chen
Date:
2010-10-26 @ 23:45
So I am getting to the point where I understand the main issues with eclipse
right now, and I'll probably report a bug on it if it hasn't already been
reported. I will try VIM in the meantime. The only issue i have with VIM in
the short-run is that I often find myself in a mode that I accidentally got
into and I don't know how to back-out of it. So yeah, a learning curve none
the less.

~Jonathan C.

Re: [flask] Python IDE Issues

From:
John Gabriele
Date:
2010-10-27 @ 02:40
On Tue, Oct 26, 2010 at 7:45 PM, Jonathan Chen <tamasiaina@gmail.com> wrote:
> So I am getting to the point where I understand the main issues with eclipse
> right now, and I'll probably report a bug on it if it hasn't already been
> reported. I will try VIM in the meantime. The only issue i have with VIM in
> the short-run is that I often find myself in a mode that I accidentally got
> into and I don't know how to back-out of it. So yeah, a learning curve none
> the less.

If you're:

  * using GNU/Linux,
  * looking to jump ship from Eclipse for something smaller but with
good Python support, and
  * are looking at alternatives to Vim/Emacs,

then you might have a look at [Scribes](http://scribes.sourceforge.net/).

(Note, the requirements page for Scribes currently doesn't mention
that you also need to have the libglib2.0-dev and gnome-common
packages installed.)

---John

Re: [flask] Python IDE Issues

From:
John Gabriele
Date:
2010-10-28 @ 14:39
On Tue, Oct 26, 2010 at 10:40 PM, John Gabriele <jmg3000@gmail.com> wrote:
>
> {snip}
>
> then you might have a look at [Scribes](http://scribes.sourceforge.net/).
>
> (Note, the requirements page for Scribes currently doesn't mention
> that you also need to have the libglib2.0-dev and gnome-common
> packages installed.)

Whoops, missed this: note that if you're on Ubuntu 10.04 or 10.10
there's a PPA package available. See their download page if
interested.

---John

Re: [flask] Python IDE Issues

From:
Jonathan Chen
Date:
2010-10-26 @ 17:16
Yeah, 

I actually will look at VIM for python development. I just need to look at
some plugins for it. I am familiar enough with vim that I can program in 
python.

The main reason why I like to have those type of IDE is that it helps me 
obvious errors in my code a lot faster. I'm not a perfect typist so 
sometimes I have some issues whenever I type it out.

Auto-import is something nice and very appreciated but it is sometimes a 
hassle for some python IDE's. 

Auto-completion is also nice but again its annoying sometimes.

What's nice about IDEs for me is that it really helps with closing tags, 
closing quotations, closing brackets, etc. The main reason I like IDEs for
HTML editing because it helps me make sure I close everything nicely.

Ill look into VIM for that stuff.

Thanks,

Jonathan C.


------Original Message------
From: Anton Khodakivskiy
Sender: flask@librelist.org
To: flask@librelist.org
ReplyTo: flask@librelist.org
Subject: Re: [flask] Python IDE Issues
Sent: Oct 26, 2010 6:08 AM

I use vim for all of my development. I figured that all the features most 
of the IDEs provide actually dumb me down. 

Consider for example the autocompletion, which I personally dont use too 
much. When the IDE tells the programmer which function the object has, he 
does not pay any attention to the interfaces, that are used. The names 
dont stuck into the head, they pop in and then pop out in a few seconds. 
When the programmer has to type the function name every time, he actually 
has to memorize it, or refer to the documentation. Eventually seeing the 
function name and the docs simultaneously helps to avoid misusing the 
interface. Then he knows more about the system he is using. Besides all 
this most of people who touch type would type in the function name faster 
(if the name is known, of course), than perform the lookup in the 
autocompletion list.

Of course all this comes from my personal experience.

Thanks
Anton 

On Oct 26, 2010, at 10:51 AM, Jonathan Chen wrote:

> Hello all,
> 
> I'm just getting into flask development coming from a django background.
I come from an eclise pydev background, but lately i've been getting this 
weird errors here and there with pathing. I'm also having issues with 
autoimport and autocomplete with eclipse pydev. I slightly realize what is
going on, but my big question is what kind of python IDE's do you guys use
to avoid those blasted squiggly red lines? I am playing around with 
netbeans, and its working but autoimport is having some issues.
> 
> I'm still enjoying flask so far, but just curious what people out there 
have done to avoid these type of errors.
> 
> Thanks,
> 
> 
> 
> ~Jonathan C.

[flask] Python IDE Issues

From:
Bruce Wang
Date:
2010-10-27 @ 09:23
On Wed, Oct 27, 2010 at 4:16 AM, Jonathan Chen <tamasiaina@gmail.com> wrote:

> Yeah,
>
> I actually will look at VIM for python development. I just need to look at
> some plugins for it. I am familiar enough with vim that I can program in
> python.
>
> The main reason why I like to have those type of IDE is that it helps me
> obvious errors in my code a lot faster. I'm not a perfect typist so
> sometimes I have some issues whenever I type it out.
>
> Auto-import is something nice and very appreciated but it is sometimes a
> hassle for some python IDE's.
>
> Auto-completion is also nice but again its annoying sometimes.
>
> What's nice about IDEs for me is that it really helps with closing tags,
> closing quotations, closing brackets, etc. The main reason I like IDEs for
> HTML editing because it helps me make sure I close everything nicely.
>
> Ill look into VIM for that stuff.
>
> Thanks,
>
> Jonathan C.
>
>
http://amix.dk/blog/post/19486#The-ultimate-vim-configuration-vimrc

Here is a very good start point for your .vimrc :-)


Happy Hacking,


-- 
simple is good
http://brucewang.net
http://twitter.com/ <http://twitter.com/number5>number5

Re: [flask] Python IDE Issues

From:
mat --
Date:
2010-10-27 @ 11:32
@Dejan, Bruce: thanks for posting this information about vimrc and .vim,
this is very useful :-)

On Wed, Oct 27, 2010 at 11:23 AM, Bruce Wang <bruce@brucewang.net> wrote:

>
> On Wed, Oct 27, 2010 at 4:16 AM, Jonathan Chen <tamasiaina@gmail.com>wrote:
>
>> Yeah,
>>
>> I actually will look at VIM for python development. I just need to look at
>> some plugins for it. I am familiar enough with vim that I can program in
>> python.
>>
>> The main reason why I like to have those type of IDE is that it helps me
>> obvious errors in my code a lot faster. I'm not a perfect typist so
>> sometimes I have some issues whenever I type it out.
>>
>> Auto-import is something nice and very appreciated but it is sometimes a
>> hassle for some python IDE's.
>>
>> Auto-completion is also nice but again its annoying sometimes.
>>
>> What's nice about IDEs for me is that it really helps with closing tags,
>> closing quotations, closing brackets, etc. The main reason I like IDEs for
>> HTML editing because it helps me make sure I close everything nicely.
>>
>> Ill look into VIM for that stuff.
>>
>> Thanks,
>>
>> Jonathan C.
>>
>>
> http://amix.dk/blog/post/19486#The-ultimate-vim-configuration-vimrc
>
> Here is a very good start point for your .vimrc :-)
>
>
> Happy Hacking,
>
>
> --
> simple is good
> http://brucewang.net
> http://twitter.com/ <http://twitter.com/number5>number5
>
>

Re: [flask] Python IDE Issues

From:
danjac354@gmail.com
Date:
2010-10-27 @ 18:31
Since we're sharing vim configs, here's mine :-)

http://bitbucket.org/danjac/vim-settings

On 27 October 2010 12:32, mat -- <mat88h@gmail.com> wrote:
> @Dejan, Bruce: thanks for posting this information about vimrc and .vim,
> this is very useful :-)
> On Wed, Oct 27, 2010 at 11:23 AM, Bruce Wang <bruce@brucewang.net> wrote:
>>
>> On Wed, Oct 27, 2010 at 4:16 AM, Jonathan Chen <tamasiaina@gmail.com>
>> wrote:
>>>
>>> Yeah,
>>>
>>> I actually will look at VIM for python development. I just need to look
>>> at some plugins for it. I am familiar enough with vim that I can program in
>>> python.
>>>
>>> The main reason why I like to have those type of IDE is that it helps me
>>> obvious errors in my code a lot faster. I'm not a perfect typist so
>>> sometimes I have some issues whenever I type it out.
>>>
>>> Auto-import is something nice and very appreciated but it is sometimes a
>>> hassle for some python IDE's.
>>>
>>> Auto-completion is also nice but again its annoying sometimes.
>>>
>>> What's nice about IDEs for me is that it really helps with closing tags,
>>> closing quotations, closing brackets, etc. The main reason I like IDEs for
>>> HTML editing because it helps me make sure I close everything nicely.
>>>
>>> Ill look into VIM for that stuff.
>>>
>>> Thanks,
>>>
>>> Jonathan C.
>>>
>>
>> http://amix.dk/blog/post/19486#The-ultimate-vim-configuration-vimrc
>> Here is a very good start point for your .vimrc :-)
>>
>> Happy Hacking,
>>
>> --
>> simple is good
>> http://brucewang.net
>> http://twitter.com/number5
>>
>
>

Re: [flask] Python IDE Issues

From:
Гриша
Date:
2010-10-26 @ 18:19
2010/10/26 Jonathan Chen <tamasiaina@gmail.com>

> Yeah,
>
> I actually will look at VIM for python development. I just need to look at
> some plugins for it. I am familiar enough with vim that I can program in
> python.
>
> The main reason why I like to have those type of IDE is that it helps me
> obvious errors in my code a lot faster. I'm not a perfect typist so
> sometimes I have some issues whenever I type it out.
>
> Auto-import is something nice and very appreciated but it is sometimes a
> hassle for some python IDE's.
>
>
ropevim http://rope.sourceforge.net/ropevim.html
Rope, a python refactoring library ...

IDE helpers:

   - Auto-completion
   - Definition location
   - Get pydoc
   - Find occurrences
   - Organize imports (remove unused and duplicate imports and sort them)
   - Generating python elements




> Auto-completion is also nice but again its annoying sometimes.
>
>
AutoComplPop http://www.vim.org/scripts/script.php?script_id=1879


> What's nice about IDEs for me is that it really helps with closing tags,
> closing quotations, closing brackets, etc. The main reason I like IDEs for
> HTML editing because it helps me make sure I close everything nicely.
>
> http://www.vim.org/scripts/script.php?script_id=301
xmledit : A filetype plugin to help edit XML, HTML, and SGML documents


> Ill look into VIM for that stuff.
>
> Thanks,
>
> Jonathan C.
>
>
> ------Original Message------
> From: Anton Khodakivskiy
> Sender: flask@librelist.org
> To: flask@librelist.org
> ReplyTo: flask@librelist.org
> Subject: Re: [flask] Python IDE Issues
> Sent: Oct 26, 2010 6:08 AM
>
> I use vim for all of my development. I figured that all the features most
> of the IDEs provide actually dumb me down.
>
> Consider for example the autocompletion, which I personally dont use too
> much. When the IDE tells the programmer which function the object has, he
> does not pay any attention to the interfaces, that are used. The names dont
> stuck into the head, they pop in and then pop out in a few seconds. When the
> programmer has to type the function name every time, he actually has to
> memorize it, or refer to the documentation. Eventually seeing the function
> name and the docs simultaneously helps to avoid misusing the interface. Then
> he knows more about the system he is using. Besides all this most of people
> who touch type would type in the function name faster (if the name is known,
> of course), than perform the lookup in the autocompletion list.
>
> Of course all this comes from my personal experience.
>
> Thanks
> Anton
>
> On Oct 26, 2010, at 10:51 AM, Jonathan Chen wrote:
>
> > Hello all,
> >
> > I'm just getting into flask development coming from a django background.
> I come from an eclise pydev background, but lately i've been getting this
> weird errors here and there with pathing. I'm also having issues with
> autoimport and autocomplete with eclipse pydev. I slightly realize what is
> going on, but my big question is what kind of python IDE's do you guys use
> to avoid those blasted squiggly red lines? I am playing around with
> netbeans, and its working but autoimport is having some issues.
> >
> > I'm still enjoying flask so far, but just curious what people out there
> have done to avoid these type of errors.
> >
> > Thanks,
> >
> >
> >
> > ~Jonathan C.
>
>
>


-- 
Гриша, всего хорошего :)

Re: [flask] Python IDE Issues

From:
Anton Khodakivskiy
Date:
2010-10-26 @ 18:01
Take a look at sparkup for vim html coding

On Oct 26, 2010, at 8:16 PM, Jonathan Chen wrote:

> Yeah, 
> 
> I actually will look at VIM for python development. I just need to look 
at some plugins for it. I am familiar enough with vim that I can program 
in python.
> 
> The main reason why I like to have those type of IDE is that it helps me
obvious errors in my code a lot faster. I'm not a perfect typist so 
sometimes I have some issues whenever I type it out.
> 
> Auto-import is something nice and very appreciated but it is sometimes a
hassle for some python IDE's. 
> 
> Auto-completion is also nice but again its annoying sometimes.
> 
> What's nice about IDEs for me is that it really helps with closing tags,
closing quotations, closing brackets, etc. The main reason I like IDEs for
HTML editing because it helps me make sure I close everything nicely.
> 
> Ill look into VIM for that stuff.
> 
> Thanks,
> 
> Jonathan C.
> 
> 
> ------Original Message------
> From: Anton Khodakivskiy
> Sender: flask@librelist.org
> To: flask@librelist.org
> ReplyTo: flask@librelist.org
> Subject: Re: [flask] Python IDE Issues
> Sent: Oct 26, 2010 6:08 AM
> 
> I use vim for all of my development. I figured that all the features 
most of the IDEs provide actually dumb me down. 
> 
> Consider for example the autocompletion, which I personally dont use too
much. When the IDE tells the programmer which function the object has, he 
does not pay any attention to the interfaces, that are used. The names 
dont stuck into the head, they pop in and then pop out in a few seconds. 
When the programmer has to type the function name every time, he actually 
has to memorize it, or refer to the documentation. Eventually seeing the 
function name and the docs simultaneously helps to avoid misusing the 
interface. Then he knows more about the system he is using. Besides all 
this most of people who touch type would type in the function name faster 
(if the name is known, of course), than perform the lookup in the 
autocompletion list.
> 
> Of course all this comes from my personal experience.
> 
> Thanks
> Anton 
> 
> On Oct 26, 2010, at 10:51 AM, Jonathan Chen wrote:
> 
>> Hello all,
>> 
>> I'm just getting into flask development coming from a django 
background. I come from an eclise pydev background, but lately i've been 
getting this weird errors here and there with pathing. I'm also having 
issues with autoimport and autocomplete with eclipse pydev. I slightly 
realize what is going on, but my big question is what kind of python IDE's
do you guys use to avoid those blasted squiggly red lines? I am playing 
around with netbeans, and its working but autoimport is having some 
issues.
>> 
>> I'm still enjoying flask so far, but just curious what people out there
have done to avoid these type of errors.
>> 
>> Thanks,
>> 
>> 
>> 
>> ~Jonathan C.
> 
>