Re: [Pythonmac-SIG] New subscriber

2011-12-18 Thread Dan Ross
Hey Gil-

Try typing python3 instead of just python.

Dan


On Dec 17, 2011, at 3:01 PM, Gil Dawson wrote:

 I'm new here.
 
 Could you please tell me which list I should use to ask a dumb question about 
 Python for the Mac?
 
 I was hoping to search the archives for my question, but I haven't figured 
 out how to do that from the page at 
 
   http://mail.python.org/pipermail/pythonmac-sig/
 
 so, if this is the right list, I'd appreciate a pointer on how to search the 
 archives.
 
 
 My dumb question is: What should I do next to use Python 3.2.2?
 
 I downloaded and installed Python 3.2, Quit Terminal, launched 
 /Applications/Python3.2/Update Shell Profile.command, Quit Terminal again, 
 relaunched Terminal, and typed python.  It responded...
 
 Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
 [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
 Type help, copyright, credits or license for more information.
  
 
 I was expecting 3.2.2 instead of 2.6.1.
 
 I'd appreciate suggestions.
 
 --Gil
 
 
 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig
 unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

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


[Pythonmac-SIG] Py2app and PyPy

2011-08-18 Thread Dan Ross

Does py2app work with PyPy? Has anyone tried it?
___
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] Python on iphone for developers

2011-08-04 Thread Dan Ross

So how does one use this to make an iOS app then?

On Thu, 4 Aug 2011 11:58:58 PDT, Bill Janssen wrote:

Alex Jouravlev al...@businessabstraction.com wrote:

Is there a port of Python to iPhone? I want to be able to check-out 
from

SVN, edit and run some Python server code now and then.


See 
https://github.com/cobbal/python-for-iphone/blob/master/iOS-build.sh.


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


___
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] Lion

2011-07-21 Thread Dan Ross

Cool. Thanks for the replies guys.

Thanks for the PyObjC work too Ronald.

On Thu, 21 Jul 2011 09:15:28 +0200, Ronald Oussoren wrote:

On 21 Jul, 2011, at 1:28, Dan Ross wrote:


Installing python.org's framework should work shouldn't it?

On Jul 20, 2011, at 6:23 PM, Bill Janssen wrote:


Dan Ross d...@rosspixelworks.com wrote:


Anyone have reports of Pythons on Lion?


It's Python 2.7.1 pre-installed in /System/Library, but I don't 
know

about PyObjC or Twisted.


There is a PyObjC in Lion, to be honest I haven't checked if it is
fully functional.

There are some small issues with PyObjC's testsuite on Lion, which
I've mostly fixed in my tree.   I haven't started generating bindings
for new Lion APIs yet, mostly because the tool I use to generate 
these

is broken and I haven't finished its replacement yet.

BTW. I've moved the PyObjC repository bitbucket
(https://bitbucket.org/ronaldoussoren/pyobjc). That version is not
fully functional at the moment: I'm switching from the
.bridgesupport files used in earlier releases to a version that
compiles these into python datastructures. Not all frameworks have
been moved over at this point, the most important missing ones are 
the

Quartz and WebKit bindings.


Bill


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


___
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] Lion

2011-07-20 Thread Dan Ross
I'm wondering if non-system Python will work since that's what I prefer using.


On Jul 20, 2011, at 7:14 PM, Aahz wrote:

 On Wed, Jul 20, 2011, Dan Ross wrote:
 
 Anyone have reports of Pythons on Lion?
 
 Are you asking about what's installed, what works, something else?
 
 My company is getting ready for acceptance testing on Lion using 2.6.4.
 -- 
 Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/
 
 If you don't know what your program is supposed to do, you'd better not
 start writing it.  --Dijkstra
 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
 http://mail.python.org/mailman/listinfo/pythonmac-sig
 unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

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


[Pythonmac-SIG] Progressbar in tkinter app

2011-07-15 Thread Dan Ross

I'm working on a tkinter gui for an app I made.

I can't seem to get a progressbar to start and stop while a function 
runs.


(pseduo-code)

def my_function():
progress_bar.start()
# do a bunch of stuff #
progress_bar.stop()

That should work shouldn't it? Or do I need a separate thread?

Thanks all,

Dan


___
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] Progressbar in tkinter app

2011-07-15 Thread Dan Ross
Really? All that just to make a progress bar go and update something in 
the main GUI window? Yeesh.


On Fri, 15 Jul 2011 10:20:44 -0700, Sean DiZazzo wrote:

You need a separate thread.  Well, you might be able to get the
progressbar to update, but your app will be unresponsive until the
task finishes.

Here's the article I used to
learn: http://uucode.com/texts/pylongopgui/pyguiapp.html [4]

It's a little overly complicated but works very well.

~Sean

On Fri, Jul 15, 2011 at 9:17 AM, Dan Ross  wrote:


I'm working on a tkinter gui for an app I made.

I can't seem to get a progressbar to start and stop while a
function runs.

(pseduo-code)

def my_function():
   progress_bar.start()
   # do a bunch of stuff #
   progress_bar.stop()

That should work shouldn't it? Or do I need a separate thread?

Thanks all,

Dan

___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org [1]
http://mail.python.org/mailman/listinfo/pythonmac-sig [2]
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[3]




Links:
--
[1] mailto:Pythonmac-SIG@python.org
[2] http://mail.python.org/mailman/listinfo/pythonmac-sig
[3] http://mail.python.org/mailman/options/Pythonmac-SIG
[4] http://uucode.com/texts/pylongopgui/pyguiapp.html
[5] mailto:d...@rosspixelworks.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] Pythonmac-SIG Digest, Vol 95, Issue 20

2011-03-18 Thread Dan Ross


Ok. I figured the CSV part out, but paths for saving in appscript are
kicking my butt. 

If anyone has any suggestions I'd appreciate them.


Thanks, 

Dan 

On Fri, 18 Mar 2011 12:00:02 +0100,
pythonmac-sig-requ...@python.org wrote:  

Hi there- 

I have the
following AppleScript: 

set theOutputPath to (path to desktop folder as
string)  My Saved Workbook.csv
tell application Microsoft Excel

tell active workbook
 save workbook as filename theOutputPath file
