Python DLL's for C++?

2009-02-10 Thread Geert Vancompernolle
+ interfaces of NotePad++... -- Best rgds, Geert *Use EcoCho <http://www.ecocho.com>: environmentally friendly search the internet!* -- http://mail.python.org/mailman/listinfo/python-list

Re: Path question

2009-02-08 Thread Geert Vancompernolle
Diez B. Roggisch wrote: Geert Vancompernolle schrieb: Hi, I have the following path construction: ./src/__init__.py /main.py /modules/__init__.py /application.py /ui/__init__.py /mainwindow/__init__.py /mainwindow.py Now I want to call the

Path question

2009-02-03 Thread Geert Vancompernolle
t none of them work. I always get the following error: "Attempted relative import beyond toplevel package" How can I import the method 'MainWindow' from 'mainwindow' into 'application', using the explicit relative import rules? Or is there a better way to do th

How to run Python in Windows w/o popping a DOS box?

2009-01-01 Thread Geert Vancompernolle
necessary stuff (only tested it on small examples, though) Maybe you can give this a try... Best rgds, --Geert * * -- http://mail.python.org/mailman/listinfo/python-list

Re: Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

2008-03-19 Thread geert
On Mar 19, 2:26 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Mar 19, 9:47 am, geert <[EMAIL PROTECTED]> wrote: > > > > > On Mar 18, 6:56 pm, geert <[EMAIL PROTECTED]> wrote: > > > > On Mar 14, 1:15 pm, [EMAIL PROTECTED] wrote: > &g

Re: Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

2008-03-18 Thread geert
On Mar 18, 6:56 pm, geert <[EMAIL PROTECTED]> wrote: > On Mar 14, 1:15 pm, [EMAIL PROTECTED] wrote: > > > look > > athttp://groups.google.be/group/comp.lang.python/browse_thread/thread/d... > > > There is a macpython list that you can consult > > athttp:

Re: Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

2008-03-18 Thread geert
rch ppc64' \ ./configure --disable-dependency-tracking --enable-thread-safe-client --prefix=/usr/local/mysql You then go this way to get it running on your machine: http://hivelogic.com/articles/installing-mysql-on-mac-os-x/ Then reinstall MySQLdb. Magic! Geert -- http://mail.python.org/mailman/listinfo/python-list

Re: Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

2008-03-15 Thread geert
On Mar 14, 11:49 am, "Robert Rawlins" <[EMAIL PROTECTED]> wrote: > Geert, > > I've not seen this issue myself, however, you might get a little more luck > asking over on theMySQLdbmailing list as this seems to be more an issue > with the db than your python

Huge problem gettng MySQLdb to work on my mac mini running Macosx 10.5 Leopard

2008-03-14 Thread geert
File "build/bdist.macosx-10.5-i386/egg/_mysql.py", line 6, in __bootstrap__ ImportError: dynamic module does not define init function (init_mysql) Has anyone solved this? I been hunting around for 2 weeks now, and my deadline is looming grimly on the horizon :) Geert -- http://mail.python.org/mailman/listinfo/python-list

FW: Crash in PyImport_Import()

2006-12-19 Thread Geert Van Muylem
? Regards, Geert _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Van Muylem Sent: maandag 18 december 2006 22:51 To: python-list@python.org Subject: Crash in PyImport_Import() Hi, The following script works fine when I call it from the python interpreter but

Crash in PyImport_Import()

2006-12-18 Thread Geert Van Muylem
printf ("Before Import...\n"); m_pModule = PyImport_Import(pName); printf ("After Import...\n"); if (m_pModule != NULL) { m_iPython = 0; m_pDictionary = PyModule_GetDict(m_pModule); } } return (m_iPython); } Hope someone can give me a hint? thanks, Geert -- http://mail.python.org/mailman/listinfo/python-list

Strange behaviour with eval() and globals() copy

2005-12-29 Thread Geert Jansen
bal namespace as returned by globals(), any other mapping makes this code fail. Python version is 2.4.2 on Linux. Regards, Geert -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBQ7RFwprP

Profiling with hotshot and wall clock time

2005-11-24 Thread Geert Jansen
filer.runcall(call, *args) profiler.close() stats = hotshot.stats.load(fprof) stats.strip_dirs().sort_stats('time').print_stats() os.remove(fprof) profile(time.sleep, 1) Regards, Geert Jansen -- http://mail.python.org/mailman/listinfo/python-list

PyImport_Import fails on linux

2005-06-30 Thread geert . van . muylem
which i want to call from my C module. I've tried also copying the script on several locations... Anyone any idea? (Using python 2.2 on suse8.2) Thanks in advance! Geert -- http://mail.python.org/mailman/listinfo/python-list