473,503 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

mxDateTime on Mac: Fatal Python Error

I'm trying to get mxDateTime working on a Mac so that I can use pyscopg
and cx_Oracle. The Egenix base package builds and installs quite
happily, but then when I try to import it I get
import mx.DateTime

Fatal Python error: Interpreter not initialized (version mismatch?)
Abort

.... any ideas?

Environment:

OS X 10.3.8
sys.version: '2.3 (#1, Sep 13 2003, 00:49:11) \n[GCC 3.3 20030304
(Apple Computer, Inc. build 1495)]'
egenix-mx-base-2.0.6

Jul 18 '05 #1
3 2015
co*****@alanlittle.org wrote:
I'm trying to get mxDateTime working on a Mac so that I can use pyscopg
and cx_Oracle. The Egenix base package builds and installs quite
happily, but then when I try to import it I get

import mx.DateTime
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort

... any ideas?
Messages like these are usually the result of a version mismatch
between the Python interpreter and the .so file of the extensions.

Make sure you build the package using the same Python interpreter
you will later use it with.
Environment:

OS X 10.3.8
sys.version: '2.3 (#1, Sep 13 2003, 00:49:11) \n[GCC 3.3 20030304
(Apple Computer, Inc. build 1495)]'
egenix-mx-base-2.0.6


Hmm, this might also be some weird Mac OS issue. While we currently
don't support Macs directly, we do welcome suggestions to make them
work on your favorite platform.

Thanks,
--
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source (#1, Mar 07 2005)
Python/Zope Consulting and Support ... http://www.egenix.com/
mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/

__________________________________________________ ______________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
Jul 18 '05 #2

On Monday 07 March 2005 17:51, M.-A. Lemburg wrote:
co*****@alanlittle.org wrote:
I'm trying to get mxDateTime working on a Mac so that I can use pyscopg
and cx_Oracle. The Egenix base package builds and installs quite
happily, but then when I try to import it I get

import mx.DateTime


Fatal Python error: Interpreter not initialized (version mismatch?)
Abort

... any ideas?


Messages like these are usually the result of a version mismatch
between the Python interpreter and the .so file of the extensions.

Make sure you build the package using the same Python interpreter
you will later use it with.
Environment:

OS X 10.3.8
sys.version: '2.3 (#1, Sep 13 2003, 00:49:11) \n[GCC 3.3 20030304
(Apple Computer, Inc. build 1495)]'
egenix-mx-base-2.0.6


Hmm, this might also be some weird Mac OS issue. While we currently
don't support Macs directly, we do welcome suggestions to make them
work on your favorite platform.

Thanks,
--
Marc-Andre Lemburg
eGenix.com

Works fine for me on a 2004 PowerBook with 10.3.8.

I'm using Python from DarwinPorts for pygtk and am using mx.DateTime
with it. I don't remember if DarwinPorts had mx.DateTime or if I
downloaded the source and installed it myself. I suspect it's the
version mismatch problem mentioned above.

502 mac:~ $ /opt/local/bin/python
Python 2.3.4 (#1, Nov 9 2004, 21:05:33)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import mx.DateTime

Dave

Jul 18 '05 #3
On Mon, Mar 07, 2005 at 11:51:20PM +0100, M.-A. Lemburg wrote:
co*****@alanlittle.org wrote:
I'm trying to get mxDateTime working on a Mac so that I can use pyscopg
and cx_Oracle. The Egenix base package builds and installs quite
happily, but then when I try to import it I get

import mx.DateTime


Fatal Python error: Interpreter not initialized (version mismatch?)
Abort

... any ideas?


Messages like these are usually the result of a version mismatch
between the Python interpreter and the .so file of the extensions.

Make sure you build the package using the same Python interpreter
you will later use it with.


It is most likely a result of this:

http://mail.python.org/pipermail/pyt...er/050324.html
http://www.mail-archive.com/py******.../msg00964.html
Environment:

OS X 10.3.8
sys.version: '2.3 (#1, Sep 13 2003, 00:49:11) \n[GCC 3.3 20030304
(Apple Computer, Inc. build 1495)]'
egenix-mx-base-2.0.6


Hmm, this might also be some weird Mac OS issue. While we currently
don't support Macs directly, we do welcome suggestions to make them
work on your favorite platform.


If it is related to the issue I mention above, then it is a distutils specific bug fixed in current versions of Python, but not in the version installed by default by OS X.

HTH
Michael
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2086
by: Dave Harrison | last post by:
Hi all, got a problem combinging mx and MySQLdb, when I build and install both for my Python2.1 install on a Solaris 9 box I can import mx fine, but importing MySQLdb causing python to core dump. ...
0
1356
by: Tien Nguyen | last post by:
Hi There, I installed python2.3 (configured with option --with-libs='lpthread -lcl'), and egenix-mx-base-2.0.5 on an HPUX B.11.11 machine. Everything seems to be OK. I can start python and...
0
2134
by: Vikram | last post by:
hi, i have a program which uses multiple threads and downloads pages using pycurl and processes these pages among other things. the program works fine with python 2.2 and pycurl 7.10.8 ; with...
6
16597
by: o'seally | last post by:
solaris/linux admins/rookie_developers that battle with this error are probably all frustrated when it happens. i bet you're also somehow frustrated by this seemingly unsolvable error :-) ...take...
1
2198
by: Michael R Seefelt | last post by:
I have written a simple C-program that loads a Python Function that connects to a PostgreSQL database> When I only load and execute the Python function all works OK. If I call the Python function a...
0
1244
by: Sven Hilmahr | last post by:
Hello, I tried to do a Python 2.3.4 framework installation on my Mac OS X 10.3.5. I configured as described in /Mac/OSX/ReadMe: ../configure --enable-framework But on make test, one test...
3
3005
by: spereira | last post by:
I am running XAMPP for Mac OS X 0.6.1 ! And since it did not have PDF libarires I downloaded ezpdf from the...
1
3547
by: mmacrobert | last post by:
Hi Everyone, I've created a 'C' dll that is accessed via ctypes library containing a bunch of functions. I've successfully been able to use the functions. However, I would like to throw python...
8
2758
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.