Results 1 to 2 of 2

Thread: PyQt4 compiling issues

  1. #1
    Join Date
    Mar 2013
    Posts
    4
    Qt products
    Platforms
    Windows

    Default PyQt4 compiling issues

    Hi all!

    I am having some issues building a python/PyQt4 application using py2exe.
    My first issue is an error while running py2exe (from cmd):
    *** searching for required modules ***
    error: compiling 'C:\Python27\lib\site-packages\PyQt4\uic\port_v3\proxy_base.py'
    failed
    SyntaxError: invalid syntax (proxy_base.py, line 31)
    I got around this problem by moving the whole port_v3 folder to my desktop and then compiling, and my program ran fine.
    That was yesterday. Today however I made some changes to my program and compiled it, and it would not start, I then reverted EVERY change I had made and I could still not run my exe. This is from the log file:
    Qt Code:
    1. Traceback (most recent call last):
    2. File "main.py", line 2, in <module>
    3. File "PyQt4\QtGui.pyo", line 12, in <module>
    4. File "PyQt4\QtGui.pyo", line 10, in __load
    5. ImportError: No module named sip
    To copy to clipboard, switch view to plain text mode 

    So this problem simply showed up without me making any changes to my system or the script (AFAIK). Actually I made one change, I updated SVN to a newer version, but I don't see how that could factor into it.

    I'll be very happy for any help on this! Totally lost here

  2. #2
    Join Date
    Mar 2013
    Posts
    4
    Qt products
    Platforms
    Windows

    Default Re: PyQt4 compiling issues

    Solved it!
    I just needed to use python "setup.py py2exe --includes sip"

Similar Threads

  1. libc.so linking issues when compiling.
    By conrad10781 in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 14th September 2011, 12:52
  2. Replies: 1
    Last Post: 3rd October 2010, 19:41
  3. Replies: 1
    Last Post: 16th February 2010, 00:20
  4. Replies: 1
    Last Post: 13th February 2009, 01:17
  5. issues compiling Qt4.1 with mysql
    By patcito in forum Qt Programming
    Replies: 6
    Last Post: 6th March 2006, 23:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.