Re: [Pythonmac-SIG] My first Python Program

2011-01-22 Thread Massimo Di Stefano
Hi John, to run a python (.py) file, from the shell type : python /path/to/your/file.py (just drug'n'drop the file inside the terminal shell) to know the directory where your shell is running type the command : > pwd it will show you the path. to go inside the directory type : > cd /path

Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 89, Issue 12

2010-09-18 Thread Massimo Di Stefano
I tried using the notes from here : http://www.dabeaz.com/cgi-bin/wiki.pl?SwigFaqMaxOSXSharedLibraries all works fine, in the nex days i'll also try the "distutils way" and let you know :-) thanks to helped me !!! best regards, Massimo. Il giorno 18/set/2010, alle ore 12.00, pythonmac-sig-

Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 89, Issue 12

2010-09-18 Thread Massimo Di Stefano
thanks! i haven't looked inside the faq :-( thanks to point me to its page, swig -python example.i cc -c `python-config --cflags` example.c example_wrap.c cc -bundle `python-config --ldflags` example.o example_wrap.o -o _example.so fix the problems, now in the tutorial, all works as

[Pythonmac-SIG] swig example on mac osx 10.6.4

2010-09-17 Thread Massimo Di Stefano
Hello All, i'm tring to run the swig - python example, from the page : http://www.swig.org/tutorial.html but running it i have a "wrong architecture" problem. i tried using swig built from source version 2.0. this the log, thanks for any help! : MacBook-Pro-15-di-sasha:~ sasha$ /usr/local/bi

[Pythonmac-SIG] py2applet osx 10.6.4 ('Target' object has no attribute 'appdir')

2010-08-18 Thread Massimo Di Stefano
Hello All, i'm ring to use py2applet to bundle a python application that uses several python mudules (gdal, pyqt, pygame) as suggested on the web page : http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html#installing-with-easy-install i removed the old py2applet and i installed the la

Re: [Pythonmac-SIG] py2app and setuptools , import error (osx 10.6.3, system python)

2010-06-12 Thread Massimo Di Stefano
> On Jun 12, 2010, at 7:47, Massimo Di Stefano wrote: > >> Hi, >> >> i tried to run py2app on the setup.py file, >> >> python setup.py py2app >> >> i had this log : >> >> http://www.geofemengineering.it/data/py2app_log.txt >&g

Re: [Pythonmac-SIG] py2app and setuptools , import error (osx 10.6.3, system python)

2010-06-12 Thread Massimo Di Stefano
le-ImageBrowser sasha$ open /usr/lib/python2.6/lib-dynload/objc/ The file /usr/lib/python2.6/lib-dynload/objc does not exist. MacBook-Pro-15-di-Massimo-Di-Stefano:~ sasha$ sudo /usr/libexec/locate.updatedb MacBook-Pro-15-di-Massimo-Di-Stefano:~ sasha$ locate _objc.so /Applications/Utilities/A

Re: [Pythonmac-SIG] py2app and setuptools , import error (osx 10.6.3, system python)

2010-06-12 Thread Massimo Di Stefano
. Massimo. Il giorno 12/giu/2010, alle ore 16.03, Ronald Oussoren ha scritto: > > On 12 Jun, 2010, at 4:13, Massimo Di Stefano wrote: >> >> >> but if i try to run the example from PyObjc : >> >> PyObjCExample-ImageBrowser >> >> i have th

Re: [Pythonmac-SIG] py2app and setuptools , import error (osx 10.6.3, system python)

2010-06-12 Thread Massimo Di Stefano
Python has a simlink in "/usr/local/bin" but it is the system python. setuptools doesn't work ... i tried to reinstall it from source and now i'm able to import both setuptools and py2app. python -v give me : MacBook-Pro-15-di-Massimo-Di-Stefano:~ sasha$ which python /

[Pythonmac-SIG] py2app and setuptools , import error (osx 10.6.3, system python)

2010-06-11 Thread Massimo Di Stefano
Hi All, i'm tring to run py2app but i'm having problems to have it working, here is the log : (seems it fails to import setuptools, but it is already installed) thanks foe any help1 Regards, Massimo. ## log : sudo easy_install py2app Password: Searching for py2app Best match: py2app 0.4.3

[Pythonmac-SIG] PyTables installation problems

2010-02-27 Thread Massimo Di Stefano
Hi All, tring to install Pytables on a mac osx 10.6.2 i get this error : In [1]: from tables import * Traceback (most recent call last): File "", line 1, in File "tables/__init__.py", line 56, in from tables.utilsExtension im

Re: [Pythonmac-SIG] Unable to run python application

2009-04-15 Thread massimo di stefano
3) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from first import * >>> first() Hello world What is your name?epi Thank you epi >>> Massimo Di Stefano ma

[Pythonmac-SIG] Osx and spatiallite support

2009-03-25 Thread massimo di stefano
TRENTINO-ALTO ADIGE POLYGON 13636192197.0 ABRUZZI POLYGON 10921890033.0 BASILICATA POLYGON 10082620411.6 MARCHE POLYGON 9801006025.43 UMBRIA POLYGON 8511757763 POLYGON.65 FRIULI-VENEZIA GIULIA MULTIPOLYGON 7571067911.64 LIGURIA MULTIPOLYGON 5451586208.43 MOLISE POLYGON 4534700124.13 VALLE D'AOSTA 3309252

