Configuring PyQt4 on a Mac

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

Configuring PyQt4 on a Mac

by Keith Lander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have been trying to configure PyQt4 without any success. PyQt4 works  
OK when I use Eric4, but no matter how I try and configure it with  
PyDev I get unresolved import errors. Could someone please let me know  
what steps are needed to get this to work.

Cheers
Keith

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code

Re: Configuring PyQt4 on a Mac

by Fabio Zadrozny-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The only thing that's really needed is adding it to the pythonpath...
E.g.: if you installed it at D:\bin\Python261\Lib\site-packages\PyQt4,
the D:\bin\Python261\Lib\site-packages folder should be in the
pythonpath.

Cheers,

Fabio

On Tue, Oct 13, 2009 at 5:11 AM, Keith Lander <keithlander@...> wrote:

> I have been trying to configure PyQt4 without any success. PyQt4 works
> OK when I use Eric4, but no matter how I try and configure it with
> PyDev I get unresolved import errors. Could someone please let me know
> what steps are needed to get this to work.
>
> Cheers
> Keith
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> pydev-code mailing list
> pydev-code@...
> https://lists.sourceforge.net/lists/listinfo/pydev-code
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code

Re: Configuring PyQt4 on a Mac

by Fabio Zadrozny-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Another thing is that PyQt4 has a bug which could prevent the analysis
from working correctly -- see:
https://sourceforge.net/tracker/index.php?func=detail&aid=2855598&group_id=85796&atid=577329
(not sure if it was already fixed).

Cheers,

Fabio

On Tue, Oct 13, 2009 at 9:03 AM, Fabio Zadrozny <fabio@...> wrote:

> The only thing that's really needed is adding it to the pythonpath...
> E.g.: if you installed it at D:\bin\Python261\Lib\site-packages\PyQt4,
> the D:\bin\Python261\Lib\site-packages folder should be in the
> pythonpath.
>
> Cheers,
>
> Fabio
>
> On Tue, Oct 13, 2009 at 5:11 AM, Keith Lander <keithlander@...> wrote:
>> I have been trying to configure PyQt4 without any success. PyQt4 works
>> OK when I use Eric4, but no matter how I try and configure it with
>> PyDev I get unresolved import errors. Could someone please let me know
>> what steps are needed to get this to work.
>>
>> Cheers
>> Keith
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> pydev-code mailing list
>> pydev-code@...
>> https://lists.sourceforge.net/lists/listinfo/pydev-code
>>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code

Re: Configuring PyQt4 on a Mac

by Keith Lander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

That's the problem. Thanks - it was driving me crazy!

Cheers
Keith

On 13 Oct 2009, at 13:04, Fabio Zadrozny wrote:

> Another thing is that PyQt4 has a bug which could prevent the analysis
> from working correctly -- see:
> https://sourceforge.net/tracker/index.php?func=detail&aid=2855598&group_id=85796&atid=577329
> (not sure if it was already fixed).
>
> Cheers,
>
> Fabio
>
> On Tue, Oct 13, 2009 at 9:03 AM, Fabio Zadrozny <fabio@...>  
> wrote:
>> The only thing that's really needed is adding it to the pythonpath...
>> E.g.: if you installed it at D:\bin\Python261\Lib\site-packages
>> \PyQt4,
>> the D:\bin\Python261\Lib\site-packages folder should be in the
>> pythonpath.
>>
>> Cheers,
>>
>> Fabio
>>
>> On Tue, Oct 13, 2009 at 5:11 AM, Keith Lander <keithlander@...>  
>> wrote:
>>> I have been trying to configure PyQt4 without any success. PyQt4  
>>> works
>>> OK when I use Eric4, but no matter how I try and configure it with
>>> PyDev I get unresolved import errors. Could someone please let me  
>>> know
>>> what steps are needed to get this to work.
>>>
>>> Cheers
>>> Keith
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year.  
>>> Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market  
>>> and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register  
>>> now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> pydev-code mailing list
>>> pydev-code@...
>>> https://lists.sourceforge.net/lists/listinfo/pydev-code
>>>
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> pydev-code mailing list
> pydev-code@...
> https://lists.sourceforge.net/lists/listinfo/pydev-code


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code

Re: Configuring PyQt4 on a Mac

by Keith Lander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I spoke too soon! The unresolved import error went away, but now the  
code hits a runtime error saying the PyQt4 modules are not there.  
Everything looks OK to me, so I've attached some screen shots. Any  
suggestions.

