<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hacking OS X&#8217;s Python dbhash and bsddb modules to work</title>
	<atom:link href="http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/feed/" rel="self" type="application/rss+xml" />
	<link>http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/</link>
	<description></description>
	<lastBuildDate>Thu, 15 Jul 2010 07:55:28 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brendan O'Connor</title>
		<link>http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/comment-page-1/#comment-297898</link>
		<dc:creator>Brendan O'Connor</dc:creator>
		<pubDate>Thu, 27 Nov 2008 00:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/#comment-297898</guid>
		<description>Worked great for me.  Thanks for posting this.</description>
		<content:encoded><![CDATA[<p>Worked great for me.  Thanks for posting this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HT</title>
		<link>http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/comment-page-1/#comment-293851</link>
		<dc:creator>HT</dc:creator>
		<pubDate>Wed, 21 May 2008 22:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/#comment-293851</guid>
		<description>Am I missing something or is the post above regarding the _bsddb module hack incomplete?  What file did you actually hack below -- I don&#039;t understand how the logic flows below and what file you are actually editing...

I managed to get it to work though by installing bsddb3 from the pybsddb site and hacking the file /System/Library/Frameworks/Python.framework/Versions/2.5:
marc@hyperion:~$ diff -u dbhash.py.orig dbhash.py
--- dbhash.py.orig      2007-11-28 10:16:33.000000000 -0800
+++ dbhash.py   2007-11-28 10:36:52.000000000 -0800
@@ -2,7 +2,7 @@

 import sys
 try:
-    import bsddb
+    import bsddb3 as bsddb
 except ImportError:
     # prevent a second import of this module from spuriously succeeding
     del sys.modules[__name__]</description>
		<content:encoded><![CDATA[<p>Am I missing something or is the post above regarding the _bsddb module hack incomplete?  What file did you actually hack below &#8212; I don&#8217;t understand how the logic flows below and what file you are actually editing&#8230;</p>
<p>I managed to get it to work though by installing bsddb3 from the pybsddb site and hacking the file /System/Library/Frameworks/Python.framework/Versions/2.5:<br />
marc@hyperion:~$ diff -u dbhash.py.orig dbhash.py<br />
&#8212; dbhash.py.orig      2007-11-28 10:16:33.000000000 -0800<br />
+++ dbhash.py   2007-11-28 10:36:52.000000000 -0800<br />
@@ -2,7 +2,7 @@</p>
<p> import sys<br />
 try:<br />
-    import bsddb<br />
+    import bsddb3 as bsddb<br />
 except ImportError:<br />
     # prevent a second import of this module from spuriously succeeding<br />
     del sys.modules[__name__]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mankoff</title>
		<link>http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/comment-page-1/#comment-293680</link>
		<dc:creator>mankoff</dc:creator>
		<pubDate>Thu, 15 May 2008 20:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/#comment-293680</guid>
		<description>And actually, the code used to state &quot;import bsddb&quot;, which produces an error itself. &quot;import dbhash&quot; does work w/o problem as you show.</description>
		<content:encoded><![CDATA[<p>And actually, the code used to state &#8220;import bsddb&#8221;, which produces an error itself. &#8220;import dbhash&#8221; does work w/o problem as you show.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mankoff</title>
		<link>http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/comment-page-1/#comment-293679</link>
		<dc:creator>mankoff</dc:creator>
		<pubDate>Thu, 15 May 2008 20:04:13 +0000</pubDate>
		<guid isPermaLink="false">http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/#comment-293679</guid>
		<description>Nice post. I&#039;ve followed your instructions and can import dbhash, but am still getting the following code error:

dbm = bsddb.hashopen(bdb_name, &#039;n&#039;)
NameError: global name &#039;bsddb&#039; is not defined

Any advice you have will be much appreciated.

Thanks,

  -k.</description>
		<content:encoded><![CDATA[<p>Nice post. I&#8217;ve followed your instructions and can import dbhash, but am still getting the following code error:</p>
<p>dbm = bsddb.hashopen(bdb_name, &#8216;n&#8217;)<br />
NameError: global name &#8216;bsddb&#8217; is not defined</p>
<p>Any advice you have will be much appreciated.</p>
<p>Thanks,</p>
<p>  -k.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Piper</title>
		<link>http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/comment-page-1/#comment-289342</link>
		<dc:creator>Andy Piper</dc:creator>
		<pubDate>Fri, 11 Jan 2008 18:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://marc-abramowitz.com/archives/2007/11/28/hacking-os-xs-python-dbhash-and-bsddb-modules-to-work/#comment-289342</guid>
		<description>Hrm. Long story, but I&#039;m trying to get cvs2svn to work on Leopard, and that requires a working bsddb module.

I can&#039;t actually get pybsddb to build:
distutils/sysconfig.py&quot;, line 389, in _init_posix
    raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now &quot;10.4&quot; but &quot;10.5&quot; during configure

How did you get on with that part?</description>
		<content:encoded><![CDATA[<p>Hrm. Long story, but I&#8217;m trying to get cvs2svn to work on Leopard, and that requires a working bsddb module.</p>
<p>I can&#8217;t actually get pybsddb to build:<br />
distutils/sysconfig.py&#8221;, line 389, in _init_posix<br />
    raise DistutilsPlatformError(my_msg)<br />
distutils.errors.DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now &#8220;10.4&#8243; but &#8220;10.5&#8243; during configure</p>
<p>How did you get on with that part?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