Re: [Pythonmac-SIG] [pysqlite] sqlite and python

2009-03-25 Thread massimo di stefano
TENSION thanks for any suggestion ciao, Massimo Il giorno 25/mar/09, alle ore 21:56, Ned Deily ha scritto: In article <2d7d319e-094d-4d0e-8dd9-9ad51056a...@yahoo.it>, massimo di stefano wrote: i followed that way too, i downloaded the bynary version for pysqlite osx intel i c

Re: [Pythonmac-SIG] sqlite and python

2009-03-25 Thread massimo di stefano
TH=/Users/Shared/source/spatialite/lib export DYLD_LIBRARY_PATH that seems to be what man dyld suggest me to use] Massimo Di Stefano massimodisa...@yahoo.it epifanio on irc.freenode.net /join gfoss Il giorno 25/mar/09, alle ore 16:49, Ned Deily ha scritto: In article <259915b3-3a8a-495

[Pythonmac-SIG] sqlite and python

2009-03-25 Thread massimo di stefano
IPOLYGON 4534700124.13 VALLE D'AOSTA MULTIPOLYGON 3309252833.27 SAN MARINO MULTIPOLYGON 60108921.7828 -- it works [1] - http://www.gaia-gis.it/spatialite/index.html [2] - test-2.3.7z have you any suggestion on what i need to get it working on osx too ? t

[Pythonmac-SIG] Build problem : Pyqt-4.5 on mac osx Leopard

2009-03-13 Thread massimo di stefano
help! regards, Massimo Di Stefano massimodisa...@yahoo.it epifanio on irc.freenode.net /join gfoss ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig

Re: [Pythonmac-SIG] thanks for PyObjC!

2008-11-09 Thread Massimo Di Stefano
Hi, i'm tring to runs the example files at : http://pyobjc.sourceforge.net/examples/ but unluky something is wrong in my python system, i tried from the python consolle : >>import Foundation, AppKit >>AppKit.NSBeep() it works, but tring the examples code like .. PyObjCExample-Python Addres

[Pythonmac-SIG] need an help to use py2app

2008-05-21 Thread Massimo Di Stefano
Hi i'm tring to use py2app on a paython script it create the executable myapp.app but when i try to launch it i've that it can't finde the modules needed by myapp.app liararies needed by myapp.py : #!/usr/bin/python import os from scipy import io, linalg from numpy import * from pylab import

[Pythonmac-SIG] py2app and missed modules

2008-05-18 Thread Massimo Di Stefano
Hi, i'm tring for the first time to use py2app :-) i need to create a .app of a module that have the follow dependancies : import os from scipy import io, linalg from numpy import * from pylab import save import sys from PyQt4 import QtGui from PyQt4 import QtCore but unlucky tring " py2app -

Re: [Pythonmac-SIG] pywps on mac osx

2007-10-03 Thread massimo di stefano
Il giorno 03/ott/07, alle ore 07:28, Ronald Oussoren ha scritto: > > On 3 Oct, 2007, at 3:13, massimo di stefano wrote: >> >> >> this is the error log : >> >> computer-di-epifanio:/Library/WebServer/CGI-Executables/ >> pywps-2.0.0-rc1 epifanio$ ./

Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 54, Issue 3

2007-10-02 Thread massimo di stefano
hi i'm using python 2.5 from the python shall subprocess works : host716:~ epifanio$ python Python 2.5.1 (r251:54869, Apr 18 2007, 22:08:04) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import subprocess >>> >

Re: [Pythonmac-SIG] pywps on mac osx

2007-10-02 Thread massimo di stefano
HI Il giorno 03/ott/07, alle ore 00:36, Thomas Juntunen ha scritto: > On Tue, 2 Oct 2007 21:35:52 +0200, massimo di stefano wrote: > >> grass, qgis, R, ossim, ossimplanet, mapserver + kamap >> all works fine :-) > > Wow, you're way ahead of me. :-) i've used

Re: [Pythonmac-SIG] pywps on mac osx

2007-10-02 Thread massimo di stefano
line 105, in __init__ raise NoApplicableCode(value) pywps.Wps.wpsexceptions.NoApplicableCodePyWPS NoApplicableCode: No module named subprocess mybe i'm missing/wrong something :-( thanks for your help :-) Massimo. Il giorno 02/ott/07, alle ore 22:11, Christopher Barker ha scri

Re: [Pythonmac-SIG] pywps on mac osx

2007-10-02 Thread massimo di stefano
point apologize me for my englesh and for the bad explanation of what i want try to do :-/ let me know if anyone wont help me toinstall pywps :-) thanks for any suggestion! Massimo. Il giorno 02/ott/07, alle ore 14:19, Thomas Juntunen ha scritto: > On Tue, 2 Oct 2007 12:25:29 +0200,

[Pythonmac-SIG] pywps on mac osx

2007-10-02 Thread massimo di stefano
HI Apologize me for this mail if it is off topic here... i'm new to python, i've just a little experience about this wonderfull language :-) i'm tring to configure a python web processing server "pywps" on my mbp http://pywps.wald.intevation.org/ it is an open project to port python environmen