[Pythonmac-SIG] py2app/wx font embed problem

2010-11-03 Thread Sean DiZazzo
Hi all,

I'm trying to package an app for both windows and mac.  It uses wxpython,
MySQLdb and SQLObject.  On Windows, I used py2exe, and got it working right
away.  On my mac, I have had problems getting it to work.  I am using
python2.6 on darwin ports along with the needed libraries.

When I run the app from the command line using the darwin ports Python
version, it opens up ok, and there are no font problems.  When I use the
same interpreter and package it into a .app application, it opens ok, but
each text character is replaced by a box.  I built the interface with
wxFormBuilder, so I am a bit removed from the actual GUI code.  I did,
though, try changing the default font several different ways and
recompiling.  It didn't help.

Python 2.6.6 (r266:84292, Oct 28 2010, 14:05:04)
wx-2.8-gtk2-unicode
py2app-0.5.3-py2.6.egg

Any ideas?

~Sean
___
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/wx font embed problem

2010-11-03 Thread Aahz
On Wed, Nov 03, 2010, Sean DiZazzo wrote:

 I'm trying to package an app for both windows and mac.  It uses wxpython,
 MySQLdb and SQLObject.  On Windows, I used py2exe, and got it working right
 away.  On my mac, I have had problems getting it to work.  I am using
 python2.6 on darwin ports along with the needed libraries.

You are likely better off using the python.org build.
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur.  --Red Adair
___
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/wx font embed problem

2010-11-03 Thread Sean DiZazzo
Ok.  Thanks.  I'll give it a try (again).  I had some problems getting
MySQLdb installed previously, so I figured I'd give darwin ports a
try...where MySQLdb installed without a hitch.

uggh


On Wed, Nov 3, 2010 at 12:32 PM, Aahz a...@pythoncraft.com wrote:

 On Wed, Nov 03, 2010, Sean DiZazzo wrote:
 
  I'm trying to package an app for both windows and mac.  It uses wxpython,
  MySQLdb and SQLObject.  On Windows, I used py2exe, and got it working
 right
  away.  On my mac, I have had problems getting it to work.  I am using
  python2.6 on darwin ports along with the needed libraries.

 You are likely better off using the python.org build.
 --
 Aahz (a...@pythoncraft.com)   *
 http://www.pythoncraft.com/

 If you think it's expensive to hire a professional to do the job, wait
 until you hire an amateur.  --Red Adair
 ___
 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] Amateur question about modules

2010-11-03 Thread Pedro Gazzola
ImportError: No module named tkSnack

I tried to run one script on the Python Launcher and got this import error.

So, how can I correctly import this module?
And where should I put it, so Python can find it.

Thanks for any help.
___
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/wx font embed problem

2010-11-03 Thread Aahz
On Wed, Nov 03, 2010, Sean DiZazzo wrote:

 Ok.  Thanks.  I'll give it a try (again).  I had some problems getting
 MySQLdb installed previously, so I figured I'd give darwin ports a
 try...where MySQLdb installed without a hitch.

Yeah, unfortunately my perception is that GUI stuff tends to either
require the python.org build or a careful manual build (making sure you
get all the framework stuff correct).
-- 
Aahz (a...@pythoncraft.com)   * http://www.pythoncraft.com/

If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur.  --Red Adair
___
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] Amateur question about modules

2010-11-03 Thread Kevin Walzer

On 11/3/10 4:32 PM, Pedro Gazzola wrote:

ImportError: No module named tkSnack

I tried to run one script on the Python Launcher and got this import error.

So, how can I correctly import this module?
And where should I put it, so Python can find it.

Thanks for any help.



TkSnack is a Tkinter wrapper for the Snack sound library. You'll need to 
install TkSnack in your site-packages path and Snack in a place where 
Tkinter can find it like /Library/Tcl. Google can direct you to download 
sites.


--
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


Re: [Pythonmac-SIG] MySQLdb on OS X 10.6

2010-11-03 Thread brinsknaps

Thank you so much Ned!!! I completely overlooked that after reinstalling
mysql via macports. I added the db, user, pw, and everything worked
perfectly! There's hope for me and Django after all haha. Again, I really
appreciate your help and time, saving my n00bness to python and Django!
-- 
View this message in context: 
http://old.nabble.com/MySQLdb-on-OS-X-10.6-tp26311352p30096268.html
Sent from the Python - pythonmac-sig mailing list archive at Nabble.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


[Pythonmac-SIG] os.getcwd() returns lower case current working directory

2010-11-03 Thread Klaasmer
Hi there,

when I call os.getcwd() on my Mac under OS X 10.6.4 from my home directory, the 
path is converted to lowercase. I get

/users/myusername

instead of

/Users/myusername

On another Mac I get the correct uppercase string. How can I configure this? Is 
there a (hidden) Python setting?

Reason for asking: On OS X all user directories are in /Users. This is always 
uppercase. When using Mercurial, it gets sometimes confused with this strange 
and incorrect normalization of my current directory.


Best regards,
Klaas.___
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] os.getcwd() returns lower case current working directory

2010-11-03 Thread Ned Deily
In article 98b8e796-eeb7-4c19-92b9-200bfed9a...@gmail.com,
 Klaasmer klaas...@gmail.com wrote:
 when I call os.getcwd() on my Mac under OS X 10.6.4 from my home directory, 
 the path is converted to lowercase. I get
 
 /users/myusername
 
 instead of
 
 /Users/myusername
 
 On another Mac I get the correct uppercase string. How can I configure this? 
 Is there a (hidden) Python setting?
 
 Reason for asking: On OS X all user directories are in /Users. This is 
 always uppercase. When using Mercurial, it gets sometimes confused with this 
 strange and incorrect normalization of my current directory.

[Note to readers here:  the OP asked this question also on Stack 
Overflow and has subsequently found that the same behavior is exhibited 
by an ObjC program.  So it turns out to not be a Python issue at all.]

http://stackoverflow.com/questions/4073469/how-can-i-get-the-correct-case
-when-calling-pythons-os-getcwd

-- 
 Ned Deily,
 n...@acm.org

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