Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70802
| From | Mark H Harris <harrismh777@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Slightly OT - using PyUIC from Eclipse |
| Date | 2014-04-30 22:03 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <ljsdih$vvm$2@speranza.aioe.org> (permalink) |
| References | <5360E0FC.70802@gmail.com> <CANXBEFrqndqCeT-9Hgqz7jRCZcmp8nz4VE+ebf-BKsYr54qQqQ@mail.gmail.com> <mailman.9619.1398905375.18130.python-list@python.org> <5361a85a$0$29965$c3e8da3$5496439d@news.astraweb.com> |
On 4/30/14 8:50 PM, Steven D'Aprano wrote:
> On Thu, 01 May 2014 01:49:25 +0100, Steve Simmons wrote:
>
>> <html>
>> <head>
>> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
>> </head>
>> <body bgcolor="#FFFFFF" text="#000000">
>> <br>
>> <div class="moz-cite-prefix">On 30/04/2014 23:49, Fabio Zadrozny
>> wrote:<br>
>> </div>
>> <blockquote
>> cite="mid:CANXBEFrqndqCeT-9Hgqz7jRCZcmp8nz4VE+ebf-BKsYr54qQqQ
>> @mail.gmail.com"
>> type="cite">
>
> And that's about where I stopped reading.
Post as quote:
> I'm trying to set up a new dev environment using Windows 7;
> Eclipse (Kepler); Python 3.3; PyDev and PyQt 5 and I've hit an
> issue getting PyUIC to generate a python Qt class from within Eclipse.
>
> I'm using the following setup process (from Google Groups) modified
> to match my PyQt5 configuration:
>
> 1. Click Run -> External Tools -> External Tools Configurations ...
> 2. In the resulting dialog, click 'New' icon in the top left
> 3. Under 'Name' put 'PyUIC'
> 4. Under 'Location' enter 'C:\Program Files\Python\2.5\Python.exe' or
> the path to your Python executable (probably C:\Python25\Python.exe)
> 5. Under 'Arguments' enter '"C:\Program Files\Python\2.5\Lib\site-
> packages\PyQt4\uic\pyuic.py" "${resource_loc}"' substituting the path
> to your PyQt4 installation - be sure also to include the double quotes
> 6. Change to the 'Common' tab and check 'File' under 'Standard Input/
> Output' and enter '${resource_loc}.py'
> 7. Change to the 'Build' tab and uncheck 'Build before launch'
> 8. Change to the 'Refresh' tab and check 'Refresh resources upon
> completion'
> 9. Click 'Apply' then 'Run'
> and I'm getting the following traceback:
> Traceback (most recent call last):
> File "D:\Development\Python33\Lib\site-packages\PyQt5\uic\pyuic.py",
> line 28, in <module>
> from .driver import Driver
> SystemError: Parent module '' not loaded, cannot perform relative import
> I tried this on Qt4 a week or so ago and it worked OK but Qt5 is giving me
> an error message, so I guess I've either mis-transcribed or there's a difference
> in the directory structure betwee PyQt4 & PyQt5.
>
> I'm more interested to learn how to read the traceback (insightfully) and
> track it to the source of the problem, although it would be good to have it working too!!
>
> Steve Simmons
>
> PS Also posted to PyQT list.
Cheers
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Slightly OT - using PyUIC from Eclipse Steve Simmons <square.steve@gmail.com> - 2014-05-01 01:49 +0100
Re: Slightly OT - using PyUIC from Eclipse Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-05-01 01:50 +0000
Re: Slightly OT - using PyUIC from Eclipse Mark H Harris <harrismh777@gmail.com> - 2014-04-30 22:03 -0500
Re: Slightly OT - using PyUIC from Eclipse Steve Simmons <square.steve@gmail.com> - 2014-05-01 20:18 +0100
csiph-web