format CSV file format
 end tell
end tell 

This works fine. When I try
to use appscript I cannot get the stinking spreadsheet to save as a CSV
file with the following: 

from appscript import *

excel =
app('/Applications/Microsoft Office 2008/Microsoft
Excel')
excel.open('/Users/danr/Desktop/Test.xlsx')
name =
excel.worksheets[1].name.get()
print(name)
excel.worksheets[1].save_as(filename
= 'boogers.csv', file_format = CSV) 

Any pointers? 

Thanks, 

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


[Pythonmac-SIG] Appscript and Excel save_as

2011-03-17 Thread Dan Ross


Hi there- 

I have the following AppleScript: 

set theOutputPath to
(path to desktop folder as string)  My Saved Workbook.csv
tell
application Microsoft Excel
 tell active workbook
 save workbook as
filename theOutputPath file format CSV file format
 end tell
end tell


This works fine. When I try to use appscript I cannot get the stinking
spreadsheet to save as a CSV file with the following: 

from appscript
import *

excel = app('/Applications/Microsoft Office 2008/Microsoft
Excel')
excel.open('/Users/danr/Desktop/Test.xlsx')
name =
excel.worksheets[1].name.get()
print(name)
excel.worksheets[1].save_as(filename
= 'boogers.csv', file_format = CSV) 

Any pointers? 

Thanks, 

Dan___
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] py2app and Python 3.2

2011-03-16 Thread Dan Ross

Hey Ronald-

Thanks for the response. I now get the following error:

Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/3.2/bin/py2applet, line 
9, in module

load_entry_point('py2app==0.6', 'console_scripts', 'py2applet')()
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py, 
line 132, in main

make_setup(args, scripts, data_files, options)
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py, 
line 163, in make_setup

f.write(SETUP_TEMPLATE % tvars)
TypeError: 'str' does not support the buffer interface


Dan

On Tue, 15 Mar 2011 09:10:14 -0400, Ronald Oussoren 
ronaldousso...@mac.com wrote:

On 14 Mar, 2011, at 18:53, Dan Ross wrote:


Hi all-

I have a very small and simple Tkinter/Python 3.2 app that I'm 
trying to bundle with py2app.


I'm currently sprinting at Pycon and will do a new release
afterwards. The current tip of the development repositories should
work though, although they are lightly tested at the moment.

The repositories are:
* https://bitbucket.org/ronaldoussoren/altgraph
* https://bitbucket.org/ronaldoussoren/macholib
* https://bitbucket.org/ronaldoussoren/modulegraph
* https://bitbucket.org/ronaldoussoren/py2app

You'll have to install the packages in this order, there have bee
some API additions and bugfixes that require you to install all of
them.

My focus with the sprints is on CPython bugfixes as well improving
the documentation and test coverage of py2app and supporting modules
(whereby improving the test coverage means that I've started at no
coverage at all a month or so ago).

Ronald



After updating py2app and it's dependencies to dev versions I 
still get the following error:



*** creating application bundle: gui ***
Traceback (most recent call last):
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 604, in _run

   self.run_normal()
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 675, in run_normal

   self.create_binaries(py_files, pkgdirs, extensions, loader_files)
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 772, in create_binaries

   target, arcname, pkgexts, copyexts, target.script)
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 1253, in build_executable

   sys.version[:3])), os.path.join(inc_dir, 'pyconfig.h'))
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/cmd.py, 
line 350, in copy_file

   dry_run=self.dry_run)
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py, 
line 106, in copy_file

   can't copy '%s': doesn't exist or not a regular file % src)
distutils.errors.DistutilsFileError: can't copy 
'/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2/pyconfig.h': 
doesn't exist or not a regular file


/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py(106)copy_file()

- can't copy '%s': doesn't exist or not a regular file % src)
(Pdb)


From snooping around in 
Library/Frameworks/Python.framework/Versions/3.2/include/ in looks 
like the python folder is named python3.2m rather than just python.


Does this sound familiar or am I barking up the wrong tree?

Oh. OS 10.6.6 Python 3.2 64bit

Thanks,

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


___
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] py2app and Python 3.2

2011-03-16 Thread Dan Ross

Got it. It's 'wb' to 'w' though right?

On Wed, 16 Mar 2011 10:25:00 -0400, Ronald Oussoren 
ronaldousso...@mac.com wrote:

On 16 Mar, 2011, at 10:15, Dan Ross wrote:


Hey Ronald-

Thanks for the response. I now get the following error:

Traceback (most recent call last):
 File 
/Library/Frameworks/Python.framework/Versions/3.2/bin/py2applet, 
line 9, in module

   load_entry_point('py2app==0.6', 'console_scripts', 'py2applet')()
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py, 
line 132, in main

   make_setup(args, scripts, data_files, options)
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py, 
line 163, in make_setup

   f.write(SETUP_TEMPLATE % tvars)
TypeError: 'str' does not support the buffer interface


Oh cool, another bytes-unicode issue. I hadn't looked at py2applet 
yet...


If you open the script_py2applet.py file (the full location is in the
traceback) look for ' f.write(SETUP_TEMPLATE % tvars)' you'll see a
call to open two lines up. That currently has 'rb' as the last
argument, change that to 'r' and py2applet should magically start to
work again.

I'll commit a fix once I've written a unittest[*] for this.

Ronald

[*] for a particular odd definition of 'unit', the py2app unittests
are currently more integration tests. Fixing that can wait...




Dan

On Tue, 15 Mar 2011 09:10:14 -0400, Ronald Oussoren 
ronaldousso...@mac.com wrote:

On 14 Mar, 2011, at 18:53, Dan Ross wrote:


Hi all-

I have a very small and simple Tkinter/Python 3.2 app that I'm 
trying to bundle with py2app.


I'm currently sprinting at Pycon and will do a new release
afterwards. The current tip of the development repositories should
work though, although they are lightly tested at the moment.

The repositories are:
* https://bitbucket.org/ronaldoussoren/altgraph
* https://bitbucket.org/ronaldoussoren/macholib
* https://bitbucket.org/ronaldoussoren/modulegraph
* https://bitbucket.org/ronaldoussoren/py2app

