Mac OS X - bz2

Asked by GillesC

I'm trying to run dumpReader under Mac OS X

but I've a problem :

line 80, in loadTextblockRaw
    L, olength = f.loadBlock(self.blocksaddr[block], self.bitaddr[block], start, length)
AttributeError: 'bz2.BZ2File' object has no attribute 'loadBlock'

What do you think about that ?

I've already installed :
* python-2.5.2-macosx
* qt-mac-opensource-4.4.0
* sip-4.7.6
* PyQt-mac-gpl-4.4.2

(I've also replaced tabulations with 8-spaces in *.py files)

Thanks for any advice.

Gilles.

Question information

Language:
English Edit question
Status:
Answered
For:
Wikipedia Dump Reader Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Benjamin Thyreau (benji2) said :
#2

Hi,
I haven't tested it on MacOSX yet. I'm almost sure the problem comes from the fact that "import bz2" is finding the system-wide bz2.so instead of the locally-modified copy.
This is probably due to the fact that the local "bz2.so" copy is a Linux binary file, thus can't run on MacOSX. I'm not that familiar with OSX's modules, but if you can recompiles the content of the src/ directory, a new (modified) bz2.so should be built for your system.
When i have access to some MacOSX machine, i'll try to build some static bz2.so module, so that it can runs out-of-the-box on MacOSX machine too. Note that if you know how to do that too, you can send me such binary copy too !
Hope it helps, Thanks

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Benjamin Thyreau (benji2) said :
#4

Fix the lp status

Can you help with this problem?

Provide an answer of your own, or ask GillesC for more information if necessary.

To post a message you must log in.