[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] How to set up PyGame with Eclipse (PyDev plug-in)?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] How to set up PyGame with Eclipse (PyDev plug-in)?
- From: "Brian Fisher" <brian@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Feb 2008 21:31:47 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 26 Feb 2008 00:31:52 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com; s=gamma;        h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;        bh=4TH6stR0yUAAKGtlTwAD3zrBd24PY978E+l9Pt4eInM=;        b=DY2tLZ1GcWj0jdJtHSdYRcmLVtUFWZD9dMp5ccee3w9qF+vWtfrWqY8Cv/amtlNyBMwvm2mzdc55ivm2vUBmcaxR/1GCXN+NDWdp8mmmD6seH+gPu2ldLV5H9lcp6j3ddxmY8nZa0j9wQxnLEUcNtAaAnEETCI57yLo8RljtgLg=
- Domainkey-signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;        h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;        b=ntQOlVgNtvGjTbOcfzHVZQ4dBI7goeCQwaBmieZFRdb3gMbRkb8yysnRhn7vj5dKGomj3LQrMojrOR9WCMpxyybSbD5i2I9DJBwCX4Tbo9QQ6UPqgu/YEVA/ad8pKcJmfptXzJ4wgWVpl9IOhPmunEHZrBZQN07NjOYLxqPJLz4=
- In-reply-to: <515AB10E-9DED-43D0-B494-0D2FC7D5C92D@xxxxxxxxx>
- References: <515AB10E-9DED-43D0-B494-0D2FC7D5C92D@xxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I use pydev exclusively for all my python work on mac and win.
I'm also running OS X Leopard, with Eclipse 3.3.1.1, a framework build
of Python 2.5, Pygame 1.8.0rc3 with pydev 1.3.13 and the code you
posted doesn't show a problem for me...
when you are editing the file is the pydev perspective openeded?
is your top registered Python interpreter
(Preferences/PyDev/Interpreter - Python) the framework python like
this:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
?
Ignoring the problem, Does the code run OK?
On Mon, Feb 25, 2008 at 4:35 PM, Unnsse Khan <untz786@xxxxxxxxx> wrote:
> Hello there,
>
>  My system configuration is:
>
>  (1) OS X Leopard
>
>  (2) Eclipse 3.3.1 Europa
>
>  (3) Python 2.5
>
>  (4) PyGame 1.8.0rc3  (http://rene.f0o.com/~rene/stuff/macosx/)
>
>  (5) PyDev 1.3.13 (Eclipse plug-in)
>
>  Inside Eclipse's Preferences pane under: PyDev / Python-Interpreter /
>  System PYTHONPATH, I have the included the following libraries:
>
>  pygame, Numeric, Py2App, etc
>
>  I am able to write Python apps using PyGame from the command line and
>  I am also able to run them from within Eclipse.
>
>  The problem I am experiencing is that if I write something as trivial
>  as this:
>
>  import sys, pygame
>  pygame.init()
>
>  Eclipse places a curly red line underneath init() and states this in
>  the Problems view:
>
>  "Undefined variable from import: init"
>
>  Does anyone on this mailing list use Eclipse's PyDev plug-in to help
>  write their prospective Python / PyGame apps?
>
>  Happy programming,
>
>  Unnsse
>