You'll have to install the packages in this order, there have bee
some API additions and bugfixes that require you to install all of
them.

My focus with the sprints is on CPython bugfixes as well improving
the documentation and test coverage of py2app and supporting 
modules
(whereby improving the test coverage means that I've started at 
no

coverage at all a month or so ago).

Ronald



After updating py2app and it's dependencies to dev versions I 
still get the following error:



*** creating application bundle: gui ***
Traceback (most recent call last):
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 604, in _run

  self.run_normal()
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 675, in run_normal
  self.create_binaries(py_files, pkgdirs, extensions, 
loader_files)
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 772, in create_binaries

  target, arcname, pkgexts, copyexts, target.script)
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 1253, in build_executable

  sys.version[:3])), os.path.join(inc_dir, 'pyconfig.h'))
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/cmd.py, 
line 350, in copy_file

  dry_run=self.dry_run)
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py, 
line 106, in copy_file

  can't copy '%s': doesn't exist or not a regular file % src)
distutils.errors.DistutilsFileError: can't copy 
'/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2/pyconfig.h': 
doesn't exist or not a regular file


/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py(106)copy_file()

- can't copy '%s': doesn't exist or not a regular file % src)
(Pdb)


From snooping around in 
Library/Frameworks/Python.framework/Versions/3.2/include/ in looks 
like the python folder is named python3.2m rather than just python.


Does this sound familiar or am I barking up the wrong tree?

Oh. OS 10.6.6 Python 3.2 64bit

Thanks,

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




___
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] py2app and Python 3.2

2011-03-16 Thread Dan Ross
Ok, the .app bundles successfully, HOWEVER, at the end of the output I 
get:


creating 
/Users/danr/Projects/hamilton_py3/dist/gui.app/Contents/Frameworks/Tcl.framework
linking 
/Users/danr/Projects/hamilton_py3/dist/gui.app/Contents/Frameworks/Tcl.framework/libtclstub8.5.a 
- Versions/8.5/libtclstub8.5.a
error: No such file or directory: 
/Users/danr/Projects/hamilton_py3/dist/gui.app/Contents/Frameworks/Tcl.framework/libtclstub8.5.a


There are also a bunch of folders (html, xml, email, distutils, etc.) 
that look like they weren't cleaned up?


Thanks for the hard work Ronald.

On Wed, 16 Mar 2011 10:25:00 -0400, Ronald Oussoren 
ronaldousso...@mac.com wrote:

On 16 Mar, 2011, at 10:15, Dan Ross wrote:


Hey Ronald-

Thanks for the response. I now get the following error:

Traceback (most recent call last):
 File 
/Library/Frameworks/Python.framework/Versions/3.2/bin/py2applet, 
line 9, in module

   load_entry_point('py2app==0.6', 'console_scripts', 'py2applet')()
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py, 
line 132, in main

   make_setup(args, scripts, data_files, options)
 File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.6-py3.2.egg/py2app/script_py2applet.py, 
line 163, in make_setup

   f.write(SETUP_TEMPLATE % tvars)
TypeError: 'str' does not support the buffer interface


Oh cool, another bytes-unicode issue. I hadn't looked at py2applet 
yet...


If you open the script_py2applet.py file (the full location is in the
traceback) look for ' f.write(SETUP_TEMPLATE % tvars)' you'll see a
call to open two lines up. That currently has 'rb' as the last
argument, change that to 'r' and py2applet should magically start to
work again.

I'll commit a fix once I've written a unittest[*] for this.

Ronald

[*] for a particular odd definition of 'unit', the py2app unittests
are currently more integration tests. Fixing that can wait...




Dan

On Tue, 15 Mar 2011 09:10:14 -0400, Ronald Oussoren 
ronaldousso...@mac.com wrote:

On 14 Mar, 2011, at 18:53, Dan Ross wrote:


Hi all-

I have a very small and simple Tkinter/Python 3.2 app that I'm 
trying to bundle with py2app.


I'm currently sprinting at Pycon and will do a new release
afterwards. The current tip of the development repositories should
work though, although they are lightly tested at the moment.

The repositories are:
* https://bitbucket.org/ronaldoussoren/altgraph
* https://bitbucket.org/ronaldoussoren/macholib
* https://bitbucket.org/ronaldoussoren/modulegraph
* https://bitbucket.org/ronaldoussoren/py2app

You'll have to install the packages in this order, there have bee
some API additions and bugfixes that require you to install all of
them.

My focus with the sprints is on CPython bugfixes as well improving
the documentation and test coverage of py2app and supporting 
modules
(whereby improving the test coverage means that I've started at 
no

coverage at all a month or so ago).

Ronald



After updating py2app and it's dependencies to dev versions I 
still get the following error:



*** creating application bundle: gui ***
Traceback (most recent call last):
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 604, in _run

  self.run_normal()
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 675, in run_normal
  self.create_binaries(py_files, pkgdirs, extensions, 
loader_files)
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 772, in create_binaries

  target, arcname, pkgexts, copyexts, target.script)
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 1253, in build_executable

  sys.version[:3])), os.path.join(inc_dir, 'pyconfig.h'))
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/cmd.py, 
line 350, in copy_file

  dry_run=self.dry_run)
File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py, 
line 106, in copy_file

  can't copy '%s': doesn't exist or not a regular file % src)
distutils.errors.DistutilsFileError: can't copy 
'/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2/pyconfig.h': 
doesn't exist or not a regular file


/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py(106)copy_file()

- can't copy '%s': doesn't exist or not a regular file % src)
(Pdb)


From snooping around in 
Library/Frameworks/Python.framework/Versions/3.2/include/ in looks 
like the python folder is named python3.2m rather than just python.


Does this sound familiar or am I barking up the wrong tree?

Oh. OS 10.6.6 Python 3.2 64bit

Thanks,

Dan

[Pythonmac-SIG] py2app and Python 3.2

2011-03-14 Thread Dan Ross

Hi all-

I have a very small and simple Tkinter/Python 3.2 app that I'm trying 
to bundle with py2app.


After updating py2app and it's dependencies to dev versions I still 
get the following error:



*** creating application bundle: gui ***
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 604, in _run

