Re: [Pythonmac-SIG] PIL binaries -- please test

2010-05-25 Thread aditya bhargava
How do you determine which version of Python to build for? I'm on 10.4 and
I've got two versions of Python – python2.3 in /usr/bin/python and python2.5
in /opt/local/bin/python. python2.5 is my default (i.e. the one that shows
when I run 'which python'), but the package installer doesn't seem to
recognize it. It gives me an error saying You cannot install PIL 1.1.7 on
this volume. PIL requires System Python 2.5 to install.

Aditya

On Tue, May 25, 2010 at 2:57 PM, Christopher Barker
chris.bar...@noaa.govwrote:

 Hi folks,

 Much to my surprise, I had a little time to build some PIL binaries:


 http://dl.dropbox.com/u/855965/PIL-OSX-Binaries/PIL-1.1.7-py2.5-macosx10.5.mpkg.zip


 http://dl.dropbox.com/u/855965/PIL-OSX-Binaries/PIL-1.1.7-py2.6-macosx10.5.mpkg.zip

 I'd really like folks to test them on as many different systems as
 possible.

 You can see these are for python 2.5 or 2.6, build with and for the
 python.org python binaries. They should have all dependencies statically
 linked.

 I built them on OS-X 10.5 (leopard), so they may not work on 10.4 I'd love
 if someone could test and see if they do, however, I no longer have a 10.4
 system to test on.

 I do expect them to work on 10.5 and 10.6, PPC and Intel.

 Please let me know if you test, whether it worked or not, and on what
 system/python.

 If these work well, I think Fredrik will put them on the PIL site.

 Thanks,
  -Chris



 --
 Christopher Barker, Ph.D.
 Oceanographer

 Emergency Response Division
 NOAA/NOS/ORR(206) 526-6959   voice
 7600 Sand Point Way NE   (206) 526-6329   fax
 Seattle, WA  98115   (206) 526-6317   main reception

 chris.bar...@noaa.gov
 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig
 unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG




-- 
wefoundland.com
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] PyQt apps on Mac

2010-03-29 Thread aditya bhargava
Are you interested in just an application, or the source too? Here's a
standalone app I'd made a while back, just to test out PyQt on the mac:
http://perl.wefoundland.com/SoftwareReqs.zip

This was made using PyInstaller. The same application built using py2app was
significantly larger (~70 mb).

Aditya

On Mon, Mar 29, 2010 at 6:01 PM, Kevin Walzer k...@codebykevin.com wrote:

 Hi all,

 I'm interested in taking a look at PyQt apps on the Mac. Problem is--I
 can't find any that are already bundled as standalone apps. Right now I
 don't have the time or inclination to build PyQt from scratch to test things
 out...are there any PyQt developers on this list who can post links to
 standalone PyQt apps wrapped with py2app that run on Leopard?

 Thanks,
 Kevin
 --
 Kevin Walzer
 Code by Kevin
 http://www.codebykevin.com
 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig
 unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG




-- 
wefoundland.com
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


Re: [Pythonmac-SIG] Problems with py2app and qt

2009-12-15 Thread aditya bhargava
It's a memory issue with Qt I think. The other interesting thing is, this
problem doesn't occur if I build the app in alias mode with the -A
flag...but of course that's not too useful if I want to distribute
applications.

Here's the issue I get:


Exception:  EXC_BAD_ACCESS (0x0001)
Codes:  KERN_PROTECTION_FAILURE (0x0002) at 0x