Cheers
Keith









On 13 Oct 2009, at 13:04, Fabio Zadrozny wrote:

> Another thing is that PyQt4 has a bug which could prevent the analysis
> from working correctly -- see:
> https://sourceforge.net/tracker/index.php?func=detail&aid=2855598&group_id=85796&atid=577329
> (not sure if it was already fixed).
>
> Cheers,
>
> Fabio
>
> On Tue, Oct 13, 2009 at 9:03 AM, Fabio Zadrozny <fabio@...>  
> wrote:
>> The only thing that's really needed is adding it to the pythonpath...
>> E.g.: if you installed it at D:\bin\Python261\Lib\site-packages
>> \PyQt4,
>> the D:\bin\Python261\Lib\site-packages folder should be in the
>> pythonpath.
>>
>> Cheers,
>>
>> Fabio
>>
>> On Tue, Oct 13, 2009 at 5:11 AM, Keith Lander <keithlander@...>  
>> wrote:
>>> I have been trying to configure PyQt4 without any success. PyQt4  
>>> works
>>> OK when I use Eric4, but no matter how I try and configure it with
>>> PyDev I get unresolved import errors. Could someone please let me  
>>> know
>>> what steps are needed to get this to work.
>>>
>>> Cheers
>>> Keith
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year.  
>>> Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market  
>>> and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register  
>>> now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> pydev-code mailing list
>>> pydev-code@...
>>> https://lists.sourceforge.net/lists/listinfo/pydev-code
>>>
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> pydev-code mailing list
> pydev-code@...
> https://lists.sourceforge.net/lists/listinfo/pydev-code

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code

Runtime Error.png (47K) Download Attachment
PyDef Pythonpath.png (31K) Download Attachment
PyQt4 Folder.png (31K) Download Attachment

Re: Configuring PyQt4 on a Mac

by Fabio Zadrozny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is that you added the PyQt4 folder to the pythonpath. You
must only adds its parent folder (i.e.: site-packages) to the
pythonpath for things to be properly resolved.

Cheers,

Fabio

On Tue, Oct 13, 2009 at 11:22 AM, Keith Lander <keithlander@...> wrote:

> I spoke too soon! The unresolved import error went away, but now the code
> hits a runtime error saying the PyQt4 modules are not there. Everything
> looks OK to me, so I've attached some screen shots. Any suggestions.
>
> Cheers
> Keith
>
>
>
>
>
>
> On 13 Oct 2009, at 13:04, Fabio Zadrozny wrote:
>
>> Another thing is that PyQt4 has a bug which could prevent the analysis
>> from working correctly -- see:
>>
>> https://sourceforge.net/tracker/index.php?func=detail&aid=2855598&group_id=85796&atid=577329
>> (not sure if it was already fixed).
>>
>> Cheers,
>>
>> Fabio
>>
>> On Tue, Oct 13, 2009 at 9:03 AM, Fabio Zadrozny <fabio@...> wrote:
>>>
>>> The only thing that's really needed is adding it to the pythonpath...
>>> E.g.: if you installed it at D:\bin\Python261\Lib\site-packages\PyQt4,
>>> the D:\bin\Python261\Lib\site-packages folder should be in the
>>> pythonpath.
>>>
>>> Cheers,
>>>
>>> Fabio
>>>
>>> On Tue, Oct 13, 2009 at 5:11 AM, Keith Lander <keithlander@...> wrote:
>>>>
>>>> I have been trying to configure PyQt4 without any success. PyQt4 works
>>>> OK when I use Eric4, but no matter how I try and configure it with
>>>> PyDev I get unresolved import errors. Could someone please let me know
>>>> what steps are needed to get this to work.
>>>>
>>>> Cheers
>>>> Keith
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>>> is the only developer event you need to attend this year. Jumpstart your
>>>> developing skills, take BlackBerry mobile applications to market and
>>>> stay
>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>>> http://p.sf.net/sfu/devconference
>>>> _______________________________________________
>>>> pydev-code mailing list
>>>> pydev-code@...
>>>> https://lists.sourceforge.net/lists/listinfo/pydev-code
>>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> pydev-code mailing list
>> pydev-code@...
>> https://lists.sourceforge.net/lists/listinfo/pydev-code
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> pydev-code mailing list
> pydev-code@...
> https://lists.sourceforge.net/lists/listinfo/pydev-code
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pydev-code mailing list
pydev-code@...
https://lists.sourceforge.net/lists/listinfo/pydev-code