self.run_normal()
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 675, in run_normal

self.create_binaries(py_files, pkgdirs, extensions, loader_files)
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 772, in create_binaries

target, arcname, pkgexts, copyexts, target.script)
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages/py2app-0.5.2-py3.2.egg/py2app/build_app.py, 
line 1253, in build_executable

sys.version[:3])), os.path.join(inc_dir, 'pyconfig.h'))
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/cmd.py, 
line 350, in copy_file

dry_run=self.dry_run)
  File 
/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py, 
line 106, in copy_file

can't copy '%s': doesn't exist or not a regular file % src)
distutils.errors.DistutilsFileError: can't copy 
'/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2/pyconfig.h': 
doesn't exist or not a regular file


/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/distutils/file_util.py(106)copy_file()

- can't copy '%s': doesn't exist or not a regular file % src)
(Pdb)


From snooping around in 
Library/Frameworks/Python.framework/Versions/3.2/include/ in looks like 
the python folder is named python3.2m rather than just python.


Does this sound familiar or am I barking up the wrong tree?

Oh. OS 10.6.6 Python 3.2 64bit

Thanks,

Dan
___
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] Pythonmac-SIG Digest, Vol 93, Issue 5

2011-01-08 Thread Dan Ross
Hey Aahz-

Just thought I'd try porting a little utility from 2.7 to 3.1 for kicks.


On Jan 8, 2011, at 5:00 AM, pythonmac-sig-requ...@python.org wrote:

 Send Pythonmac-SIG mailing list submissions to
   pythonmac-sig@python.org
 
 To subscribe or unsubscribe via the World Wide Web, visit
   http://mail.python.org/mailman/listinfo/pythonmac-sig
 or, via email, send a message with subject or body 'help' to
   pythonmac-sig-requ...@python.org
 
 You can reach the person managing the list at
   pythonmac-sig-ow...@python.org
 
 When replying, please edit your Subject line so it is more specific
 than Re: Contents of Pythonmac-SIG digest...
 Today's Topics:
 
   1. Py2app/Python 3.1 error (Dan Ross)
   2. Re: Py2app/Python 3.1 error (Aahz)
 
 From: Dan Ross d...@rosspixelworks.com
 Date: January 7, 2011 9:12:59 AM CST
 To: Pythonmac-sig pythonmac-sig@python.org
 Subject: [Pythonmac-SIG] Py2app/Python 3.1 error
 Reply-To: d...@rosspixelworks.com
 
 
 Has anyone seen this before?
 
 Traceback (most recent call last):
   File setup.py, line 18, in module
 setup_requires=['py2app'],
   File
 /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/core.py,
 line 110, in setup
 _setup_distribution = dist = klass(attrs)
   File
 /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/setuptools/dist.py,
 
 line 225, in __init__
 _Distribution.__init__(self,attrs)
   File
 /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py,
 line 263, in __init__
 self.finalize_options()
   File
 /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/setuptools/dist.py,
 
 line 258, in finalize_options
 ep.load()(self, ep.name, value)
   File
 /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/pkg_resources.py,
 
 line 1954, in load
 entry = __import__(self.module_name, globals(),globals(),
 ['__name__'])
   File
 /Users/danr/.local/lib/python3.1/site-packages/py2app/build_app.py,
 line 28, in module
 from modulegraph.find_modules import find_modules, parse_mf_results
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/find_modules.py,
 line 21, in module
 from . import modulegraph
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/modulegraph.py,
 line 31, in module
 from . import util
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/util.py,
 line 69, in module
 cookie_re = re.compile(B(coding[:=]\s*([-\w.]+)))
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/compat.py,
 line 12, in B
 return value.decode('latin1')
 AttributeError: 'str' object has no attribute 'decode'
 
 It's a simple little app using tkinter.
 
 I'm using ActiveState's Python 3.1 if that makes a difference.
 
 Thanks,
 
 Dan
 
 
 
 
 
 
 
 From: Aahz a...@pythoncraft.com
 Date: January 7, 2011 12:03:08 PM CST
 To: Pythonmac-sig pythonmac-sig@python.org
 Subject: Re: [Pythonmac-SIG] Py2app/Python 3.1 error
 
 
 On Fri, Jan 07, 2011, Dan Ross wrote:
 
 Has anyone seen this before?
 
 No, but I can provide a clue...
 
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/compat.py,
 line 12, in B
 return value.decode('latin1')
 AttributeError: 'str' object has no attribute 'decode'
 
 It's a simple little app using tkinter.
 
 Python 3.1 strings don't have a decode method, so this is almost
 certainly legacy code from Python 2.x that's trying to get from string to
 unicode instead of going from bytes to string.
 
 Python 3.1.2 (r312:79147, Mar 29 2010, 18:34:41) 
 ''.decode
 Traceback (most recent call last):
  File stdin, line 1, in module
 AttributeError: 'str' object has no attribute 'decode'
 b''.decode
 built-in method decode of bytes object at 0xbb5399f8
 
 Any particular reason you're using 3.1 instead of 2.7?
 -- 
 Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/
 
 Think of it as evolution in action.  --Tony Rand
 
 
 
 unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

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


[Pythonmac-SIG] Py2app/Python 3.1 error

2011-01-07 Thread Dan Ross
 Has anyone seen this before?

 Traceback (most recent call last):
   File setup.py, line 18, in module
 setup_requires=['py2app'],
   File
 
/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/core.py,
 line 110, in setup
 _setup_distribution = dist = klass(attrs)
   File
 
/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/setuptools/dist.py,

 line 225, in __init__
 _Distribution.__init__(self,attrs)
   File
 
/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/distutils/dist.py,
 line 263, in __init__
 self.finalize_options()
   File
 
/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/setuptools/dist.py,

 line 258, in finalize_options
 ep.load()(self, ep.name, value)
   File
 