Thread 0 Crashed:
0   QtGui  0x167c792d QWidget::isActiveWindow()
const + 141
1   QtGui  0x16c6fd2e
QAccessibleWidget::state(int) const + 222
2   QtGui  0x16c6fd73
QAccessibleWidgetEx::state(int) const + 35
3   libqtaccessiblewidgets.dylib   0x16197b9d
QAccessibleLineEdit::state(int) const + 33
4   QtGui  0x028f2178 QAccessible::cleanup() +
14728
5   QtGui  0x028f7016 QAccessible::cleanup() +
34854
6   QtGui  0x028f750d
QAccessible::updateAccessibility(QObject*, int, QAccessible::Event) + 621
7   QtGui  0x02954e7a
QWidgetPrivate::show_helper() + 330
8   QtGui  0x0293 QWidget::setVisible(bool)
+ 1267
9   QtGui.so   0x02234aa5
sipQLineEdit::setVisible(bool) + 101
10  QtGui  0x02954cd8
QWidgetPrivate::showChildren(bool) + 328
11  QtGui  0x02954d8c
QWidgetPrivate::show_helper() + 92
12  QtGui  0x0293 QWidget::setVisible(bool)
+ 1267
13  QtGui.so   0x02417f11
sipQWidget::setVisible(bool) + 101
14  QtGui  0x02954cd8
QWidgetPrivate::showChildren(bool) + 328
15  QtGui  0x02954d8c
QWidgetPrivate::show_helper() + 92
16  QtGui  0x0293 QWidget::setVisible(bool)
+ 1267
17  QtGui.so   0x02417f11
sipQWidget::setVisible(bool) + 101
18  QtGui.so   0x02420150
sipQWidget::sipProtectVirt_languageChange(bool) + 25936
19  org.python.python  0x00499c5d PyEval_EvalFrameEx + 19936
20  org.python.python  0x0049b8ad PyEval_EvalCodeEx + 1819
21  org.python.python  0x0049ba61 PyEval_EvalCode + 87
22  org.python.python  0x004bf1d0 PyRun_FileExFlags + 260
23  org.python.python  0x0048fe3d PyAST_FromNode + 7784
24  org.python.python  0x00499c5d PyEval_EvalFrameEx + 19936
25  org.python.python  0x0049b8ad PyEval_EvalCodeEx + 1819
26  org.python.python  0x00498f2e PyEval_EvalFrameEx + 16561
27  org.python.python  0x0049b8ad PyEval_EvalCodeEx + 1819
28  org.python.python  0x0049ba61 PyEval_EvalCode + 87
29  org.python.python  0x004bf1d0 PyRun_FileExFlags + 260
30  org.python.python  0x004bf56a PyRun_SimpleFileExFlags +
640
31  org.python.python  0x004bf70d PyRun_SimpleFile + 40
32  ...cified.softwareRequirements 0x7b9f start + 23863
33  ...cified.softwareRequirements 0x8091 main + 297
34  ...cified.softwareRequirements 0x1f63 start + 251
35  ...cified.softwareRequirements 0x1e91 start + 41

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x  ebx: 0x028f2007  ecx: 0x16784105  edx: 0x
  edi: 0x003bc630  esi: 0x003ab8a0  ebp: 0xbfffdce8  esp: 0xbfffdcc0
   ss: 0x001f  efl: 0x00010246  eip: 0x167c792d   cs: 0x0017
   ds: 0x001f   es: 0x001f   fs: 0x   gs: 0x0037
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] Problems with py2app and qt

2009-12-15 Thread aditya bhargava
Brilliant...it turned out that the Qt libraries were being loaded *twice* –
once from inside the bundle and once from the libraries on my computer.

The hack fix was to create a qt.conf file inside Contents/Resources and give
it a bad path...this way only the libraries inside the bundle are being
loaded. Putting this inside qt.conf:

[Paths]
Plugins = bollocks

Did the trick :)

Thanks Emanuele!


