Failed initializing Python

sauerbronn

Chieftain
Joined
Jan 20, 2009
Messages
1
Please, Help.

This is the third Civ box I got, but I am very frustrated and upset.The first two were for PC but I am a proud Mac user now.

A friend bought for me Civ IV for Mac in the US (do you know how difficult it is to buy it for Mac in Brasil???) and I just can not play it! At first, my notebook (an old iBook G4) could not run it.... ok, pretty old (and useful) machine.

Then I bought an 24" iMac - 2.4GHz / 1MB RAM / ATI Radeon HD2600 256 Mb Graphics with the highest expectations to conquer the world in a big screen but I still can not play! After the instalation it keeps saying:

"Fatal Error"
"Failed initializing Python" !

I do not think the problem is the machine.

I want to play it! What should I do?
 
Hello, welocme :wavey:

I assume you haven't tried installing any mods yet?

It sounds as if Civ4 isn't installed correctly. Did you copy the entire Civilization IV folder across to your hard drive from the disk?

If you are sure you did the installation correctly, open your <Home Folder>/Documents/Civilization IV/ directory in the Finder. Look for a file called 'CivilizationIV.ini'. Right click that file and select Open with ... and choose TextEdit.

Find the following text near the end of the file:

; Enable the logging system
LoggingEnabled = 0

Change the Zero to a One so that it reads:

; Enable the logging system
LoggingEnabled = 1

Save the file and relaunch Civ4. When you get the Python error it should write some log information to a file in your <Home Folder>/Documents/Civilization IV/Logs/ directory called PythonErr.log.

Open PythonErr.log with TextEdit and, if it contains text, copy and paste the contents into a post here. That may give a clue as to what is failing.
 
Thank you, I followed the changes you suggested and I got :

Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError
:
No module named CvEventInterface

Failed to load python module CvEventInterface.
ERR: Call function onEvent failed. Can't find module CvEventInterface
Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError
:
No module named CvAppInterface

Failed to load python module CvAppInterface.
ERR: Call function init failed. Can't find module CvAppInterface
 
Hi, welcome :wavey:

Did you install Civ4 correctly? These symptoms indicate that there are no Python files (.py) in place.
 
Process: Civilization IV [429]
Path: /Applications/Civilization IV/Civilization IV.app/Contents/MacOS/Civilization IV
Identifier: com.aspyr.civ4
Version: 1.61 (1.61)
Code Type: X86 (Native)
Parent Process: launchd [125]

Date/Time: 2009-12-27 16:10:06.514 +0100
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6

Interval Since Last Report: 149314 sec
Crashes Since Last Report: -6
Per-App Interval Since Last Report: 811 sec
Per-App Crashes Since Last Report: 1

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 7

--

I took a look at the log file and here it is :

load_module CvEventInterface
CvEventInterface import failed
Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named CvEventInterface
load_module CvAppInterface
CvAppInterface import failed
Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named CvAppInterface

--

as for the installation, I copied the civ4 directory into application and then clicked on the civ4 icon to launch.
 
1. Are you sure you copied the *whole* Civ4 directory into /Applications/ ?

2. Which Civ4 icon did you launch - the one on the DVD? Or the one you just copied into /Applications/ ?
 
Yes I did and I clicked on the icon in the applications.
I have an old dvd without any patch and latest OS X (10.6.2)
 
In that case, I have no idea. I suggest you raise a ticket with Aspyr .. though they may not even talk to you until you update using the latest patch installer.
 
Back
Top Bottom