/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/pkg_resources.py,

 line 1954, in load
 entry = __import__(self.module_name, globals(),globals(),
 ['__name__'])
   File
 /Users/danr/.local/lib/python3.1/site-packages/py2app/build_app.py,
 line 28, in module
 from modulegraph.find_modules import find_modules, parse_mf_results
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/find_modules.py,
 line 21, in module
 from . import modulegraph
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/modulegraph.py,
 line 31, in module
 from . import util
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/util.py,
 line 69, in module
 cookie_re = re.compile(B(coding[:=]\s*([-\w.]+)))
   File
 /Users/danr/.local/lib/python3.1/site-packages/modulegraph/compat.py,
 line 12, in B
 return value.decode('latin1')
 AttributeError: 'str' object has no attribute 'decode'

 It's a simple little app using tkinter.

 I'm using ActiveState's Python 3.1 if that makes a difference.

 Thanks,

 Dan



___
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] If/else vs or

2010-10-29 Thread Dan Ross


I've been trying to use more list comprehensions recently. 

I was just
fleshing something out which brought on my post. 

On Fri, 29 Oct 2010
09:15:47 -0400, Henry Olders  wrote: When dealing with lists, list
comprehensions are shorter and easier to work with:
l=['red','green','orange','blue','red','white']  [x for x in l if x in
['red','blue']] 
 Henry  

  On 2010-10-28, at 10:21 , Dan Ross wrote:


I don't think this is Mac specific, but I wonder if someone could explain
why these two groups of code behave differently: 

[code] 

colors =
['red', 'green', 'blue', 'orange', 'fuscia', 'black',
'white']

list_of_matches = []
for x in colors:
 if x == 'red' or 'green'
or 'blue':
 list_of_matches.append(x)
print
list_of_matches

list_of_matches2 = []
for x in colors:
 if x == 'red':

list_of_matches2.append(x)
 elif x == 'green':
 list_of_matches2.append(x)

elif x == 'blue':
 list_of_matches2.append(x)
 else:
 pass
print
list_of_matches2 

[/code] 

list_of_matches contains every item in colors.


list_of_matches2 only contains the matches, as I would expect. 

I don't
get it.. 

Thanks, 

Dan  

 ___
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] If/else vs or

2010-10-29 Thread Dan Ross
Indeed. That's awfully nice and concise.

On Fri, 29 Oct 2010 09:14:06 -0700, Christopher Barker
chris.bar...@noaa.gov wrote:
 On 10/29/10 7:56 AM, Dan Ross wrote:
   I've been trying to use more list comprehensions recently.
 
 ahh -- then you want something like:
 
 In [15]: colors =
['red','green','blue','orange','fuchsia','black','white']
 
 In [16]: subset = ['red','green','blue','purple']
 
 In [17]: [c for c in colors if c in subset]
 
 Out[17]: ['red', 'green', 'blue']
 
 
 (so much for one obvious way to do it!)
 
 -Chris
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] If/else vs or

2010-10-28 Thread Dan Ross


I don't think this is Mac specific, but I wonder if someone could
explain why these two groups of code behave differently: 

[code] 

colors
= ['red', 'green', 'blue', 'orange', 'fuscia', 'black',
'white']

list_of_matches = []
for x in colors:
 if x == 'red' or 'green'
or 'blue':
 list_of_matches.append(x)
print
list_of_matches

list_of_matches2 = []
for x in colors:
 if x == 'red':

list_of_matches2.append(x)
 elif x == 'green':
 list_of_matches2.append(x)

elif x == 'blue':
 list_of_matches2.append(x)
 else:
 pass
print
list_of_matches2 

[/code] 

list_of_matches contains every item in colors.


list_of_matches2 only contains the matches, as I would expect. 

I don't
get it.. 

Thanks, 

Dan___
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] If/else vs or

2010-10-28 Thread Dan Ross
Thank you for your help guys.

Zach, I appreciate the explanation. That's what I was looking for.

Dan

Part 3
Description: boundary/apple-mail-7-733662729
___
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] Pygame and py2app 0.5.2

2010-10-12 Thread Dan Ross


I worked around the error by installing the python.org 2.7 rather than
Activestate's. I think I mentioned that, but if I didn't, now I did.


Originally I installed Activestate's 2.7, installed py2app, built pygame
from source, then bundled the game as always. 

I'm attaching the setup.py
script that I've been using. 

Thanks Ronald. 

Dan 

On Tue, 12 Oct 2010
20:06:40 +0200, Ronald Oussoren  wrote: 
  On 5 Oct, 2010, at 3:49, Dan
Ross wrote: 

Hi all- 

I'm getting the following error when trying to
launch a bundled Pygame app:  

10/4/10 8:43:42 PM
[0x0-0x584584].org.pythonmac.unspecified.Cupcake[73356] ImportError:
dlopen(/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so,
2): no suitable image found. Did find: 

10/4/10 8:43:42 PM
[0x0-0x584584].org.pythonmac.unspecified.Cupcake[73356]
/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so:
no matching architecture in universal wrapper

The game launches fine
from VIM or the command line. 

This had been working with an earlier
version of py2app. I'm guessing it's a 32 vs 64 bit problem of some sort?
Any direction would be appreciated. 
  file
/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so
shows which architectures are supported by the extension, while file
/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/MacOS/Cupcake shows
the architectures supported by the application launcher.   How can I
reproduce this problem? That is,  * How did you install python?  * How did
you install py2app?  * How did you install pygame?  * Do you have a simple
script with setup.py that demonstrates the problem?  Ronald   

 

Part 3
Description: boundary/apple-mail-15--638044772

This is a setup.py script generated by py2applet

Usage:
python setup.py py2app


from setuptools import setup
APP = ['Cupcake.py']
DATA_FILES = ['player.png', 'monster_blue.png', 'monster_red.png','reward.png', 'reward_bite1.png', 'reward_bite2.png', 'bkgrnd.png', 'pacdies.ogg', 'chomp.ogg']
#OPTIONS = {'argv_emulation': True, }

setup(
app=APP,
data_files=DATA_FILES,
options=
dict(py2app=dict(
			argv_emulation = 'False',
iconfile =  'cupcake.icns',
plist=dict(
Copyright='2010 Daniel Ross',
NSHumanReadableCopyright='2010 Daniel Ross',
CFBundleVersion='1.6',
),
)),
setup_requires=['py2app'],
)
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] Pygame and py2app 0.5.2

2010-10-04 Thread Dan Ross


Hi all- 