On Tue, Dec 15, 2009 at 12:45 PM, Emanuele Santos
emanuelesan...@gmail.comwrote:

 Maybe your app is loading the wrong libs?
 Try running from the terminal and printing the libs that are being loaded:

 $ cd /path/to/your/bundle.app/Contents/MacOS
 $ DYLD_PRINT_LIBRARIES=1 ./your_app

 Check if all the Qt and PyQt libraries loaded are in your bundle.

 -- Emanuele.


 On Dec 15, 2009, at 10:30 AM, aditya bhargava wrote:

  It's a memory issue with Qt I think. The other interesting thing is, this
 problem doesn't occur if I build the app in alias mode with the -A
 flag...but of course that's not too useful if I want to distribute
 applications.

 Here's the issue I get:


 Exception:  EXC_BAD_ACCESS (0x0001)
 Codes:  KERN_PROTECTION_FAILURE (0x0002) at 0x

 Thread 0 Crashed:
 0   QtGui  0x167c792d
 QWidget::isActiveWindow() const + 141
 1   QtGui  0x16c6fd2e
 QAccessibleWidget::state(int) const + 222
 2   QtGui  0x16c6fd73
 QAccessibleWidgetEx::state(int) const + 35
 3   libqtaccessiblewidgets.dylib   0x16197b9d
 QAccessibleLineEdit::state(int) const + 33
 4   QtGui  0x028f2178 QAccessible::cleanup() +
 14728
 5   QtGui  0x028f7016 QAccessible::cleanup() +
 34854
 6   QtGui  0x028f750d
 QAccessible::updateAccessibility(QObject*, int, QAccessible::Event) + 621
 7   QtGui  0x02954e7a
 QWidgetPrivate::show_helper() + 330
 8   QtGui  0x0293
 QWidget::setVisible(bool) + 1267
 9   QtGui.so   0x02234aa5
 sipQLineEdit::setVisible(bool) + 101
 10  QtGui  0x02954cd8
 QWidgetPrivate::showChildren(bool) + 328
 11  QtGui  0x02954d8c
 QWidgetPrivate::show_helper() + 92
 12  QtGui  0x0293
 QWidget::setVisible(bool) + 1267
 13  QtGui.so   0x02417f11
 sipQWidget::setVisible(bool) + 101
 14  QtGui  0x02954cd8
 QWidgetPrivate::showChildren(bool) + 328
 15  QtGui  0x02954d8c
 QWidgetPrivate::show_helper() + 92
 16  QtGui  0x0293
 QWidget::setVisible(bool) + 1267
 17  QtGui.so   0x02417f11
 sipQWidget::setVisible(bool) + 101
 18  QtGui.so   0x02420150
 sipQWidget::sipProtectVirt_languageChange(bool) + 25936
 19  org.python.python  0x00499c5d PyEval_EvalFrameEx +
 19936
 20  org.python.python  0x0049b8ad PyEval_EvalCodeEx + 1819
 21  org.python.python  0x0049ba61 PyEval_EvalCode + 87
 22  org.python.python  0x004bf1d0 PyRun_FileExFlags + 260
 23  org.python.python  0x0048fe3d PyAST_FromNode + 7784
 24  org.python.python  0x00499c5d PyEval_EvalFrameEx +
 19936
 25  org.python.python  0x0049b8ad PyEval_EvalCodeEx + 1819
 26  org.python.python  0x00498f2e PyEval_EvalFrameEx +
 16561
 27  org.python.python  0x0049b8ad PyEval_EvalCodeEx + 1819
 28  org.python.python  0x0049ba61 PyEval_EvalCode + 87
 29  org.python.python  0x004bf1d0 PyRun_FileExFlags + 260
 30  org.python.python  0x004bf56a PyRun_SimpleFileExFlags
 + 640
 31  org.python.python  0x004bf70d PyRun_SimpleFile + 40
 32  ...cified.softwareRequirements 0x7b9f start + 23863
 33  ...cified.softwareRequirements 0x8091 main + 297
 34  ...cified.softwareRequirements 0x1f63 start + 251
 35  ...cified.softwareRequirements 0x1e91 start + 41

 Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x  ebx: 0x028f2007  ecx: 0x16784105  edx: 0x
  edi: 0x003bc630  esi: 0x003ab8a0  ebp: 0xbfffdce8  esp: 0xbfffdcc0
   ss: 0x001f  efl: 0x00010246  eip: 0x167c792d   cs: 0x0017
   ds: 0x001f   es: 0x001f   fs: 0x   gs: 0x0037
 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig


 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Problems with py2app and qt

2009-12-14 Thread aditya bhargava
Hi python users,
I'm getting some strange results running py2app on my machine. It works fine
with most scripts, but any time I use it with a script that uses PyQt, the
built application immediately quits and gives me an unexpectedly quit
message. It's not the code, because I tried py2app with a couple of the
example scripts that come with PyQt and got the same result. Any thoughts?

I'm on mac OS X 10.4 running Python 2.5. My copy of py2app is very recent, I
just got the latest one yesterday.

Thanks for your help!
Aditya
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig