Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'resulting': 0.04; 'dev': 0.07; 'modified': 0.07; 'skip:" 60': 0.07; 'steve': 0.09; 'executable': 0.09; 'loaded,': 0.09; 'subject:using': 0.09; 'python': 0.11; 'posted': 0.15; 'windows': 0.15; "'arguments'": 0.16; "'build'": 0.16; 'eclipse': 0.16; 'icon': 0.16; 'subject:Slightly': 0.16; 'substituting': 0.16; 'tab': 0.16; 'module': 0.19; 'trying': 0.19; 'import': 0.22; 'installation': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'driver': 0.24; 'environment': 0.24; "i've": 0.25; 'source': 0.25; 'tried': 0.27; 'external': 0.29; 'relative': 0.30; "i'm": 0.30; 'getting': 0.31; 'quotes': 0.31; 'file': 0.32; 'class': 0.32; 'run': 0.32; 'worked': 0.33; '(most': 0.33; 'ago': 0.33; 'guess': 0.33; 'subject:from': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'list.': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'track': 0.38; 'recent': 0.39; '(from': 0.39; 'structure': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'skip:p 20': 0.39; 'how': 0.40; 'read': 0.60; 'new': 0.61; 'more': 0.64; 'within': 0.65; 'header:Reply-To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'click': 0.77; 'reply-to:addr:gmail.com': 0.80; "'new'": 0.84; '(probably': 0.84; 'simmons': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=mV2l3KvKYp1gU9XT2QW6Imfvtxlq3nMBcrlFeE/nNrU=; b=ISZ3PHlS2XQUh5ftphYzkCoRI6WFgxQGJSqtFYXUS61yd2PvxiWGvMQ0Alx3bRsycG r891+IPD6ZhFuAUfgeSUfztHUv/RgMW0vYklaRdr4kEWIO/CJeMXV3wLZMeP7XM0QrVs agw5GHtE+uwYcWP/gor2GI+ca/dfjUKLwGrg+cRrjSuNZVNGSLJkXdvx5CqQdrAFVFdW Hc3JIcIVgApykwLhETLQxDjyNxiOEZ2chBgSVg7qMWXGR7OdGyU9vR4sy/8fb5F+LV3H 4T/EgvRnBHI3xA1Kw/UWs2LpFdXSWMorOBleVBKbx6gM1rHHaNYD+kIj02EoJ5TZ3m1P Lpmw== X-Received: by 10.180.14.72 with SMTP id n8mr3184685wic.53.1398857983915; Wed, 30 Apr 2014 04:39:43 -0700 (PDT) Date: Wed, 30 Apr 2014 12:39:40 +0100 From: Steve Simmons User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Slightly OT - using PyUIC from Eclipse Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: square.steve@gmail.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1398857985 news.xs4all.nl 2873 [2001:888:2000:d::a6]:50116 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70771 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 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.