I'm getting the following error when trying to launch a
bundled Pygame app: 

10/4/10 8:43:42 PM
[0x0-0x584584].org.pythonmac.unspecified.Cupcake[73356] ImportError:
dlopen(/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so,
2): no suitable image found. Did find: 

10/4/10 8:43:42 PM
[0x0-0x584584].org.pythonmac.unspecified.Cupcake[73356]
/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so:
no matching architecture in universal wrapper  

The game launches fine
from VIM or the command line. 

This had been working with an earlier
version of py2app. I'm guessing it's a 32 vs 64 bit problem of some sort?
Any direction would be appreciated. 

Thanks, 

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


[Pythonmac-SIG] Pygame and py2app 0.5.2

2010-10-04 Thread Dan Ross


Nevermind. It was ActiveState's Python and pygame not playing
nicely.___
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] [py2app] No module named os

2010-08-23 Thread Dan Ross


  
  
Hmmm.
  
  I'm getting this when I try to run it from Terminal:
  
  dan-rosss-macbook-pro:editor dan$ python editor.py
  * couldn't load module(s): Y P
  Traceback (most recent call last):
   File "editor.py", line 7, in module
   import mainapp
   File "/Users/dan/Desktop/editor/mainapp.py", line 2, in
  module
   import demoframe
   File "/Users/dan/Desktop/editor/demoframe.py", line 6, in
  module
   import imeditpanel
   File "/Users/dan/Desktop/editor/imeditpanel.py", line 12, in
  module
   import realign
   File "/Users/dan/Desktop/editor/realign.py", line 8, in
  module
   from Priithon.all import F, Y
  ImportError: cannot import name Y
  
  
  Can you tell me what's supposed to be happening?

On 8/23/10 10:18 AM, Chris Weisiger wrote:
I've put the program online here:
  
  http://derakon.dyndns.org/~chriswei/temp2/editor.tgz
  
  When run, it should show a large blank window with four icons in
  the upper-left corner. 
  
  Thanks for being willing to take a look.
  
  -Chris
  
  On Sat, Aug 21, 2010 at 6:12 AM, Dan Ross
d...@rosspixelworks.com
wrote:

   Hey Chris-
  
  Is the source available anywhere? I've made a few wx apps
  and that sounds familiar.
  
  Dan
  
 

  
  

  

___
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] [py2app] No module named os

2010-08-23 Thread Dan Ross


Happy to try. 

Glad you got it sorted out. 

On Mon, 23 Aug 2010
15:39:17 -0700, Chris Weisiger  wrote:  

That's odd. I get the couldn't
load module(s): P but Y loads fine. These are legacy modules from a
previous developer, and I generally try to avoid dealing with them. Y
refers to either usefulX.py or usefulX2.py, I'm not certain which. Both
are in the Priithon directory. (Note that they aren't imported as X
because that's the letter used for one of the modules the original
developer named after himself...fortunately not in this particular
program)

However, I was able to get a standalone version working. I
started poking at the __boot__.py and site.py files in the generated app,
and somehow that made the failures to import fundamental libraries like os
and traceback go away. My only guess is that maybe py2app was including the
.pyc files that had been generated on my local computer? Anyway, after that
I got failures to import numpy.Tester, which are I think due to a version
mismatch on my end. Easily fixed, though, as that module's not actually
needed; I just commented out the imports. 

Thanks for being willing to
take a look! I think maybe I just needed a weekend of not thinking about it
so I could come back to the problem fresh. :)

-Chris

 On Mon, Aug 23,
2010 at 3:26 PM, Dan Ross  wrote:
  Hmmm.

 I'm getting this when I try
to run it from Terminal:

 dan-rosss-macbook-pro:editor dan$ python
editor.py
 * couldn't load module(s): Y P 
 Traceback (most recent call
last): File editor.py, line 7, in 
 import mainapp
 File
/Users/dan/Desktop/editor/mainapp.py, line 2, in 
 import demoframe
 File
/Users/dan/Desktop/editor/demoframe.py, line 6, in 
 import imeditpanel

File /Users/dan/Desktop/editor/imeditpanel.py, line 12, in 
 import
realign
 File /Users/dan/Desktop/editor/realign.py, line 8, in 
 from
Priithon.all import F, Y
 ImportError: cannot import name Y

 Can you tell
me what's supposed to be happening?

 On 8/23/10 10:18 AM, Chris Weisiger
wrote: I've put the program online
here:

http://derakon.dyndns.org/~chriswei/temp2/editor.tgz [2]

 When run,
it should show a large blank window with four icons in the upper-left
corner. 

 Thanks for being willing to take a look.

 -Chris

 On Sat, Aug
21, 2010 at 6:12 AM, Dan Ross  wrote:
  Hey Chris-

 Is the source
available anywhere? I've made a few wx apps and that sounds familiar.


Dan

 

Links:
--
[1] mailto:d...@rosspixelworks.com
[2]
http://derakon.dyndns.org/%7Echriswei/temp2/editor.tgz
[3]
mailto:d...@rosspixelworks.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] [py2app] No module named os

2010-08-21 Thread Dan Ross


  
  
Hey Chris-
  
  Is the source available anywhere? I've made a few wx apps and that
  sounds familiar.
  
  Dan
  

  

___
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] Shell login for py2app bundle

2010-03-20 Thread Dan Ross




The reason I can't hardcode the path/to/gs is because it's
ImageMagick's convert that's calling it, not me.

I'm not using PIL because I'm dealing with PDFs. I looked into PIL
initially though.

The Python bindings for ImageMagick (PythonMagick right?) looked rather
out of date and difficult to get working. It's possible I missed
something there though.

Anyway, I DID find a solution. I set my Path in ~/
.MacOSX/environment.plist and it works splendidly.


On 3/20/10 6:00 AM, pythonmac-sig-requ...@python.org wrote:

  Send Pythonmac-SIG mailing list submissions to
	pythonmac-sig@python.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.python.org/mailman/listinfo/pythonmac-sig
or, via email, send a message with subject or body 'help' to
	pythonmac-sig-requ...@python.org

You can reach the person managing the list at
	pythonmac-sig-ow...@python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Pythonmac-SIG digest..."
  
  

