Love the new 2.7.3!!

556 views
Skip to first unread message

memilanuk

unread,
Apr 19, 2012, 12:49:10 AM4/19/12
to portabl...@googlegroups.com
Especially with PyQT4 and QT Designer - how'd you know I recently started tinkering with PyQT and was wishing I could work on it with my Portable Python install from a USB stick? ;)

The included library/application list for 2.7.3 is impressive, to say the least.  Keep up the good work!

When you get around to updating 3.2... please include PyQT4 for that also.

Thanks a bunch,

Monte

Perica Zivkovic

unread,
Apr 19, 2012, 9:35:58 AM4/19/12
to portabl...@googlegroups.com
working on it, working on it !

memilanuk

unread,
Apr 19, 2012, 8:41:39 PM4/19/12
to portabl...@googlegroups.com
FYI... the help in QT Designer doesn't appear to be working correctly.

Clicking on Help -> QT Designer Help (or Current Widget Help, or What's New) yields a pop-up with the following error message:

"The binary 'C:\Qt\4.8.0\bin\assistant.exe' does not exist."

memilanuk

unread,
Apr 20, 2012, 12:03:01 PM4/20/12
to portabl...@googlegroups.com
Ummm...

Can't seem to find pyuic4 *anywhere* in the install (doing a search inside the App folder for pyuic.  It is used to convert the XML files generated by QT Designer (i.e. myApp.ui) to a python module (myApp.py) that is used to import the design/layout into a main program module.  I thought it was supposed to be one of the utilities included by default with PyQt4?

Actually... since pyuic4 is supposed to be a wrapper for the uic python module, I tried importing it:

*** Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32. ***
*** Remote Python engine  is active ***
>>> from PyQt4 import uic
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
ImportError: cannot import name uic

Doing a search for 'uic' in the installed folder yielded nothing related... 

Monte
Message has been deleted

Xyem

unread,
Apr 24, 2012, 4:17:41 AM4/24/12
to portabl...@googlegroups.com
This issue seems to be the reason why Leo (http://webpages.charter.net/edreamleo/front.html) will not start under Portable Python 2.7.3, complaining that Qt needs to be installed.
Commenting out:
from PyQt4 import uic
in the source code of Leo (leo/plugins/qtGui.py:1897) allows it to start, but causes some of the UI to break.

Perica Zivkovic

unread,
Apr 24, 2012, 8:32:08 AM4/24/12
to portabl...@googlegroups.com
Here is a patch that adds uic. Extract it into site-packages/PyQt4 folder so that you have site-packages/PyQt4/uic structure.

Keep pythoning !
PP_2.7.3.1_PyQt_uic.zip

Joshua Miller

unread,
Apr 24, 2012, 12:06:46 PM4/24/12
to portabl...@googlegroups.com
Nice including PyQt though I'd rather see pyside ;) (*cough* add ninja
ide please *cough*)

> --
> You received this message because you are subscribed to the Google Groups
> "PortablePython" group.
> To post to this group, send email to portabl...@googlegroups.com
> To unsubscribe from this group, send email to
> portablepytho...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/portablepython?hl=en

--
~ Josh Miller

A young guy learning to program and develop websites all while still in school

Xyem

unread,
May 1, 2012, 5:58:06 AM5/1/12
to portabl...@googlegroups.com
Thanks, that patch works great. Uncommented the line, got moaned at by Python[1], fixed that and no more errors during Leo starting.
Looks like the GUI issue is actually something else though as it is still present. Will have to investigate with my Windows VM to identify the cause of that issue.

Thanks again!

[1] I don't program in Python so the whitespace I left in after removing '#' from '# ' caught me out!

Matthew Parry

unread,
May 15, 2012, 7:17:30 PM5/15/12
to portabl...@googlegroups.com
I recently moved to the new 2.7.3 version. I'm loving it an already made a lot of movement on a project for my chemistry professor. Great work.

Xyem

unread,
Jan 27, 2013, 7:12:43 PM1/27/13
to portabl...@googlegroups.com


Looks like the GUI issue is actually something else though as it is still present. Will have to investigate with my Windows VM to identify the cause of that issue.


I finally got around to doing this (my projects list is pretty significant..) and I get the same issue in the VM where the iconbox for the Leo editor does not show up next to the nodes using PP2.7. This can be quite an issue with regards to usage of Leo.

In the VM, I installed Python 3.3 and the PyQt4 for that version and it works fine with those. Judging from the "Leo" splash-image coming up as well, my initial thought is that "canvas" or some image loading is missing from Portable Python 2.7. Will investigate further though to pinpoint the problem though.

Perica Zivkovic

unread,
Jan 27, 2013, 10:11:22 PM1/27/13
to portabl...@googlegroups.com
Thank you ! Please let us know if you figure out what is going wrong and I will include that fix in the next version

aditya kothari

unread,
Jul 24, 2017, 2:23:25 PM7/24/17
to PortablePython
Hello 

I tried including the patch inside my folder but it still does not work :(

Regards
Aditya

Perica Zivkovic

unread,
Jul 24, 2017, 2:28:27 PM7/24/17
to PortablePython
Are you sure that you have correct folder structure?


into site-packages/PyQt4 folder so that you have site-packages/PyQt4/uic structure

when you say that it does not work, can you describe what does not work? What is the issue you have?


Reply all
Reply to author
Forward
0 new messages