Today's Topics:

   1. Shell login for py2app bundle (Dan Ross)
   2. Re: Shell login for py2app bundle (Kevin Walzer)
   3. Re: Shell login for py2app bundle (Aahz)
   4. Re: Shell login for py2app bundle (Christopher Barker)
  
  

unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
  



___
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] Voice/Speech recognition

2010-03-08 Thread Dan Ross
I thought of this too but was kind of hoping for a pure Python option.

PyObjC may be the only route I'm finding

Thank you for the suggestion David.

On Mon, March 8, 2010 2:48 pm, David Warde-Farley wrote:

 On 3-Mar-10, at 10:45 PM, Dan Ross wrote:

 I'd like to make an app/game for my kids in which they would see a
 word, read it and the game would be able to recognize if they've
 read it correctly.

 Does anyone have any suggestions for speech/voice recognition?


 You ought to be able to leverage the Speech Service built into OS X
 for this.

 http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Speech/Articles/RecognizeSpeech.html

 David



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


[Pythonmac-SIG] Voice/Speech recognition

2010-03-03 Thread Dan Ross
I'd like to make an app/game for my kids in which they would see a word, read 
it and the game would be able to recognize if they've read it correctly.

Does anyone have any suggestions for speech/voice recognition?

Thanks in advance.
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG


[Pythonmac-SIG] Fink vs MacPorts vs Framework

2009-06-30 Thread Dan Ross
I currently use a Framework of 2.6.2 for my Python work but I always see a
lot of posts about using Fink or MacPorts builds.

Could anyone shed some light on why they use these rather than a Framework?

Advantages/disadvantages?

Thanks,

Dan

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


Re: [Pythonmac-SIG] Fink vs MacPorts vs Framework

2009-06-30 Thread Dan Ross
I'm not sure I understand what you mean.

I can certainly add any packages I like to my Framework build so I don't
think availability of packages is a concern.

Unless I'm misinterpreting the term packages?

On Tue, June 30, 2009 8:11 am, Alexandre Quessy wrote:
 Hi !
 Seems to me there are a lot of python packages that are available
 through the MacPorts. In the built-in framework, there are only a few
 basic packages. Fink gives the same benefits than MacPorts, but there
 might be fewer packages available though it than through MacPorts.
 That's why I use MacPorts.
 Is this right ?

 a

 2009/6/30 Dan Ross d...@rosspixelworks.com:
 I currently use a Framework of 2.6.2 for my Python work but I always see
 a
 lot of posts about using Fink or MacPorts builds.

 Could anyone shed some light on why they use these rather than a
 Framework?

 Advantages/disadvantages?

 Thanks,

 Dan

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




 --
 Alexandre Quessy
 http://alexandre.quessy.net/



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


Re: [Pythonmac-SIG] Fink vs MacPorts vs Framework

2009-06-30 Thread Dan Ross
That makes a great deal of sense. I tried to mess with pygame at one 
time, but as you stated, it was such a pain to build I gave up.


Leonardo Santagada wrote:

On Jun 30, 2009, at 12:11 PM, Dan Ross wrote:


I'm not sure I understand what you mean.

I can certainly add any packages I like to my Framework build so I don't
think availability of packages is a concern.

Unless I'm misinterpreting the term packages? 



Pygame for example, that is a pain to build right, is avaliable in 
macports, the same with subversion bindings and so on.


The macport version of python 2.5 and 2.6 is a framework build so it 
is almost the same as the default leopard python sans dtrace support 
and probably the same as python.org ones.


So it is just advantages in using the macports one I think :)


--
Leonardo Santagada
santagada at gmail.com 

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


[Pythonmac-SIG] Unable to run python application (beegee beegee)

2009-04-15 Thread Dan Ross

Hi bee gee -

You need to type python first.py into Terminal, not IDLE.

Dan

pythonmac-sig-requ...@python.org wrote:

Send Pythonmac-SIG mailing list submissions to
pythonmac-sig@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/pythonmac-sig
or, via email, send a message with subject or body 'help' to
pythonmac-sig-requ...@python.org

You can reach the person managing the list at
pythonmac-sig-ow...@python.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of Pythonmac-SIG digest...
   



Today's Topics:

1. Unable to run python application (beegee beegee)
   
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Python SMB Error?

2009-01-14 Thread Dan Ross
Hi all -

I get the following error when launching a wxPython app in TextMate...

2009-01-14 07:42:37.029 Python[26558:53ef] Error loading
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb:
 dlopen(/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb,
262): Symbol not found: _URLM_DirectQueryInterface
  Referenced from:
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb
  Expected in: flat namespace
2009-01-14 07:42:37.030 Python[26558:53ef] Cannot find function pointer
CIFSURLMounterFactory for factory 92D4EFEF-F5AA-11D5-A1EE-003065A0E6DE in
CFBundle/CFPlugIn 0x1955d530
/System/Library/Filesystems/URLMount/smb.URLMounter (bundle, not loaded)
2009-01-14 07:42:37.031 Python[26558:53ef] Error loading
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb:
 dlopen(/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb,
262): Symbol not found: _URLM_DirectQueryInterface
  Referenced from:
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb
  Expected in: flat namespace
2009-01-14 07:42:37.032 Python[26558:53ef] Cannot find function pointer
CIFSURLMounterFactory for factory 92D4EFEF-F5AA-11D5-A1EE-003065A0E6DE in
CFBundle/CFPlugIn 0x1955d530
/System/Library/Filesystems/URLMount/smb.URLMounter (bundle, not loaded)
2009-01-14 07:42:37.033 Python[26558:53ef] Error loading
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb:
 dlopen(/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb,
262): Symbol not found: _URLM_DirectQueryInterface
  Referenced from:
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb
  Expected in: flat namespace
2009-01-14 07:42:37.033 Python[26558:53ef] Cannot find function pointer
CIFSURLMounterFactory for factory 92D4EFEF-F5AA-11D5-A1EE-003065A0E6DE in
CFBundle/CFPlugIn 0x1955d530
/System/Library/Filesystems/URLMount/smb.URLMounter (bundle, not loaded)
2009-01-14 07:42:37.034 Python[26558:53ef] Error loading
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb:
 dlopen(/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb,
262): Symbol not found: _URLM_DirectQueryInterface
  Referenced from:
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb
  Expected in: flat namespace
2009-01-14 07:42:37.035 Python[26558:53ef] Cannot find function pointer
CIFSURLMounterFactory for factory 92D4EFEF-F5AA-11D5-A1EE-003065A0E6DE in
CFBundle/CFPlugIn 0x1955d530
/System/Library/Filesystems/URLMount/smb.URLMounter (bundle, not loaded)
2009-01-14 07:42:37.035 Python[26558:53ef] Error loading
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb:
 dlopen(/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb,
262): Symbol not found: _URLM_DirectQueryInterface
  Referenced from:
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb
  Expected in: flat namespace
2009-01-14 07:42:37.036 Python[26558:53ef] Cannot find function pointer
CIFSURLMounterFactory for factory 92D4EFEF-F5AA-11D5-A1EE-003065A0E6DE in
CFBundle/CFPlugIn 0x1955d530
/System/Library/Filesystems/URLMount/smb.URLMounter (bundle, not loaded)
2009-01-14 07:42:37.037 Python[26558:53ef] Error loading
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb:
 dlopen(/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb,
262): Symbol not found: _URLM_DirectQueryInterface
  Referenced from:
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb
  Expected in: flat namespace
2009-01-14 07:42:37.037 Python[26558:53ef] Cannot find function pointer
CIFSURLMounterFactory for factory 92D4EFEF-F5AA-11D5-A1EE-003065A0E6DE in
CFBundle/CFPlugIn 0x1955d530
/System/Library/Filesystems/URLMount/smb.URLMounter (bundle, not loaded)
2009-01-14 07:42:37.038 Python[26558:53ef] Error loading
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb:
 dlopen(/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb,
262): Symbol not found: _URLM_DirectQueryInterface
  Referenced from:
/System/Library/Filesystems/URLMount/smb.URLMounter/Contents/MacOS/smb
  Expected in: flat namespace
2009-01-14 07:42:37.038 Python[26558:53ef] Cannot find function pointer
CIFSURLMounterFactory for factory 92D4EFEF-F5AA-11D5-A1EE-003065A0E6DE in
CFBundle/CFPlugIn 0x1955d530
/System/Library/Filesystems/URLMount/smb.URLMounter (bundle, not loaded)

Using Python 2.6.1 although I get the error when reverting to 2.5.4 as
well. This is only on my MacPro at work. My MacBook Pro at home does not
produce the error.

Thanks,

Dan

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


Re: [Pythonmac-SIG] PyObjC Documentation

2008-11-14 Thread Dan Ross
I hear ya'. That's the part I found very frustrating. Thanks for the
suggestion.
 On Fri, 14 Nov 2008 11:20:38 -0600, Nehemiah Dacres  wrote:
  http://pyobjc.sourceforge.net/ [1]
 thats as definitive as it gets unfortunately. God forbid Apple
should get involved. then there might be Gasp, a book on APPLE's site.
in the mean time there is a list of supported frameworks and an
explanation of garbage collection. I gave up for the same reason I
gave up on GoogleApps Django. No documentation on what works and what
doesn't in their little hybrid/Frankinstine.
  On Wed, Nov 12, 2008 at 4:14 PM, Dan Ross  wrote:
   I've seen the documentation at the official website and at the
Apple Developer website.
 Is there somewhere that has more definitive documentation for
PyObjC?
 Thanks,
 Dan
 ___
 Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org [3]
 http://mail.python.org/mailman/listinfo/pythonmac-sig [4]
 -- 
 lalalalala! it's not broken because
I can use it

http://linux.slashdot.org/comments.pl?sid=194281threshold=1commentsort=0mode=threadcid=15927703
[5]
 

Links:
--
[1] http://pyobjc.sourceforge.net/
[2] mailto:[EMAIL PROTECTED]
[3] mailto:Pythonmac-SIG@python.org
[4] http://mail.python.org/mailman/listinfo/pythonmac-sig
[5]
http://linux.slashdot.org/comments.pl?sid=194281threshold=1commentsort=0mode=threadcid=15927703
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] thanks for PyObjC!

2008-11-13 Thread Dan Ross
So is py2app the only recourse for making sure all dependencies are met?___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] PyObjC Documentation

2008-11-12 Thread Dan Ross


I've seen the documentation at the official website and at the Apple Developer website.Is there somewhere that has more definitive documentation for PyObjC?Thanks,Dan___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Error compiling with py2app

2008-11-10 Thread Dan Ross


 Hi all-  

 I'm having trouble with py2app all of a sudden. It stopped working
with 2.5 so I installed 2.6 today, hoping that may work.  

 I'm attaching the text from when the error begins. Any help would be
appreciated.  

 Thanks,  

 Dan  
Traceback (most recent call last):
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py,
 line 548, in _run
self.run_normal()
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py,
 line 619, in run_normal
self.create_binaries(py_files, pkgdirs, extensions, loader_files)
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py,
 line 723, in create_binaries
mm.mm.run_file(runtime)
  File build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py, line 62, in 
run_file
m = self.findNode(pathname)
  File build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py, line 55, in 
findNode
newname = self.locate(name)
  File build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py, line 30, 
in locate
return self.delegate.locate(newname)
  File build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py, line 69, 
in locate
res = self.copy_framework(info)
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py,
 line 56, in copy_framework
destfn = self.appbuilder.copy_framework(info, self.dest)
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py,
 line 789, in copy_framework
self.copy_python_framework(info, dst)
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py2app-0.3.6-py2.6.egg/py2app/build_app.py,
 line 817, in copy_python_framework
os.path.join(outdir, fn))
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/cmd.py,
 line 376, in copy_file
dry_run=self.dry_run)
  File 
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/file_util.py,
 line 119, in copy_file
can't copy '%s': doesn't exist or not a regular file % src
DistutilsFileError: can't copy 
'/Library/Frameworks/Python.framework/Versions/2.6/Resources/version.plist': 
doesn't exist or not a regular file
 /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/file_util.py(119)copy_file()
- can't copy '%s': doesn't exist or not a regular file % src
(Pdb) 
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig